Gnash
0.8.10
|
Base class for video image space conversion with gst. More...
#include <VideoConverterGst.h>
Public Member Functions | |
VideoConverterGst (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat) | |
Base class for video image space conversion with gst. | |
~VideoConverterGst () | |
std::auto_ptr< ImgBuf > | convert (const ImgBuf &src) |
Convert a (video) image from one colorspace to another. | |
bool | init (const ImgBuf &src) |
Base class for video image space conversion with gst.
gnash::media::gst::VideoConverterGst::VideoConverterGst | ( | ImgBuf::Type4CC | srcFormat, |
ImgBuf::Type4CC | dstFormat | ||
) |
Base class for video image space conversion with gst.
References SwfdecGstDecoder::bin, _, and gnash::media::VideoConverter::_dst_fmt.
gnash::media::gst::VideoConverterGst::~VideoConverterGst | ( | ) |
References SwfdecGstDecoder::bin, swfdec_gst_decoder_push_eos(), and swfdec_gst_decoder_finish().
std::auto_ptr< ImgBuf > gnash::media::gst::VideoConverterGst::convert | ( | const ImgBuf & | src | ) | [virtual] |
Convert a (video) image from one colorspace to another.
src | the image to convert |
Implements gnash::media::VideoConverter.
References init(), gnash::media::ImgBuf::data, gnash::media::ImgBuf::size, swfdec_gst_decoder_push(), _, swfdec_gst_decoder_pull(), gnash::media::VideoConverter::_dst_fmt, gnash::media::ImgBuf::width, and gnash::media::ImgBuf::height.
bool gnash::media::gst::VideoConverterGst::init | ( | const ImgBuf & | src | ) |
References gnash::media::ImgBuf::width, gnash::media::ImgBuf::height, gnash::media::VideoConverter::_dst_fmt, _, and swfdec_gst_colorspace_init().
Referenced by convert().