Gnash
0.8.11dev
|
GST based MediaHandler. More...
#include <MediaHandlerGst.h>
Public Member Functions | |
virtual std::string | description () const |
Return a description of this media handler. More... | |
virtual std::unique_ptr< MediaParser > | createMediaParser (std::unique_ptr< IOChannel > stream) |
Return an appropriate MediaParser for given input. More... | |
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< AudioDecoder > | createAudioDecoder (const AudioInfo &info) |
Create an AudioDecoder for decoding what's specified in the AudioInfo. More... | |
virtual std::unique_ptr< VideoConverter > | createVideoConverter (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat) |
Create an VideoConverter for converting between color spaces. 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... | |
![]() | |
virtual | ~MediaHandler () |
virtual size_t | getInputPaddingSize () const |
Return the number of bytes padding needed for input buffers. More... | |
Additional Inherited Members | |
![]() | |
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... | |
GST based MediaHandler.
The module implements the MediaHandler factory as required by Gnash core for a loadable media handler module.
It uses gstreamer: http://gstreamer.freedesktop.org/
Starting point is MediaHandlerGst.
|
virtual |
Return a list of available cameras.
This is re-generated every time the function is called.
Implements gnash::media::MediaHandler.
References gnash::media::gst::VideoInputGst::getNames().
|
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::AUDIO_CODEC_SPEEX, gnash::media::AudioInfo::codec, gnash::media::CODEC_TYPE_FLASH, gnash::media::MediaHandler::createFlashAudioDecoder(), and gnash::media::AudioInfo::type.
|
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 gnash::log_error().
|
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.
References gnash::log_error().
|
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.
References _, gnash::media::gst::ExtraInfoGst::caps, gnash::media::VideoInfo::codec, gnash::media::CODEC_TYPE_FLASH, gnash::media::ExtraVideoInfoFlv::data, gnash::media::VideoInfo::extra, height, gnash::media::VideoInfo::height, gnash::log_error(), gnash::media::ExtraVideoInfoFlv::size, gnash::media::VideoInfo::type, width, and gnash::media::VideoInfo::width.
|
virtual |
Return a description of this media handler.
Implements gnash::media::MediaHandler.
References gnash::key::s.
|
virtual |
Implements gnash::media::MediaHandler.
|
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.