This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
Classes |
Public Member Functions |
Static Public Member Functions |
Protected Attributes |
List of all members
ofGstUtils Class Reference
#include <ofGstUtils.h>
Inheritance diagram for ofGstUtils:

Public Member Functions | |
ofGstUtils () | |
virtual | ~ofGstUtils () |
bool | setPipelineWithSink (std::string pipeline, std::string sinkname="sink", bool isStream=false) |
bool | setPipelineWithSink (GstElement *pipeline, GstElement *sink, bool isStream=false) |
bool | startPipeline () |
void | play () |
void | stop () |
void | setPaused (bool bPause) |
bool | isPaused () const |
bool | isLoaded () const |
bool | isPlaying () const |
float | getPosition () const |
int64_t | getPositionNanos () const |
float | getSpeed () const |
float | getDuration () const |
int64_t | getDurationNanos () const |
bool | getIsMovieDone () const |
void | setPosition (float pct) |
void | setVolume (float volume) |
void | setLoopState (ofLoopType state) |
ofLoopType | getLoopState () const |
void | setSpeed (float speed) |
void | setFrameByFrame (bool bFrameByFrame) |
bool | isFrameByFrame () const |
GstElement * | getPipeline () const |
GstElement * | getSink () const |
GstElement * | getGstElementByName (const std::string &name) const |
uint64_t | getMinLatencyNanos () const |
uint64_t | getMaxLatencyNanos () const |
virtual void | close () |
void | setSinkListener (ofGstAppSink *appsink) |
virtual GstFlowReturn | preroll_cb (std::shared_ptr< GstBuffer > buffer) |
virtual GstFlowReturn | buffer_cb (std::shared_ptr< GstBuffer > buffer) |
virtual void | eos_cb () |
Static Public Member Functions | |
static void | startGstMainLoop () |
static GMainLoop * | getGstMainLoop () |
static void | quitGstMainLoop () |
Protected Attributes | |
ofGstAppSink * | appsink |
bool | isStream |
bool | closing |
Constructor & Destructor Documentation
◆ ofGstUtils()
ofGstUtils::ofGstUtils | ( | ) |
◆ ~ofGstUtils()
|
virtual |
Member Function Documentation
◆ buffer_cb()
|
virtual |
Reimplemented in ofGstVideoUtils.
◆ close()
|
virtual |
Reimplemented in ofGstVideoUtils.
◆ eos_cb()
|
virtual |
Reimplemented in ofGstVideoUtils.
◆ getDuration()
float ofGstUtils::getDuration | ( | ) | const |
◆ getDurationNanos()
int64_t ofGstUtils::getDurationNanos | ( | ) | const |
◆ getGstElementByName()
GstElement * ofGstUtils::getGstElementByName | ( | const std::string & | name | ) | const |
◆ getGstMainLoop()
|
static |
◆ getIsMovieDone()
bool ofGstUtils::getIsMovieDone | ( | ) | const |
◆ getLoopState()
|
inline |
◆ getMaxLatencyNanos()
uint64_t ofGstUtils::getMaxLatencyNanos | ( | ) | const |
◆ getMinLatencyNanos()
uint64_t ofGstUtils::getMinLatencyNanos | ( | ) | const |
◆ getPipeline()
GstElement * ofGstUtils::getPipeline | ( | ) | const |
◆ getPosition()
float ofGstUtils::getPosition | ( | ) | const |
◆ getPositionNanos()
int64_t ofGstUtils::getPositionNanos | ( | ) | const |
◆ getSink()
GstElement * ofGstUtils::getSink | ( | ) | const |
◆ getSpeed()
float ofGstUtils::getSpeed | ( | ) | const |
◆ isFrameByFrame()
bool ofGstUtils::isFrameByFrame | ( | ) | const |
◆ isLoaded()
|
inline |
◆ isPaused()
|
inline |
◆ isPlaying()
|
inline |
◆ play()
void ofGstUtils::play | ( | ) |
◆ preroll_cb()
|
virtual |
Reimplemented in ofGstVideoUtils.
◆ quitGstMainLoop()
|
static |
◆ setFrameByFrame()
void ofGstUtils::setFrameByFrame | ( | bool | bFrameByFrame | ) |
◆ setLoopState()
void ofGstUtils::setLoopState | ( | ofLoopType | state | ) |
◆ setPaused()
void ofGstUtils::setPaused | ( | bool | bPause | ) |
◆ setPipelineWithSink() [1/2]
bool ofGstUtils::setPipelineWithSink | ( | GstElement * | pipeline, |
GstElement * | sink, | ||
bool | isStream = false |
||
) |
◆ setPipelineWithSink() [2/2]
bool ofGstUtils::setPipelineWithSink | ( | std::string | pipeline, |
std::string | sinkname = "sink" , |
||
bool | isStream = false |
||
) |
◆ setPosition()
void ofGstUtils::setPosition | ( | float | pct | ) |
◆ setSinkListener()
void ofGstUtils::setSinkListener | ( | ofGstAppSink * | appsink | ) |
◆ setSpeed()
void ofGstUtils::setSpeed | ( | float | speed | ) |
◆ setVolume()
void ofGstUtils::setVolume | ( | float | volume | ) |
◆ startGstMainLoop()
|
static |
◆ startPipeline()
bool ofGstUtils::startPipeline | ( | ) |
◆ stop()
void ofGstUtils::stop | ( | ) |
Member Data Documentation
◆ appsink
|
protected |
◆ closing
|
protected |
◆ isStream
|
protected |
The documentation for this class was generated from the following files:
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/video/ofGstUtils.h
- /Users/icq4ever/Desktop/oF0120/libs/openFrameworks/video/ofGstUtils.cpp