Gnash
0.8.11dev
|
FFMPEG based VideoDecoder. More...
#include <VideoDecoderFfmpeg.h>
Public Member Functions | |
DSOEXPORT | VideoDecoderFfmpeg (videoCodecType format, int width, int height) |
DSOEXPORT | VideoDecoderFfmpeg (const VideoInfo &info) |
DSOEXPORT | ~VideoDecoderFfmpeg () |
void | push (const EncodedVideoFrame &buffer) |
Push an encoded video frame into the decoder. More... | |
std::auto_ptr< image::GnashImage > | pop () |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK. More... | |
bool | peek () |
Check whether a decoded frame is ready to be popped. More... | |
int | width () const |
Get the width in pixels of the Video. More... | |
int | height () const |
Get the height in pixels of the Video. More... | |
![]() | |
virtual | ~VideoDecoder () |
FFMPEG based VideoDecoder.
gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg | ( | videoCodecType | format, |
int | width, | ||
int | height | ||
) |
gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg | ( | const VideoInfo & | info | ) |
References _, gnash::media::VideoInfo::codec, gnash::media::CODEC_TYPE_FLASH, gnash::media::ExtraVideoInfoFlv::data, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::data, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::dataSize, gnash::media::VideoInfo::extra, gnash::media::VideoInfo::height, gnash::media::ExtraVideoInfoFlv::size, gnash::media::VideoInfo::type, and gnash::media::VideoInfo::width.
gnash::media::ffmpeg::VideoDecoderFfmpeg::~VideoDecoderFfmpeg | ( | ) |
|
virtual |
Get the height in pixels of the Video.
Implements gnash::media::VideoDecoder.
|
virtual |
Check whether a decoded frame is ready to be popped.
This method will never block.
Implements gnash::media::VideoDecoder.
|
virtual |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.
Implements gnash::media::VideoDecoder.
References gnash::image::end().
|
virtual |
Push an encoded video frame into the decoder.
buffer | the video frame to decode |
Implements gnash::media::VideoDecoder.
|
virtual |
Get the width in pixels of the Video.
Implements gnash::media::VideoDecoder.