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

Haiku based MediaHandler. More...

#include <MediaHandlerHaiku.h>

Inheritance diagram for gnash::media::haiku::MediaHandlerHaiku:
gnash::media::MediaHandler

Public Member Functions

virtual std::string description () const
 Return a description of this media handler. More...
 
virtual std::unique_ptr< MediaParser > createMediaParser (std::shared_ptr< IOChannel > stream)
 
virtual std::unique_ptr< VideoDecoder > createVideoDecoder (const VideoInfo &info)
 Create a VideoDecoder for decoding what's specified in the VideoInfo. More...
 
virtual std::unique_ptr< VideoConverter > createVideoConverter (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat)
 Create an VideoConverter for converting between color spaces. More...
 
virtual std::unique_ptr< AudioDecoder > createAudioDecoder (const AudioInfo &info)
 Create an AudioDecoder for decoding what's specified in the AudioInfo. More...
 
virtual VideoInput * getVideoInput (size_t index)
 Return a VideoInput. More...
 
virtual AudioInput * getAudioInput (size_t index)
 
virtual void cameraNames (std::vector< std::string > &names) const
 Return a list of available cameras. More...
 
- Public Member Functions inherited from gnash::media::MediaHandler
virtual ~MediaHandler ()
 
virtual std::unique_ptr< MediaParser > createMediaParser (std::unique_ptr< IOChannel > stream)
 Return an appropriate MediaParser for given input. More...
 
virtual size_t getInputPaddingSize () const
 Return the number of bytes padding needed for input buffers. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gnash::media::MediaHandler
 MediaHandler ()
 Base constructor. More...
 
std::unique_ptr< AudioDecoder > createFlashAudioDecoder (const AudioInfo &info)
 Create an AudioDecoder for CODEC_TYPE_FLASH codecs. More...
 
bool isFLV (IOChannel &stream)
 Return true if input stream is an FLV. More...
 

Detailed Description

Haiku based MediaHandler.

Member Function Documentation

◆ cameraNames()

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.

References gnash::log_unimpl(), and QQ.

Referenced by description().

◆ createAudioDecoder()

std::unique_ptr< AudioDecoder > gnash::media::haiku::MediaHandlerHaiku::createAudioDecoder ( const AudioInfo &  info)
virtual

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

Parameters
infoAudioInfo 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.

References _, gnash::media::CODEC_TYPE_FLASH, gnash::media::MediaHandler::createFlashAudioDecoder(), and gnash::media::AudioInfo::type.

Referenced by description().

◆ createMediaParser()

std::unique_ptr< MediaParser > gnash::media::haiku::MediaHandlerHaiku::createMediaParser ( std::shared_ptr< IOChannel >  stream)
virtual

◆ createVideoConverter()

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

Create an VideoConverter for converting between color spaces.

Parameters
srcFormatThe source image color space
dstFormatThe destination image color space
Returns
A valid VideoConverter or a NULL unique_ptr if a fatal error occurs.

Implements gnash::media::MediaHandler.

References gnash::log_error().

Referenced by description().

◆ createVideoDecoder()

std::unique_ptr< VideoDecoder > gnash::media::haiku::MediaHandlerHaiku::createVideoDecoder ( const VideoInfo &  info)
virtual

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

Parameters
infoVideoInfo 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.

Referenced by description().

◆ description()

virtual std::string gnash::media::haiku::MediaHandlerHaiku::description ( ) const
inlinevirtual

◆ getAudioInput()

AudioInput * gnash::media::haiku::MediaHandlerHaiku::getAudioInput ( size_t  index)
virtual

Implements gnash::media::MediaHandler.

Referenced by description().

◆ getVideoInput()

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
indexThe 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.

Referenced by description().


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