|
Gnash
0.8.11dev
|
GST based VideoDecoder. More...
#include <VideoDecoderGst.h>
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::GnashImage > | pop () |
| 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 () |
GST based VideoDecoder.
| gnash::media::gst::VideoDecoderGst::VideoDecoderGst | ( | videoCodecType | codec_type, |
| int | width, | ||
| int | height, | ||
| const std::uint8_t * | extradata, | ||
| size_t | extradatasize | ||
| ) |
| gnash::media::gst::VideoDecoderGst::VideoDecoderGst | ( | GstCaps * | caps | ) |
| gnash::media::gst::VideoDecoderGst::~VideoDecoderGst | ( | ) |
|
virtual |
Get the height of the video.
Implements gnash::media::VideoDecoder.
|
virtual |
Check whether a decoded frame is ready to be popped.
This method will never block.
Implements gnash::media::VideoDecoder.
References SwfdecGstDecoder::queue.
|
virtual |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.
Implements gnash::media::VideoDecoder.
References swfdec_gst_decoder_pull().
|
virtual |
Push an encoded video frame into the decoder.
| buffer | the video frame to decode |
Implements gnash::media::VideoDecoder.
References _, gnash::media::gst::EncodedExtraGstData::buffer, gnash::media::EncodedVideoFrame::data(), gnash::media::EncodedVideoFrame::dataSize(), gnash::media::EncodedVideoFrame::extradata, gnash::media::EncodedVideoFrame::frameNum(), gnash::log_error(), and swfdec_gst_decoder_push().
|
virtual |
Get the width of the video.
Implements gnash::media::VideoDecoder.
1.8.12