00001
00002 #ifndef vidl_ffmpeg_convert_h_
00003 #define vidl_ffmpeg_convert_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "vidl_frame_sptr.h"
00016 #include "vidl_pixel_format.h"
00017
00018 #include <vidl/vidl_config.h>
00019 extern "C" {
00020 #if FFMPEG_IN_SEVERAL_DIRECTORIES
00021 #include <libavcodec/avcodec.h>
00022 #else
00023 #include <ffmpeg/avcodec.h>
00024 #endif
00025 }
00026
00027
00028
00029
00030
00031
00032
00033 bool vidl_ffmpeg_convert(const vidl_frame_sptr& in_frame,
00034 vidl_frame_sptr& out_frame);
00035
00036
00037
00038 vidl_pixel_format
00039 vidl_pixel_format_from_ffmpeg(PixelFormat ffmpeg_pix_fmt);
00040
00041
00042
00043 PixelFormat
00044 vidl_pixel_format_to_ffmpeg(vidl_pixel_format vidl_pix_fmt);
00045
00046 #endif // vidl_ffmpeg_convert_h_
00047