Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::video::VideoGenerator Class Referenceabstract

#include <video_base.h>

Inheritance diagram for jami::video::VideoGenerator:
Inheritance graph
Collaboration diagram for jami::video::VideoGenerator:
Collaboration graph

Public Member Functions

void flushFrames ()
 
virtual int getHeight () const =0
 
VideoFramegetNewFrame ()
 
virtual AVPixelFormat getPixelFormat () const =0
 
virtual int getWidth () const =0
 
std::shared_ptr< VideoFrameobtainLastFrame ()
 
void publishFrame ()
 
void publishFrame (std::shared_ptr< VideoFrame >)
 
 VideoGenerator ()
 
- Public Member Functions inherited from jami::Observable< std::shared_ptr< MediaFrame > >
bool attach (Observer< std::shared_ptr< MediaFrame > > *o)
 
void attachPriorityObserver (std::shared_ptr< Observer< std::shared_ptr< MediaFrame > > > o)
 
bool detach (Observer< std::shared_ptr< MediaFrame > > *o)
 
void detachPriorityObserver (Observer< std::shared_ptr< MediaFrame > > *o)
 
size_t getObserversCount ()
 
 Observable ()
 
virtual ~Observable ()
 ~Observable Detach all observers to avoid making them call this observable when destroyed
 

Additional Inherited Members

- Protected Member Functions inherited from jami::Observable< std::shared_ptr< MediaFrame > >
void notify (std::shared_ptr< MediaFrame > data)
 
- Protected Attributes inherited from jami::Observable< std::shared_ptr< MediaFrame > >
std::mutex mutex_
 
std::set< Observer< std::shared_ptr< MediaFrame > > * > observers_
 
std::list< std::weak_ptr< Observer< std::shared_ptr< MediaFrame > > > > priority_observers_
 

Detailed Description

Definition at line 66 of file video_base.h.

Constructor & Destructor Documentation

◆ VideoGenerator()

jami::video::VideoGenerator::VideoGenerator ( )
inline

Definition at line 69 of file video_base.h.

Member Function Documentation

◆ flushFrames()

void jami::video::VideoGenerator::flushFrames ( )

Definition at line 56 of file video_base.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getHeight()

virtual int jami::video::VideoGenerator::getHeight ( ) const
pure virtual

◆ getNewFrame()

VideoFrame & jami::video::VideoGenerator::getNewFrame ( )

Definition at line 32 of file video_base.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getPixelFormat()

virtual AVPixelFormat jami::video::VideoGenerator::getPixelFormat ( ) const
pure virtual

◆ getWidth()

virtual int jami::video::VideoGenerator::getWidth ( ) const
pure virtual

◆ obtainLastFrame()

std::shared_ptr< VideoFrame > jami::video::VideoGenerator::obtainLastFrame ( )

Definition at line 64 of file video_base.cpp.

References jami::emitSignal().

Referenced by jami::video::VideoMixer::setParameters().

Here is the call graph for this function:

◆ publishFrame() [1/2]

void jami::video::VideoGenerator::publishFrame ( )

Definition at line 40 of file video_base.cpp.

References jami::emitSignal(), and jami::video::notify().

Referenced by jami::video::VideoInput::configureFilePlayback().

Here is the call graph for this function:

◆ publishFrame() [2/2]

void jami::video::VideoGenerator::publishFrame ( std::shared_ptr< VideoFrame frame)

Definition at line 48 of file video_base.cpp.

References jami::emitSignal(), and jami::video::notify().

Here is the call graph for this function:

The documentation for this class was generated from the following files: