|
Gnash
0.8.10
|
Abstract base class for embedded video decoders. More...
#include <VideoDecoder.h>
Public Member Functions | |
| virtual | ~VideoDecoder () |
| virtual void | push (const EncodedVideoFrame &buffer)=0 |
| Push an encoded video frame into the decoder. | |
| virtual std::auto_ptr < image::GnashImage > | pop ()=0 |
| Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK. | |
| virtual bool | peek ()=0 |
| Check whether a decoded frame is ready to be popped. | |
| virtual int | width () const =0 |
| Get the width in pixels of the Video. | |
| virtual int | height () const =0 |
| Get the height in pixels of the Video. | |
Abstract base class for embedded video decoders.
This very simple design allows, but does not require, the use of threads in an implementation. A user of this class push a frame into the decoder and can subsequently pop a decoded frame. Since the pop() call may block, it is advisable to first call peek() to see if there is a frame ready to be popped.
| virtual gnash::media::VideoDecoder::~VideoDecoder | ( | ) | [inline, virtual] |
| virtual int gnash::media::VideoDecoder::height | ( | ) | const [pure virtual] |
Get the height in pixels of the Video.
Implemented in gnash::media::gst::VideoDecoderGst, gnash::media::ffmpeg::VideoDecoderFfmpeg, and gnash::media::haiku::VideoDecoderHaiku.
| virtual bool gnash::media::VideoDecoder::peek | ( | ) | [pure virtual] |
Check whether a decoded frame is ready to be popped.
This method will never block.
Implemented in gnash::media::gst::VideoDecoderGst, gnash::media::ffmpeg::VideoDecoderFfmpeg, and gnash::media::haiku::VideoDecoderHaiku.
| virtual std::auto_ptr<image::GnashImage> gnash::media::VideoDecoder::pop | ( | ) | [pure virtual] |
Pop a decoded frame from the decoder. THIS METHOD MAY BLOCK.
Implemented in gnash::media::gst::VideoDecoderGst, gnash::media::ffmpeg::VideoDecoderFfmpeg, and gnash::media::haiku::VideoDecoderHaiku.
| virtual void gnash::media::VideoDecoder::push | ( | const EncodedVideoFrame & | buffer | ) | [pure virtual] |
Push an encoded video frame into the decoder.
| buffer | the video frame to decode |
Implemented in gnash::media::gst::VideoDecoderGst, gnash::media::ffmpeg::VideoDecoderFfmpeg, and gnash::media::haiku::VideoDecoderHaiku.
| virtual int gnash::media::VideoDecoder::width | ( | ) | const [pure virtual] |
Get the width in pixels of the Video.
Implemented in gnash::media::gst::VideoDecoderGst, gnash::media::ffmpeg::VideoDecoderFfmpeg, and gnash::media::haiku::VideoDecoderHaiku.
1.7.5