reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

#include <ofGstUtils.h>

Inheritance diagram for ofGstUtils:
ofGstVideoUtils

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
 
GstElementgetPipeline () const
 
GstElementgetSink () const
 
GstElementgetGstElementByName (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

ofGstAppSinkappsink
 
bool isStream
 
bool closing
 

Constructor & Destructor Documentation

◆ ofGstUtils()

ofGstUtils::ofGstUtils ( )

◆ ~ofGstUtils()

ofGstUtils::~ofGstUtils ( )
virtual

Member Function Documentation

◆ buffer_cb()

GstFlowReturn ofGstUtils::buffer_cb ( std::shared_ptr< GstBuffer buffer)
virtual

Reimplemented in ofGstVideoUtils.

◆ close()

void ofGstUtils::close ( )
virtual

Reimplemented in ofGstVideoUtils.

◆ eos_cb()

void ofGstUtils::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()

GMainLoop * ofGstUtils::getGstMainLoop ( )
static

◆ getIsMovieDone()

bool ofGstUtils::getIsMovieDone ( ) const

◆ getLoopState()

ofLoopType ofGstUtils::getLoopState ( ) const
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()

bool ofGstUtils::isLoaded ( ) const
inline

◆ isPaused()

bool ofGstUtils::isPaused ( ) const
inline

◆ isPlaying()

bool ofGstUtils::isPlaying ( ) const
inline

◆ play()

void ofGstUtils::play ( )

◆ preroll_cb()

GstFlowReturn ofGstUtils::preroll_cb ( std::shared_ptr< GstBuffer buffer)
virtual

Reimplemented in ofGstVideoUtils.

◆ quitGstMainLoop()

void ofGstUtils::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()

void ofGstUtils::startGstMainLoop ( )
static

◆ startPipeline()

bool ofGstUtils::startPipeline ( )

◆ stop()

void ofGstUtils::stop ( )

Member Data Documentation

◆ appsink

ofGstAppSink* ofGstUtils::appsink
protected

◆ closing

bool ofGstUtils::closing
protected

◆ isStream

bool ofGstUtils::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