Go to the documentation of this file.
20 #ifndef GNASH_MEDIA_FFMPEG_HEADERS_H
21 #define GNASH_MEDIA_FFMPEG_HEADERS_H
28 #ifndef __STDC_CONSTANT_MACROS
29 # define __STDC_CONSTANT_MACROS
34 #if defined __WORDSIZE && __WORDSIZE == 64
35 #define INT64_C(c) c ## L
37 #define INT64_C(c) c ## LL
41 #define MAX_AUDIO_FRAME_SIZE 192000
43 #ifdef HAVE_FFMPEG_AVCODEC_H
45 # include <ffmpeg/avcodec.h>
49 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
51 # include <libavcodec/avcodec.h>
55 #ifdef HAVE_FFMPEG_AVFORMAT_H
57 #include <ffmpeg/avformat.h>
61 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
63 #include <libavformat/avformat.h>
74 #ifdef HAVE_FFMPEG_SWSCALE_H
76 #include <ffmpeg/swscale.h>
78 #define HAVE_SWSCALE_H 1
81 #ifdef HAVE_LIBSWSCALE_SWSCALE_H
83 #include <libswscale/swscale.h>
85 #define HAVE_SWSCALE_H 1
88 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,94,1)
89 #define AV_SAMPLE_FMT_NONE SAMPLE_FMT_NONE
90 #define AV_SAMPLE_FMT_U8 SAMPLE_FMT_U8
91 #define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16
92 #define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32
93 #define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT
94 #define AV_SAMPLE_FMT_DBL SAMPLE_FMT_DBL
96 #define AVSampleFormat SampleFormat
99 #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,18,102)
100 #define CODECID AVCodecID
102 #define CODECID CodecID
105 #ifdef HAVE_SWRESAMPLE_H
107 #include <swresample.h>
111 #ifdef HAVE_FFMPEG_SWRESAMPLE_H
113 #include <ffmpeg/swresample.h>
115 #define HAVE_SWRESAMPLE_H 1
118 #ifdef HAVE_LIBSWRESAMPLE_SWRESAMPLE_H
120 #include <libswresample/swresample.h>
122 #define HAVE_SWRESAMPLE_H 1
125 #ifdef HAVE_AVRESAMPLE_H
127 #include <avresample.h>
131 #ifdef HAVE_LIBAV_AVRESAMPLE_H
133 #include <libav/avresample.h>
135 #define HAVE_AVRESAMPLE_H 1
138 #ifdef HAVE_LIBAVRESAMPLE_AVRESAMPLE_H
140 #include <libavresample/avresample.h>
142 #define HAVE_AVRESAMPLE_H 1
145 #ifdef HAVE_LIBAVUTIL_OPT_H
147 #include <libavutil/opt.h>
151 #endif // GNASH_MEDIA_FFMPEG_HEADERS_H