Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef GNASH_VIDEOCONVERTERFFMPEG_H
00019 #define GNASH_VIDEOCONVERTERFFMPEG_H
00020
00021 #include "ffmpegHeaders.h"
00022 #include "VideoConverter.h"
00023
00024 namespace gnash {
00025 namespace media {
00026 namespace ffmpeg {
00027
00028 class SwsContextWrapper;
00029
00030 class VideoConverterFfmpeg : public VideoConverter {
00031
00032 public:
00033 VideoConverterFfmpeg(ImgBuf::Type4CC srcFormat, ImgBuf::Type4CC dstFormat);
00034
00035 ~VideoConverterFfmpeg();
00036
00037 std::auto_ptr<ImgBuf> convert(const ImgBuf& src);
00038
00039 private:
00040
00041 #if HAVE_SWSCALE_H
00042 std::auto_ptr<SwsContextWrapper> _swsContext;
00043 #endif
00044 };
00045
00046 }
00047 }
00048 }
00049
00050 #endif // GNASH_VIDEOCONVERTERFFMPEG_H