Gnash  0.8.10
ffmpegHeaders.h
Go to the documentation of this file.
00001 // ffmpegHeaders.h - hide braindamage required to support ffmpeg includes in a single file
00002 // 
00003 //   Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
00004 //   Free Software Foundation, Inc.
00005 // 
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU General Public License as published by
00008 // the Free Software Foundation; either version 3 of the License, or
00009 // (at your option) any later version.
00010 // 
00011 // This program is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 // GNU General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU General Public License
00017 // along with this program; if not, write to the Free Software
00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 
00020 #ifndef GNASH_MEDIA_FFMPEG_HEADERS_H
00021 #define GNASH_MEDIA_FFMPEG_HEADERS_H
00022 
00023 #ifdef HAVE_CONFIG_H
00024 #include "gnashconfig.h"
00025 #endif
00026 
00028 #ifndef __STDC_CONSTANT_MACROS
00029 # define __STDC_CONSTANT_MACROS
00030 #endif
00031 
00032 // This is for compatibility with braindamaged versions of ffmpeg
00033 #if !defined INT64_C
00034 #if defined __WORDSIZE && __WORDSIZE == 64
00035 #define INT64_C(c) c ## L
00036 #else
00037 #define INT64_C(c) c ## LL
00038 #endif
00039 #endif
00040 
00041 #ifdef HAVE_FFMPEG_AVCODEC_H
00042 extern "C" {
00043 # include <ffmpeg/avcodec.h>
00044 }
00045 #endif
00046 
00047 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
00048 extern "C" {
00049 # include <libavcodec/avcodec.h>
00050 }
00051 #endif
00052 
00053 #ifdef HAVE_FFMPEG_AVFORMAT_H
00054 extern "C" {
00055 #include <ffmpeg/avformat.h>
00056 }
00057 #endif
00058 
00059 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
00060 extern "C" {
00061 #include <libavformat/avformat.h>
00062 }
00063 #endif
00064 
00065 
00066 #ifdef HAVE_SWSCALE_H
00067 extern "C" {
00068 #include <swscale.h>
00069 }
00070 #endif
00071 
00072 #ifdef HAVE_FFMPEG_SWSCALE_H
00073 extern "C" {
00074 #include <ffmpeg/swscale.h>
00075 }
00076 #define HAVE_SWSCALE_H 1
00077 #endif
00078 
00079 #ifdef HAVE_LIBSWSCALE_SWSCALE_H
00080 extern "C" {
00081 #include <libswscale/swscale.h>
00082 }
00083 #define HAVE_SWSCALE_H 1
00084 #endif
00085 
00086 
00087 #endif // GNASH_MEDIA_FFMPEG_HEADERS_H