Public Member Functions

gnash::media::gst::VideoConverterGst Class Reference

Base class for video image space conversion with gst. More...

#include <VideoConverterGst.h>

Inheritance diagram for gnash::media::gst::VideoConverterGst:
Inheritance graph
[legend]
Collaboration diagram for gnash::media::gst::VideoConverterGst:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VideoConverterGst (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat)
 Base class for video image space conversion with gst.
 ~VideoConverterGst ()
std::auto_ptr< ImgBufconvert (const ImgBuf &src)
 Convert a (video) image from one colorspace to another.
bool init (const ImgBuf &src)

Detailed Description

Base class for video image space conversion with gst.


Constructor & Destructor Documentation

gnash::media::gst::VideoConverterGst::VideoConverterGst ( ImgBuf::Type4CC  srcFormat,
ImgBuf::Type4CC  dstFormat 
)

Base class for video image space conversion with gst.

References _, gnash::media::VideoConverter::_dst_fmt, and SwfdecGstDecoder::bin.

gnash::media::gst::VideoConverterGst::~VideoConverterGst (  ) 

Member Function Documentation

std::auto_ptr< ImgBuf > gnash::media::gst::VideoConverterGst::convert ( const ImgBuf src  )  [virtual]

Convert a (video) image from one colorspace to another.

Parameters:
src the image to convert
Returns:
the converted image or a NULL auto_ptr if an error occurred.

Implements gnash::media::VideoConverter.

References _, gnash::media::VideoConverter::_dst_fmt, gnash::media::ImgBuf::data, gnash::media::ImgBuf::height, init(), gnash::media::ImgBuf::size, swfdec_gst_decoder_pull(), swfdec_gst_decoder_push(), and gnash::media::ImgBuf::width.

bool gnash::media::gst::VideoConverterGst::init ( const ImgBuf src  ) 

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