Gnash
0.8.10
|
GST based VideoDecoder. More...
#include <VideoDecoderGst.h>
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::GnashImage > | pop () |
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. |
GST based VideoDecoder.
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 | ( | ) |
References swfdec_gst_decoder_push_eos(), and swfdec_gst_decoder_finish().
int gnash::media::gst::VideoDecoderGst::height | ( | ) | const [virtual] |
Get the height of the video.
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.
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.
Implements gnash::media::VideoDecoder.
References swfdec_gst_decoder_pull(), and assert.
void gnash::media::gst::VideoDecoderGst::push | ( | const EncodedVideoFrame & | buffer | ) | [virtual] |
Push an encoded video frame into the decoder.
buffer | the video frame to decode |
Implements gnash::media::VideoDecoder.
References gnash::media::EncodedVideoFrame::extradata, gnash::media::gst::EncodedExtraGstData::buffer, gnash::media::EncodedVideoFrame::data(), gnash::media::EncodedVideoFrame::dataSize(), gnash::media::EncodedVideoFrame::frameNum(), swfdec_gst_decoder_push(), and _.
int gnash::media::gst::VideoDecoderGst::width | ( | ) | const [virtual] |
Get the width of the video.
Implements gnash::media::VideoDecoder.