Gnash  0.8.10
Public Member Functions
gnash::media::ffmpeg::VideoConverterFfmpeg Class Reference

#include <VideoConverterFfmpeg.h>

Inheritance diagram for gnash::media::ffmpeg::VideoConverterFfmpeg:
gnash::media::VideoConverter

List of all members.

Public Member Functions

 VideoConverterFfmpeg (ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat)
 ~VideoConverterFfmpeg ()
std::auto_ptr< ImgBufconvert (const ImgBuf &src)
 Convert a (video) image from one colorspace to another.

Constructor & Destructor Documentation

gnash::media::ffmpeg::VideoConverterFfmpeg::VideoConverterFfmpeg ( ImgBuf::Type4CC  srcFormat,
ImgBuf::Type4CC  dstFormat 
)
gnash::media::ffmpeg::VideoConverterFfmpeg::~VideoConverterFfmpeg ( )

Member Function Documentation

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

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

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

Implements gnash::media::VideoConverter.

References width, gnash::media::ImgBuf::width, height, gnash::media::ImgBuf::height, gnash::media::ffmpeg::fourcc_to_ffmpeg(), gnash::media::VideoConverter::_dst_fmt, assert, gnash::media::ImgBuf::data, and gnash::media::ImgBuf::stride.


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