move to new ffmpeg channel layout handling
[nyanmp.git] / npv / namespace / ffmpeg.h
blob9b9dde939c2760f64bef22573365de571d38768d
1 #ifndef CLEANUP
2 #define AVUTIL_AUDIO_FR_FMT_NONE AV_SAMPLE_FMT_NONE
3 #define AVUTIL_AUDIO_FR_FMT_U8 AV_SAMPLE_FMT_U8
4 #define AVUTIL_AUDIO_FR_FMT_U8P AV_SAMPLE_FMT_U8P
5 #define AVUTIL_AUDIO_FR_FMT_S16 AV_SAMPLE_FMT_S16
6 #define AVUTIL_AUDIO_FR_FMT_S32 AV_SAMPLE_FMT_S32
7 #define AVUTIL_AUDIO_FR_FMT_FLT AV_SAMPLE_FMT_FLT
8 #define AVUTIL_AUDIO_FR_FMT_DBL AV_SAMPLE_FMT_DBL
9 #define AVUTIL_AUDIO_FR_FMT_U8P AV_SAMPLE_FMT_U8P
10 #define AVUTIL_AUDIO_FR_FMT_S16P AV_SAMPLE_FMT_S16P
11 #define AVUTIL_AUDIO_FR_FMT_S32P AV_SAMPLE_FMT_S32P
12 #define AVUTIL_AUDIO_FR_FMT_FLTP AV_SAMPLE_FMT_FLTP
13 #define AVUTIL_AUDIO_FR_FMT_DBLP AV_SAMPLE_FMT_DBLP
14 #define AVUTIL_OPT_SEARCH_CHILDREN AV_OPT_SEARCH_CHILDREN
15 /*----------------------------------------------------------------------------*/
16 #define AVFILTER_BUFSRC_FLAG_PUSH AV_BUFFERSRC_FLAG_PUSH
17 #define AVFILTER_BUFSRC_FLAG_KEEP_REF AV_BUFFERSRC_FLAG_KEEP_REF
18 #define AVUTIL_AVERROR AVERROR
19 #define AVUTIL_AVERROR_EOF AVERROR_EOF
20 #define AVUTIL_AVMEDIA_TYPE_AUDIO AVMEDIA_TYPE_AUDIO
21 #define AVUTIL_AVMEDIA_TYPE_VIDEO AVMEDIA_TYPE_VIDEO
22 #define AVUTIL_DATA_PTRS_N AV_NUM_DATA_POINTERS
23 #define AVUTIL_NOPTS_VALUE AV_NOPTS_VALUE
24 #define AVUTIL_PIX_FMT_RGB32 AV_PIX_FMT_RGB32
25 /*----------------------------------------------------------------------------*/
26 #define avcodec_codec_t const AVCodec
27 #define avcodec_codec_ctx_t AVCodecContext
28 #define avcodec_find_dec avcodec_find_decoder
29 #define avcodec_send_pkt avcodec_send_packet
30 #define avcodec_alloc_ctx avcodec_alloc_context3
31 #define avcodec_flush_bufs avcodec_flush_buffers
32 #define avcodec_params_t AVCodecParameters
33 #define avcodec_params_to_ctx avcodec_parameters_to_context
34 #define avcodec_pkt_move_ref av_packet_move_ref
35 #define avcodec_pkt_ref_alloc av_packet_alloc
36 #define avcodec_pkt_ref_t AVPacket
37 #define avcodec_pkt_unref av_packet_unref
38 #define avfilter_bufsink_tb_get av_buffersink_get_time_base
39 #define avfilter_filt_t AVFilter
40 #define avfilter_filt_ctx_t AVFilterContext
41 #define avfilter_filt_graph_t AVFilterGraph
42 #define avfilter_graph_alloc_filt avfilter_graph_alloc_filter
43 #define avfilter_graph_send_cmd avfilter_graph_send_command
44 #define avformat_ctx_t AVFormatContext
45 #define avformat_dump_fmt av_dump_format
46 #define avformat_duration_estimation_method_t AVDurationEstimationMethod
47 #define avformat_duration_from_bitrate AVFMT_DURATION_FROM_BITRATE
48 #define avformat_duration_from_pts AVFMT_DURATION_FROM_PTS
49 #define avformat_duration_from_st AVFMT_DURATION_FROM_STREAM
50 #define avformat_find_best_st av_find_best_stream
51 #define avformat_find_st_info avformat_find_stream_info
52 #define avformat_read_pause av_read_pause
53 #define avformat_read_play av_read_play
54 #define avformat_seek_pkt av_seek_frame
55 #define avformat_st_t AVStream
56 #define avutil_cpus_n av_cpu_count
57 #define avutil_free av_free
58 #define avutil_get_audio_fr_fmt_name av_get_sample_fmt_name
59 #define avutil_get_pix_fmt_name av_get_pix_fmt_name
60 #define avutil_get_pix_fmt_str av_get_pix_fmt_string
61 #define avutil_log_default_callback av_log_default_callback
62 #define avutil_log_set_callback av_log_set_callback
63 #define avutil_opt_set av_opt_set
64 #define avutil_opt_set_bin av_opt_set_bin
65 #define avutil_opt_set_int av_opt_set_int
66 #define avutil_opt_set_pixel_fmt av_opt_set_pixel_fmt
67 #define avutil_opt_set_q av_opt_set_q
68 #define avutil_pixel_fmt_t AVPixelFormat
69 #define avutil_rational_t AVRational
70 #define avutil_rescale_q av_rescale_q
71 /* some struct members */
72 #define fmt format
73 #define tb time_base
74 #define sts streams
75 /* scaler */
76 #define sws_ctx SwsContext
77 #define sws_get_cached_ctx sws_getCachedContext
78 /*============================================================================*/
79 #else
80 #undef AVUTIL_AUDIO_FR_FMT_NONE
81 #undef AVUTIL_AUDIO_FR_FMT_U8
82 #undef AVUTIL_AUDIO_FR_FMT_S16
83 #undef AVUTIL_AUDIO_FR_FMT_S32
84 #undef AVUTIL_AUDIO_FR_FMT_FLT
85 #undef AVUTIL_AUDIO_FR_FMT_U8P
86 #undef AVUTIL_AUDIO_FR_FMT_S16P
87 #undef AVUTIL_AUDIO_FR_FMT_S32P
88 #undef AVUTIL_AUDIO_FR_FMT_FLTP
89 #undef AVUTIL_OPT_SEARCH_CHILDREN
90 /*----------------------------------------------------------------------------*/
91 /*----------------------------------------------------------------------------*/
92 #undef AVFILTER_BUFSRC_FLAG_PUSH
93 #undef AVFILTER_BUFSRC_FLAG_KEEP_REF
94 #undef AVUTIL_AVERROR
95 #undef AVUTIL_AVERROR_EOF
96 #undef AVUTIL_AVMEDIA_TYPE_AUDIO
97 #undef AVUTIL_AVMEDIA_TYPE_VIDEO
98 #undef AVUTIL_DATA_PTRS_N
99 #undef AVUTIL_NOPTS_VALUE
100 #undef AVUTIL_PIX_FMT_RGB32
101 /*----------------------------------------------------------------------------*/
102 #undef avcodec_codec_t
103 #undef avcodec_codec_ctx_t
104 #undef avcodec_find_dec
105 #undef avcodec_send_pkt
106 #undef avcodec_alloc_ctx
107 #undef avcodec_flush_bufs
108 #undef avcodec_params_t
109 #undef avcodec_params_to_ctx
110 #undef avcodec_pkt_make_refcounted
111 #undef avcodec_pkt_move_ref
112 #undef avcodec_pkt_ref_alloc
113 #undef avcodec_pkt_ref_t
114 #undef avcodec_pkt_unref
115 #undef avfilter_bufsink_tb_get
116 #undef avfilter_filt_t
117 #undef avfilter_filt_ctx_t
118 #undef avfilter_filt_graph_t
119 #undef avfilter_graph_alloc_filt
120 #undef avfilter_graph_send_cmd
121 #undef avformat_ctx_t
122 #undef avformat_dump_fmt
123 #undef avformat_duration_estimation_method_t
124 #undef avformat_duration_from_bitrate
125 #undef avformat_duration_from_pts
126 #undef avformat_duration_from_st
127 #undef avformat_find_best_st
128 #undef avformat_find_st_info
129 #undef avformat_read_pause
130 #undef avformat_read_play
131 #undef avformat_seek_pkt
132 #undef avformat_st_t
133 #undef avutil_cpus_n
134 #undef avutil_free
135 #undef avutil_get_audio_fr_fmt_name
136 #undef avutil_get_pix_fmt_name
137 #undef avutil_get_pix_fmt_str
138 #undef avutil_log_default_callback
139 #undef avutil_log_set_callback
140 #undef avutil_opt_set
141 #undef avutil_opt_set_bin
142 #undef avutil_opt_set_int
143 #undef avutil_opt_set_pixel_fmt
144 #undef avutil_opt_set_q
145 #undef avutil_pixel_fmt_t
146 #undef avutil_rational_t
147 #undef avutil_rescale_q
148 /*----------------------------------------------------------------------------*/
149 #undef fmt
150 #undef tb
151 #undef sts
152 #undef sws_ctx
153 #undef sws_get_cache_ctx
154 #endif