Gnash
0.8.10
|
FFMPEG based MediaHandler. More...
#include <MediaHandlerFfmpeg.h>
Public Member Functions | |
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 size_t | getInputPaddingSize () const |
Return the number of bytes padding needed for input buffers. | |
virtual VideoInput * | getVideoInput (size_t index) |
Return a VideoInput. | |
virtual AudioInput * | getAudioInput (size_t index) |
virtual void | cameraNames (std::vector< std::string > &names) const |
Return a list of available cameras. |
FFMPEG based MediaHandler.
void gnash::media::ffmpeg::MediaHandlerFfmpeg::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::ffmpeg::MediaHandlerFfmpeg::createAudioDecoder | ( | const AudioInfo & | info | ) | [virtual] |
Create an AudioDecoder for decoding what's specified in the AudioInfo.
info | AudioInfo class with all the info needed to decode the sound correctly. |
Implements gnash::media::MediaHandler.
References gnash::media::AudioInfo::type, gnash::media::CODEC_TYPE_FLASH, gnash::media::MediaHandler::createFlashAudioDecoder(), and _.
std::auto_ptr< MediaParser > gnash::media::ffmpeg::MediaHandlerFfmpeg::createMediaParser | ( | std::auto_ptr< IOChannel > | stream | ) | [virtual] |
Return an appropriate MediaParser for given input.
stream | Input stream, ownership transferred |
NOTE: the default implementation returns an FLVParser for FLV input or 0 for others.
Reimplemented from gnash::media::MediaHandler.
References gnash::media::MediaHandler::isFLV(), and assert.
std::auto_ptr< VideoConverter > gnash::media::ffmpeg::MediaHandlerFfmpeg::createVideoConverter | ( | ImgBuf::Type4CC | srcFormat, |
ImgBuf::Type4CC | dstFormat | ||
) | [virtual] |
Create an VideoConverter for converting between color spaces.
srcFormat | The source image color space |
dstFormat | The destination image color space |
Implements gnash::media::MediaHandler.
std::auto_ptr< VideoDecoder > gnash::media::ffmpeg::MediaHandlerFfmpeg::createVideoDecoder | ( | const VideoInfo & | info | ) | [virtual] |
Create a VideoDecoder for decoding what's specified in the VideoInfo.
info | VideoInfo class with all the info needed to decode the image stream correctly. |
Implements gnash::media::MediaHandler.
std::string gnash::media::ffmpeg::MediaHandlerFfmpeg::description | ( | ) | const [virtual] |
Return a description of this media handler.
Implements gnash::media::MediaHandler.
AudioInput * gnash::media::ffmpeg::MediaHandlerFfmpeg::getAudioInput | ( | size_t | index | ) | [virtual] |
Implements gnash::media::MediaHandler.
size_t gnash::media::ffmpeg::MediaHandlerFfmpeg::getInputPaddingSize | ( | ) | const [virtual] |
Return the number of bytes padding needed for input buffers.
Bitstream readers are optimized to read several bytes at a time, and this should be used to allocate a large enough input buffer.
Reimplemented from gnash::media::MediaHandler.
VideoInput * gnash::media::ffmpeg::MediaHandlerFfmpeg::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.
index | The index of the VideoInput to return. |
Implements gnash::media::MediaHandler.