00001
00002
00003 #include <vidl2/vidl2_config.h>
00004
00005 #if VIDL2_HAS_FFMPEG
00006
00007 #include "vidl2_ffmpeg_ostream.h"
00008
00009
00010
00011
00012 #include "vidl2_ffmpeg_istream.h"
00013
00014 extern "C" {
00015
00016
00017 #define __STDC_CONSTANT_MACROS
00018 #if FFMPEG_IN_SEVERAL_DIRECTORIES
00019 #include <libavformat/avformat.h>
00020 #else
00021 #include <ffmpeg/avformat.h>
00022 #endif
00023 }
00024
00025 #if LIBAVFORMAT_BUILD < ((52<<16)+(2<<8)+0) // before ver 52.2.0
00026 # include "vidl2_ffmpeg_istream_v1.txx"
00027 #else
00028 # include "vidl2_ffmpeg_istream_v2.txx"
00029 #endif
00030
00031 #else // VIDL2_HAS_FFMPEG
00032
00033 # include "vidl2_ffmpeg_istream_stub.txx"
00034
00035 #endif // VIDL2_HAS_FFMPEG