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

Haiku media kit based VideoDecoder. More...

#include <VideoDecoderHaiku.h>

Inheritance diagram for gnash::media::haiku::VideoDecoderHaiku:
gnash::media::VideoDecoder

Public Member Functions

 VideoDecoderHaiku (const VideoInfo &info)
 
 ~VideoDecoderHaiku ()
 
void push (const EncodedVideoFrame &buffer)
 Push an encoded video frame into the decoder. More...
 
std::unique_ptr< 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 ()
 

Detailed Description

Haiku media kit based VideoDecoder.

Constructor & Destructor Documentation

§ VideoDecoderHaiku()

gnash::media::haiku::VideoDecoderHaiku::VideoDecoderHaiku ( const VideoInfo info)

§ ~VideoDecoderHaiku()

gnash::media::haiku::VideoDecoderHaiku::~VideoDecoderHaiku ( )

References QQ.

Member Function Documentation

§ height()

int gnash::media::haiku::VideoDecoderHaiku::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.

References QQ.

§ peek()

bool gnash::media::haiku::VideoDecoderHaiku::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 QQ.

§ pop()

std::unique_ptr< GnashImage > gnash::media::haiku::VideoDecoderHaiku::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 gnash::key::d, and gnash::key::i.

§ push()

void gnash::media::haiku::VideoDecoderHaiku::push ( const EncodedVideoFrame buffer)
virtual

Push an encoded video frame into the decoder.

Parameters
bufferthe video frame to decode

Implements gnash::media::VideoDecoder.

References QQ.

§ width()

int gnash::media::haiku::VideoDecoderHaiku::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.

References QQ.


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