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::unique_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 | ||
) |
References CODECID.
gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg | ( | const VideoInfo & | info | ) |
References _, gnash::media::VideoInfo::codec, gnash::media::CODEC_TYPE_FLASH, CODECID, gnash::media::ffmpeg::VaapiContextFfmpeg::create(), gnash::media::ExtraVideoInfoFlv::data, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::data, gnash::media::ffmpeg::ExtraVideoInfoFfmpeg::dataSize, gnash::media::VideoInfo::extra, gnash::media::VideoInfo::height, gnash::log_debug(), gnash::media::ExtraVideoInfoFlv::size, gnash::media::VideoInfo::type, gnash::vaapi_is_enabled(), and gnash::media::VideoInfo::width.
gnash::media::ffmpeg::VideoDecoderFfmpeg::~VideoDecoderFfmpeg | ( | ) |
|
virtual |
Get the height in pixels of the Video.
Implements gnash::media::VideoDecoder.
References _, AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AVPixelFormat, FRAMEALLOC, gnash::VaapiSurfaceProxy::get(), gnash::log_debug(), gnash::log_error(), gnash::image::TYPE_RGBA, and width().
|
virtual |
Check whether a decoded frame is ready to be popped.
This method will never block.
Implements gnash::media::VideoDecoder.
References _, AV_PIX_FMT_NONE, AV_PIX_FMT_VAAPI_VLD, AVPixelFormat, CODECID, gnash::media::ffmpeg::VaapiSurfaceFfmpeg::getPicNum(), gnash::key::i, gnash::log_error(), gnash::media::ffmpeg::VaapiSurfaceFfmpeg::setPicNum(), UNUSED, gnash::media::ffmpeg::vaapi_set_surface(), gnash::media::VIDEO_CODEC_H263, gnash::media::VIDEO_CODEC_H264, gnash::media::VIDEO_CODEC_SCREENVIDEO, gnash::media::VIDEO_CODEC_VP6, and gnash::media::VIDEO_CODEC_VP6A.
|
virtual |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.
Implements gnash::media::VideoDecoder.
|
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.
Referenced by height().