Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::MediaDecoder Class Reference

#include <media_decoder.h>

Collaboration diagram for jami::MediaDecoder:
Collaboration graph

Public Member Functions

MediaDemuxer::Status decode ()
 
bool emitFrame (bool isAudio)
 
void emulateRate ()
 
DecodeStatus flush ()
 
void flushBuffers ()
 
std::string getDecoderName () const
 
rational< doublegetFps () const
 
int getHeight () const
 
AVPixelFormat getPixelFormat () const
 
MediaStream getStream (std::string name="") const
 
int getWidth () const
 
 MediaDecoder ()
 
 MediaDecoder (const std::shared_ptr< MediaDemuxer > &demuxer, AVMediaType type)
 
 MediaDecoder (const std::shared_ptr< MediaDemuxer > &demuxer, int index)
 
 MediaDecoder (const std::shared_ptr< MediaDemuxer > &demuxer, int index, MediaObserver observer)
 
 MediaDecoder (MediaObserver observer)
 
int openInput (const DeviceParams &)
 
void setContextCallback (const std::function< void()> &cb)
 
void setFEC (bool enable)
 
void setInterruptCallback (int(*cb)(void *), void *opaque)
 
void setIOContext (MediaIOHandle *ioctx)
 
void setResolutionChangedCallback (std::function< void(int, int)> cb)
 
void setSeekTime (int64_t time)
 
int setup (AVMediaType type)
 
int setupAudio ()
 
int setupVideo ()
 
void updateStartTime (int64_t startTime)
 
 ~MediaDecoder ()
 

Protected Attributes

AVDictionaryoptions_ = nullptr
 

Detailed Description

Definition at line 166 of file media_decoder.h.

Constructor & Destructor Documentation

◆ MediaDecoder() [1/5]

jami::MediaDecoder::MediaDecoder ( )

Definition at line 464 of file media_decoder.cpp.

◆ MediaDecoder() [2/5]

jami::MediaDecoder::MediaDecoder ( MediaObserver  observer)

Definition at line 468 of file media_decoder.cpp.

◆ MediaDecoder() [3/5]

jami::MediaDecoder::MediaDecoder ( const std::shared_ptr< MediaDemuxer > &  demuxer,
int  index 
)

Definition at line 439 of file media_decoder.cpp.

References decode(), and jami::emitSignal().

Here is the call graph for this function:

◆ MediaDecoder() [4/5]

jami::MediaDecoder::MediaDecoder ( const std::shared_ptr< MediaDemuxer > &  demuxer,
int  index,
MediaObserver  observer 
)

Definition at line 447 of file media_decoder.cpp.

References decode(), and jami::emitSignal().

Here is the call graph for this function:

◆ MediaDecoder() [5/5]

jami::MediaDecoder::MediaDecoder ( const std::shared_ptr< MediaDemuxer > &  demuxer,
AVMediaType  type 
)
inline

Definition at line 173 of file media_decoder.h.

◆ ~MediaDecoder()

jami::MediaDecoder::~MediaDecoder ( )

Definition at line 473 of file media_decoder.cpp.

References av_buffer_unref(), and jami::emitSignal().

Here is the call graph for this function:

Member Function Documentation

◆ decode()

MediaDemuxer::Status jami::MediaDecoder::decode ( )

Definition at line 758 of file media_decoder.cpp.

References jami::emitSignal(), jami::MediaDemuxer::EndOfFile, and jami::MediaDemuxer::RestartRequired.

Referenced by MediaDecoder(), MediaDecoder(), and setup().

Here is the call graph for this function:

◆ emitFrame()

bool jami::MediaDecoder::emitFrame ( bool  isAudio)

Definition at line 459 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ emulateRate()

void jami::MediaDecoder::emulateRate ( )
inline

Definition at line 178 of file media_decoder.h.

◆ flush()

DecodeStatus jami::MediaDecoder::flush ( )

◆ flushBuffers()

void jami::MediaDecoder::flushBuffers ( )

Definition at line 484 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getDecoderName()

std::string jami::MediaDecoder::getDecoderName ( ) const

Definition at line 827 of file media_decoder.cpp.

◆ getFps()

rational< double > jami::MediaDecoder::getFps ( ) const

Definition at line 833 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ getHeight()

int jami::MediaDecoder::getHeight ( ) const

Definition at line 821 of file media_decoder.cpp.

◆ getPixelFormat()

AVPixelFormat jami::MediaDecoder::getPixelFormat ( ) const

Definition at line 845 of file media_decoder.cpp.

◆ getStream()

MediaStream jami::MediaDecoder::getStream ( std::string  name = "") const

Definition at line 876 of file media_decoder.cpp.

References jami::emitSignal(), and JAMI_WARN.

Here is the call graph for this function:

◆ getWidth()

int jami::MediaDecoder::getWidth ( ) const

Definition at line 815 of file media_decoder.cpp.

◆ openInput()

int jami::MediaDecoder::openInput ( const DeviceParams p)

Definition at line 490 of file media_decoder.cpp.

◆ setContextCallback()

void jami::MediaDecoder::setContextCallback ( const std::function< void()> &  cb)
inline

Definition at line 216 of file media_decoder.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setFEC()

void jami::MediaDecoder::setFEC ( bool  enable)
inline

Definition at line 214 of file media_decoder.h.

◆ setInterruptCallback()

void jami::MediaDecoder::setInterruptCallback ( int(*)(void *)  cb,
void opaque 
)

Definition at line 496 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ setIOContext()

void jami::MediaDecoder::setIOContext ( MediaIOHandle ioctx)

Definition at line 502 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ setResolutionChangedCallback()

void jami::MediaDecoder::setResolutionChangedCallback ( std::function< void(int, int)>  cb)
inline

Definition at line 209 of file media_decoder.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ setSeekTime()

void jami::MediaDecoder::setSeekTime ( int64_t  time)

Definition at line 752 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ setup()

int jami::MediaDecoder::setup ( AVMediaType  type)

Definition at line 508 of file media_decoder.cpp.

References decode(), jami::emitSignal(), and JAMI_ERR.

Referenced by setupAudio(), and setupVideo().

Here is the call graph for this function:

◆ setupAudio()

int jami::MediaDecoder::setupAudio ( )
inline

Definition at line 185 of file media_decoder.h.

References jami::emitSignal(), and setup().

Here is the call graph for this function:

◆ setupVideo()

int jami::MediaDecoder::setupVideo ( )
inline

Definition at line 186 of file media_decoder.h.

References jami::emitSignal(), and setup().

Here is the call graph for this function:

◆ updateStartTime()

void jami::MediaDecoder::updateStartTime ( int64_t  startTime)

Definition at line 637 of file media_decoder.cpp.

References jami::emitSignal().

Here is the call graph for this function:

Member Data Documentation

◆ options_

AVDictionary* jami::MediaDecoder::options_ = nullptr
protected

Definition at line 265 of file media_decoder.h.


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