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