YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
 
AVCodecContextpCodecCtx
 
AVCodecpCodec
 
AVFramepFrame
 
AVFramepFrameRGB
 
AVFramepAudio
 
uint8_tbuffer
 
int16_taudioBuffer
 
int16_taudioBufferAt
 
int audioBufferLen
 

Detailed Description

Definition at line 30 of file FfmpegGrabber.cpp.

Constructor & Destructor Documentation

◆ DecoderState()

DecoderState::DecoderState ( )
inline

Definition at line 50 of file FfmpegGrabber.cpp.

◆ ~DecoderState()

virtual DecoderState::~DecoderState ( )
inlinevirtual

Definition at line 77 of file FfmpegGrabber.cpp.

Member Function Documentation

◆ allocateImage()

bool DecoderState::allocateImage ( )
inline

Definition at line 140 of file FfmpegGrabber.cpp.

◆ allocateSound()

bool DecoderState::allocateSound ( )
inline

Definition at line 163 of file FfmpegGrabber.cpp.

◆ getAudio()

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

Definition at line 197 of file FfmpegGrabber.cpp.

◆ getChannels()

int DecoderState::getChannels ( )
inline

Definition at line 192 of file FfmpegGrabber.cpp.

◆ getCodec()

bool DecoderState::getCodec ( AVFormatContext pFormatCtx)
inline

Definition at line 118 of file FfmpegGrabber.cpp.

◆ getHeight()

int DecoderState::getHeight ( )
inline

Definition at line 181 of file FfmpegGrabber.cpp.

◆ getIndex()

int DecoderState::getIndex ( )
inline

Definition at line 72 of file FfmpegGrabber.cpp.

◆ getRate()

int DecoderState::getRate ( )
inline

Definition at line 187 of file FfmpegGrabber.cpp.

◆ getStream()

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

Definition at line 99 of file FfmpegGrabber.cpp.

◆ getVideo() [1/2]

bool DecoderState::getVideo ( AVPacket packet)
inline

Definition at line 251 of file FfmpegGrabber.cpp.

◆ getVideo() [2/2]

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

Definition at line 286 of file FfmpegGrabber.cpp.

◆ getWidth()

int DecoderState::getWidth ( )
inline

Definition at line 176 of file FfmpegGrabber.cpp.

◆ haveFrame()

bool DecoderState::haveFrame ( )
inline

Definition at line 301 of file FfmpegGrabber.cpp.

◆ isFinished()

bool DecoderState::isFinished ( )
inline

Definition at line 67 of file FfmpegGrabber.cpp.

Member Data Documentation

◆ audioBuffer

int16_t* DecoderState::audioBuffer

Definition at line 46 of file FfmpegGrabber.cpp.

◆ audioBufferAt

int16_t* DecoderState::audioBufferAt

Definition at line 47 of file FfmpegGrabber.cpp.

◆ audioBufferLen

int DecoderState::audioBufferLen

Definition at line 48 of file FfmpegGrabber.cpp.

◆ buffer

uint8_t* DecoderState::buffer

Definition at line 45 of file FfmpegGrabber.cpp.

◆ bytesDecoded

int DecoderState::bytesDecoded

Definition at line 34 of file FfmpegGrabber.cpp.

◆ bytesRemaining

int DecoderState::bytesRemaining

Definition at line 33 of file FfmpegGrabber.cpp.

◆ frameFinished

int DecoderState::frameFinished

Definition at line 35 of file FfmpegGrabber.cpp.

◆ index

int DecoderState::index

Definition at line 36 of file FfmpegGrabber.cpp.

◆ pAudio

AVFrame* DecoderState::pAudio

Definition at line 44 of file FfmpegGrabber.cpp.

◆ pCodec

AVCodec* DecoderState::pCodec

Definition at line 39 of file FfmpegGrabber.cpp.

◆ pCodecCtx

AVCodecContext* DecoderState::pCodecCtx

Definition at line 38 of file FfmpegGrabber.cpp.

◆ pFrame

AVFrame* DecoderState::pFrame

Definition at line 42 of file FfmpegGrabber.cpp.

◆ pFrameRGB

AVFrame* DecoderState::pFrameRGB

Definition at line 43 of file FfmpegGrabber.cpp.


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