contrib/brl/bbas/vidl2/vidl2_ffmpeg_istream.cxx

Go to the documentation of this file.
00001 // This is brl/bbas/vidl2/vidl2_ffmpeg_istream.cxx
00002 
00003 #include <vidl2/vidl2_config.h>
00004 
00005 #if VIDL2_HAS_FFMPEG
00006 
00007 #include "vidl2_ffmpeg_ostream.h"
00008 
00009 // The ffmpeg API keeps changing, so we use different implementations
00010 // depending on which version of ffmpeg we have.
00011 
00012 #include "vidl2_ffmpeg_istream.h"
00013 
00014 extern "C" {
00015 // some versions of FFMPEG require this definition before including 
00016 // the headers for C++ compatibility
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

Generated on Wed Dec 3 05:21:03 2008 for contrib/brl/bbas/vidl2 by  doxygen 1.5.1