Gnash
0.8.10
|
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. | |
std::auto_ptr< image::GnashImage > | pop () |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK. | |
bool | peek () |
Check whether a decoded frame is ready to be popped. | |
int | width () const |
Get the width in pixels of the Video. | |
int | height () const |
Get the height in pixels of the Video. |
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::type, gnash::media::CODEC_TYPE_FLASH, gnash::media::VideoInfo::codec, _, gnash::media::VideoInfo::extra, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::data, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::dataSize, gnash::media::ExtraVideoInfoFlv::data, gnash::media::ExtraVideoInfoFlv::size, gnash::media::VideoInfo::width, and gnash::media::VideoInfo::height.
gnash::media::ffmpeg::VideoDecoderFfmpeg::~VideoDecoderFfmpeg | ( | ) |
int gnash::media::ffmpeg::VideoDecoderFfmpeg::height | ( | ) | const [virtual] |
Get the height in pixels of the Video.
Implements gnash::media::VideoDecoder.
bool gnash::media::ffmpeg::VideoDecoderFfmpeg::peek | ( | ) | [virtual] |
Check whether a decoded frame is ready to be popped.
This method will never block.
Implements gnash::media::VideoDecoder.
std::auto_ptr< image::GnashImage > gnash::media::ffmpeg::VideoDecoderFfmpeg::pop | ( | ) | [virtual] |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.
Implements gnash::media::VideoDecoder.
References gnash::image::end().
void gnash::media::ffmpeg::VideoDecoderFfmpeg::push | ( | const EncodedVideoFrame & | buffer | ) | [virtual] |
Push an encoded video frame into the decoder.
buffer | the video frame to decode |
Implements gnash::media::VideoDecoder.
int gnash::media::ffmpeg::VideoDecoderFfmpeg::width | ( | ) | const [virtual] |
Get the width in pixels of the Video.
Implements gnash::media::VideoDecoder.