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

GST based VideoDecoder. More...

#include <VideoDecoderGst.h>

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

Public Member Functions

 VideoDecoderGst (videoCodecType codec_type, int width, int height, const std::uint8_t *extradata, size_t extradatasize)
 
 VideoDecoderGst (GstCaps *caps)
 
 ~VideoDecoderGst ()
 
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 of the video. More...
 
int height () const
 Get the height of the video. More...
 
- Public Member Functions inherited from gnash::media::VideoDecoder
virtual ~VideoDecoder ()
 

Detailed Description

GST based VideoDecoder.

Constructor & Destructor Documentation

§ VideoDecoderGst() [1/2]

gnash::media::gst::VideoDecoderGst::VideoDecoderGst ( videoCodecType  codec_type,
int  width,
int  height,
const std::uint8_t *  extradata,
size_t  extradatasize 
)

§ VideoDecoderGst() [2/2]

gnash::media::gst::VideoDecoderGst::VideoDecoderGst ( GstCaps *  caps)

§ ~VideoDecoderGst()

gnash::media::gst::VideoDecoderGst::~VideoDecoderGst ( )

Member Function Documentation

§ height()

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.

§ peek()

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.

§ pop()

std::unique_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 unique_ptr if an error occurred.

Implements gnash::media::VideoDecoder.

References swfdec_gst_decoder_pull().

§ push()

void gnash::media::gst::VideoDecoderGst::push ( const EncodedVideoFrame buffer)
virtual

§ width()

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: