Public Member Functions

gnash::media::ffmpeg::VideoDecoderFfmpeg Class Reference

FFMPEG based VideoDecoder. More...

#include <VideoDecoderFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::VideoDecoderFfmpeg:
Inheritance graph
[legend]
Collaboration diagram for gnash::media::ffmpeg::VideoDecoderFfmpeg:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

FFMPEG based VideoDecoder.


Constructor & Destructor Documentation

gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg ( videoCodecType  format,
int  width,
int  height 
)
gnash::media::ffmpeg::VideoDecoderFfmpeg::VideoDecoderFfmpeg ( const VideoInfo info  ) 
gnash::media::ffmpeg::VideoDecoderFfmpeg::~VideoDecoderFfmpeg (  ) 

Member Function Documentation

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.

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

Check whether a decoded frame is ready to be popped.

This method will never block.

Returns:
true if there is a frame ready to be popped.

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.

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

Implements gnash::media::VideoDecoder.

References s2x::end.

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

Push an encoded video frame into the decoder.

Parameters:
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.

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.


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