Gnash  0.8.11dev
Public Member Functions | Protected Attributes | List of all members
gnash::media::VideoConverter Class Referenceabstract

Abstract base class for video image space conversion. More...

#include <VideoConverter.h>

Inheritance diagram for gnash::media::VideoConverter:
gnash::media::ffmpeg::VideoConverterFfmpeg gnash::media::gst::VideoConverterGst gnash::media::haiku::VideoConverterHaiku

Public Member Functions

 VideoConverter (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat)
 
virtual ~VideoConverter ()
 
virtual std::unique_ptr< ImgBufconvert (const ImgBuf &src)=0
 Convert a (video) image from one colorspace to another. More...
 

Protected Attributes

ImgBuf::Type4CC _src_fmt
 
ImgBuf::Type4CC _dst_fmt
 

Detailed Description

Abstract base class for video image space conversion.

Constructor & Destructor Documentation

§ VideoConverter()

gnash::media::VideoConverter::VideoConverter ( ImgBuf::Type4CC  srcFormat,
ImgBuf::Type4CC  dstFormat 
)
inline

§ ~VideoConverter()

virtual gnash::media::VideoConverter::~VideoConverter ( )
inlinevirtual

Member Function Documentation

§ convert()

virtual std::unique_ptr<ImgBuf> gnash::media::VideoConverter::convert ( const ImgBuf src)
pure virtual

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

Parameters
srcthe image to convert
Returns
the converted image or a NULL unique_ptr if an error occurred.

Implemented in gnash::media::gst::VideoConverterGst, gnash::media::haiku::VideoConverterHaiku, and gnash::media::ffmpeg::VideoConverterFfmpeg.

Member Data Documentation

§ _dst_fmt

ImgBuf::Type4CC gnash::media::VideoConverter::_dst_fmt
protected

§ _src_fmt

ImgBuf::Type4CC gnash::media::VideoConverter::_src_fmt
protected

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