Public Member Functions

gnash::media::haiku::MediaHandlerHaiku Class Reference

Haiku based MediaHandler. More...

#include <MediaHandlerHaiku.h>

Inheritance diagram for gnash::media::haiku::MediaHandlerHaiku:
Inheritance graph
[legend]
Collaboration diagram for gnash::media::haiku::MediaHandlerHaiku:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual std::string description () const
 Return a description of this media handler.
virtual std::auto_ptr
< MediaParser
createMediaParser (std::auto_ptr< IOChannel > stream)
 Return an appropriate MediaParser for given input.
virtual std::auto_ptr
< VideoDecoder
createVideoDecoder (const VideoInfo &info)
 Create a VideoDecoder for decoding what's specified in the VideoInfo.
virtual std::auto_ptr
< VideoConverter
createVideoConverter (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat)
 Create an VideoConverter for converting between color spaces.
virtual std::auto_ptr
< AudioDecoder
createAudioDecoder (const AudioInfo &info)
 Create an AudioDecoder for decoding what's specified in the AudioInfo.
virtual VideoInputgetVideoInput (size_t index)
 Return a VideoInput.
virtual AudioInputgetAudioInput (size_t index)
virtual void cameraNames (std::vector< std::string > &names) const
 Return a list of available cameras.

Detailed Description

Haiku based MediaHandler.


Member Function Documentation

void gnash::media::haiku::MediaHandlerHaiku::cameraNames ( std::vector< std::string > &  names  )  const [virtual]

Return a list of available cameras.

This is re-generated every time the function is called.

Implements gnash::media::MediaHandler.

std::auto_ptr< AudioDecoder > gnash::media::haiku::MediaHandlerHaiku::createAudioDecoder ( const AudioInfo info  )  [virtual]

Create an AudioDecoder for decoding what's specified in the AudioInfo.

Parameters:
info AudioInfo class with all the info needed to decode the sound correctly.
Returns:
Will always return a valid AudioDecoder or throw a gnash::MediaException if a fatal error occurs.

Implements gnash::media::MediaHandler.

std::auto_ptr< MediaParser > gnash::media::haiku::MediaHandlerHaiku::createMediaParser ( std::auto_ptr< IOChannel stream  )  [virtual]

Return an appropriate MediaParser for given input.

Parameters:
stream Input stream, ownership transferred
Returns:
0 if no parser could be created for the input

NOTE: the default implementation returns an FLVParser for FLV input or 0 for others.

Reimplemented from gnash::media::MediaHandler.

References gnash::media::MediaHandler::isFLV().

std::auto_ptr< VideoConverter > gnash::media::haiku::MediaHandlerHaiku::createVideoConverter ( ImgBuf::Type4CC  srcFormat,
ImgBuf::Type4CC  dstFormat 
) [virtual]

Create an VideoConverter for converting between color spaces.

Parameters:
srcFormat The source image color space
dstFormat The destination image color space
Returns:
A valid VideoConverter or a NULL auto_ptr if a fatal error occurs.

Implements gnash::media::MediaHandler.

std::auto_ptr< VideoDecoder > gnash::media::haiku::MediaHandlerHaiku::createVideoDecoder ( const VideoInfo info  )  [virtual]

Create a VideoDecoder for decoding what's specified in the VideoInfo.

Parameters:
info VideoInfo class with all the info needed to decode the image stream correctly.
Returns:
Will always return a valid VideoDecoder or throw a gnash::MediaException if a fatal error occurs.

Implements gnash::media::MediaHandler.

virtual std::string gnash::media::haiku::MediaHandlerHaiku::description (  )  const [inline, virtual]

Return a description of this media handler.

Implements gnash::media::MediaHandler.

AudioInput * gnash::media::haiku::MediaHandlerHaiku::getAudioInput ( size_t  index  )  [virtual]
VideoInput * gnash::media::haiku::MediaHandlerHaiku::getVideoInput ( size_t  index  )  [virtual]

Return a VideoInput.

This is always owned by the MediaHandler, but will remain alive as long as it is referenced by a Camera object.

Parameters:
index The index of the VideoInput to return.
Returns:
A Video Input corresponding to the specified index or null if it is not available.

Implements gnash::media::MediaHandler.


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