YARP
Yet Another Robot Platform
DecoderState Class Reference

Public Member Functions

 DecoderState ()
 
bool isFinished ()
 
int getIndex ()
 
virtual ~DecoderState ()
 
int getStream (AVFormatContext *pFormatCtx, AVMediaType code, const char *name)
 
bool getCodec (AVFormatContext *pFormatCtx)
 
bool allocateImage ()
 
bool allocateSound ()
 
int getWidth ()
 
int getHeight ()
 
int getRate ()
 
int getChannels ()
 
bool getAudio (AVPacket &packet, Sound &sound)
 
bool getVideo (AVPacket &packet)
 
bool getVideo (ImageOf< PixelRgb > &image)
 
bool haveFrame ()
 

Public Attributes

int bytesRemaining
 
int bytesDecoded
 
int frameFinished
 
int index
 
AVCodecContext * pCodecCtx
 
AVCodec * pCodec
 
AVFrame * pFrame
 
AVFrame * pFrameRGB
 
AVFrame * pAudio
 
uint8_t * buffer
 
int16_t * audioBuffer
 
int16_t * audioBufferAt
 
int audioBufferLen
 

Detailed Description

Definition at line 33 of file FfmpegGrabber.cpp.

Constructor & Destructor Documentation

◆ DecoderState()

DecoderState::DecoderState ( )
inline

Definition at line 53 of file FfmpegGrabber.cpp.

◆ ~DecoderState()

virtual DecoderState::~DecoderState ( )
inlinevirtual

Definition at line 80 of file FfmpegGrabber.cpp.

Member Function Documentation

◆ allocateImage()

bool DecoderState::allocateImage ( )
inline

Definition at line 143 of file FfmpegGrabber.cpp.

◆ allocateSound()

bool DecoderState::allocateSound ( )
inline

Definition at line 166 of file FfmpegGrabber.cpp.

◆ getAudio()

bool DecoderState::getAudio ( AVPacket &  packet,
Sound sound 
)
inline

Definition at line 200 of file FfmpegGrabber.cpp.

◆ getChannels()

int DecoderState::getChannels ( )
inline

Definition at line 195 of file FfmpegGrabber.cpp.

◆ getCodec()

bool DecoderState::getCodec ( AVFormatContext *  pFormatCtx)
inline

Definition at line 121 of file FfmpegGrabber.cpp.

◆ getHeight()

int DecoderState::getHeight ( )
inline

Definition at line 184 of file FfmpegGrabber.cpp.

◆ getIndex()

int DecoderState::getIndex ( )
inline

Definition at line 75 of file FfmpegGrabber.cpp.

◆ getRate()

int DecoderState::getRate ( )
inline

Definition at line 190 of file FfmpegGrabber.cpp.

◆ getStream()

int DecoderState::getStream ( AVFormatContext *  pFormatCtx,
AVMediaType  code,
const char *  name 
)
inline

Definition at line 102 of file FfmpegGrabber.cpp.

◆ getVideo() [1/2]

bool DecoderState::getVideo ( AVPacket &  packet)
inline

Definition at line 254 of file FfmpegGrabber.cpp.

◆ getVideo() [2/2]

bool DecoderState::getVideo ( ImageOf< PixelRgb > &  image)
inline

Definition at line 289 of file FfmpegGrabber.cpp.

◆ getWidth()

int DecoderState::getWidth ( )
inline

Definition at line 179 of file FfmpegGrabber.cpp.

◆ haveFrame()

bool DecoderState::haveFrame ( )
inline

Definition at line 304 of file FfmpegGrabber.cpp.

◆ isFinished()

bool DecoderState::isFinished ( )
inline

Definition at line 70 of file FfmpegGrabber.cpp.

Member Data Documentation

◆ audioBuffer

int16_t* DecoderState::audioBuffer

Definition at line 49 of file FfmpegGrabber.cpp.

◆ audioBufferAt

int16_t* DecoderState::audioBufferAt

Definition at line 50 of file FfmpegGrabber.cpp.

◆ audioBufferLen

int DecoderState::audioBufferLen

Definition at line 51 of file FfmpegGrabber.cpp.

◆ buffer

uint8_t* DecoderState::buffer

Definition at line 48 of file FfmpegGrabber.cpp.

◆ bytesDecoded

int DecoderState::bytesDecoded

Definition at line 37 of file FfmpegGrabber.cpp.

◆ bytesRemaining

int DecoderState::bytesRemaining

Definition at line 36 of file FfmpegGrabber.cpp.

◆ frameFinished

int DecoderState::frameFinished

Definition at line 38 of file FfmpegGrabber.cpp.

◆ index

int DecoderState::index

Definition at line 39 of file FfmpegGrabber.cpp.

◆ pAudio

AVFrame* DecoderState::pAudio

Definition at line 47 of file FfmpegGrabber.cpp.

◆ pCodec

AVCodec* DecoderState::pCodec

Definition at line 42 of file FfmpegGrabber.cpp.

◆ pCodecCtx

AVCodecContext* DecoderState::pCodecCtx

Definition at line 41 of file FfmpegGrabber.cpp.

◆ pFrame

AVFrame* DecoderState::pFrame

Definition at line 45 of file FfmpegGrabber.cpp.

◆ pFrameRGB

AVFrame* DecoderState::pFrameRGB

Definition at line 46 of file FfmpegGrabber.cpp.


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