Gnash  0.8.10
Public Member Functions
gnash::media::gst::VideoDecoderGst Class Reference

GST based VideoDecoder. More...

#include <VideoDecoderGst.h>

Inheritance diagram for gnash::media::gst::VideoDecoderGst:
gnash::media::VideoDecoder

List of all members.

Public Member Functions

 VideoDecoderGst (videoCodecType codec_type, int width, int height, const boost::uint8_t *extradata, size_t extradatasize)
 VideoDecoderGst (GstCaps *caps)
 ~VideoDecoderGst ()
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 of the video.
int height () const
 Get the height of the video.

Detailed Description

GST based VideoDecoder.


Constructor & Destructor Documentation

gnash::media::gst::VideoDecoderGst::VideoDecoderGst ( videoCodecType  codec_type,
int  width,
int  height,
const boost::uint8_t *  extradata,
size_t  extradatasize 
)
gnash::media::gst::VideoDecoderGst::VideoDecoderGst ( GstCaps *  caps)
gnash::media::gst::VideoDecoderGst::~VideoDecoderGst ( )

Member Function Documentation

int gnash::media::gst::VideoDecoderGst::height ( ) const [virtual]

Get the height of the video.

Returns:
The height of the video in pixels or 0 if unknown.

Implements gnash::media::VideoDecoder.

bool gnash::media::gst::VideoDecoderGst::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.

References SwfdecGstDecoder::queue.

std::auto_ptr< image::GnashImage > gnash::media::gst::VideoDecoderGst::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 swfdec_gst_decoder_pull(), and assert.

void gnash::media::gst::VideoDecoderGst::push ( const EncodedVideoFrame buffer) [virtual]
int gnash::media::gst::VideoDecoderGst::width ( ) const [virtual]

Get the width of the video.

Returns:
The width of the video in pixels or 0 if unknown.

Implements gnash::media::VideoDecoder.


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