Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::media::ffmpeg::VideoDecoderFfmpeg Class Reference

FFMPEG based VideoDecoder. More...

#include <VideoDecoderFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::VideoDecoderFfmpeg:
gnash::media::VideoDecoder

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::GnashImagepop ()
 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...
 
- Public Member Functions inherited from gnash::media::VideoDecoder
virtual ~VideoDecoder ()
 

Detailed Description

FFMPEG based VideoDecoder.

Constructor & Destructor Documentation

§ VideoDecoderFfmpeg() [1/2]

gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg ( videoCodecType  format,
int  width,
int  height 
)

References CODECID.

§ VideoDecoderFfmpeg() [2/2]

gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg ( const VideoInfo info)

§ ~VideoDecoderFfmpeg()

gnash::media::ffmpeg::VideoDecoderFfmpeg::~VideoDecoderFfmpeg ( )

Member Function Documentation

§ height()

int gnash::media::ffmpeg::VideoDecoderFfmpeg::height ( ) const
virtual

Get the height in pixels of the Video.

Returns
The height of a video frame, or 0 until this is known. This is used ultimately for the AS Video.height property.

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().

§ peek()

bool gnash::media::ffmpeg::VideoDecoderFfmpeg::peek ( )
virtual

§ pop()

std::unique_ptr< image::GnashImage > gnash::media::ffmpeg::VideoDecoderFfmpeg::pop ( )
virtual

Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.

Returns
The decoded video frame, or a NULL-containing unique_ptr if an error occurred.

Implements gnash::media::VideoDecoder.

§ push()

void gnash::media::ffmpeg::VideoDecoderFfmpeg::push ( const EncodedVideoFrame buffer)
virtual

Push an encoded video frame into the decoder.

Parameters
bufferthe video frame to decode

Implements gnash::media::VideoDecoder.

§ width()

int gnash::media::ffmpeg::VideoDecoderFfmpeg::width ( ) const
virtual

Get the width in pixels of the Video.

Returns
The width of a video frame, or 0 until this is known. This is used ultimately for the AS Video.width property.

Implements gnash::media::VideoDecoder.

Referenced by height().


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