Gnash  0.8.11dev
ffmpegHeaders.h
Go to the documentation of this file.
1 // ffmpegHeaders.h - hide braindamage required to support ffmpeg includes in a single file
2 //
3 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc.
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 
20 #ifndef GNASH_MEDIA_FFMPEG_HEADERS_H
21 #define GNASH_MEDIA_FFMPEG_HEADERS_H
22 
23 #ifdef HAVE_CONFIG_H
24 #include "gnashconfig.h"
25 #endif
26 
28 #ifndef __STDC_CONSTANT_MACROS
29 # define __STDC_CONSTANT_MACROS
30 #endif
31 
32 // This is for compatibility with braindamaged versions of ffmpeg
33 #if !defined INT64_C
34 #if defined __WORDSIZE && __WORDSIZE == 64
35 #define INT64_C(c) c ## L
36 #else
37 #define INT64_C(c) c ## LL
38 #endif
39 #endif
40 
41 #ifdef HAVE_FFMPEG_AVCODEC_H
42 extern "C" {
43 # include <ffmpeg/avcodec.h>
44 }
45 #endif
46 
47 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
48 extern "C" {
49 # include <libavcodec/avcodec.h>
50 }
51 #endif
52 
53 #ifdef HAVE_FFMPEG_AVFORMAT_H
54 extern "C" {
55 #include <ffmpeg/avformat.h>
56 }
57 #endif
58 
59 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
60 extern "C" {
61 #include <libavformat/avformat.h>
62 }
63 #endif
64 
65 
66 #ifdef HAVE_SWSCALE_H
67 extern "C" {
68 #include <swscale.h>
69 }
70 #endif
71 
72 #ifdef HAVE_FFMPEG_SWSCALE_H
73 extern "C" {
74 #include <ffmpeg/swscale.h>
75 }
76 #define HAVE_SWSCALE_H 1
77 #endif
78 
79 #ifdef HAVE_LIBSWSCALE_SWSCALE_H
80 extern "C" {
81 #include <libswscale/swscale.h>
82 }
83 #define HAVE_SWSCALE_H 1
84 #endif
85 
86 
87 #endif // GNASH_MEDIA_FFMPEG_HEADERS_H