Makefile 40.2 KB
Newer Older
Måns Rullgård's avatar
Måns Rullgård committed
1
include $(SUBDIR)../config.mak
2

3
NAME = avcodec
4
FFLIBS = avutil
5

6
HEADERS = avcodec.h avfft.h dxva2.h opt.h vaapi.h vdpau.h version.h xvmc.h
7

8 9
OBJS = allcodecs.o                                                      \
       audioconvert.o                                                   \
10
       avpacket.o                                                       \
11 12 13 14
       bitstream.o                                                      \
       bitstream_filter.o                                               \
       dsputil.o                                                        \
       faanidct.o                                                       \
15
       fmtconvert.o                                                     \
16 17
       imgconvert.o                                                     \
       jrevdct.o                                                        \
18
       options.o                                                        \
19 20 21 22 23 24
       parser.o                                                         \
       raw.o                                                            \
       resample.o                                                       \
       resample2.o                                                      \
       simple_idct.o                                                    \
       utils.o                                                          \
25

26
# parts needed for many different codecs
27
OBJS-$(CONFIG_AANDCT)                  += aandcttab.o
28
OBJS-$(CONFIG_AC3DSP)                  += ac3dsp.o
29
OBJS-$(CONFIG_ENCODERS)                += faandct.o jfdctfst.o jfdctint.o
30
OBJS-$(CONFIG_DCT)                     += dct.o
31
OBJS-$(CONFIG_DWT)                     += dwt.o
32
OBJS-$(CONFIG_DXVA2)                   += dxva2.o
Mans Rullgard's avatar
Mans Rullgard committed
33 34 35
FFT-OBJS-$(CONFIG_HARDCODED_TABLES)    += cos_tables.o cos_fixed_tables.o
OBJS-$(CONFIG_FFT)                     += avfft.o fft_fixed.o fft_float.o \
                                          $(FFT-OBJS-yes)
36
OBJS-$(CONFIG_GOLOMB)                  += golomb.o
37 38
OBJS-$(CONFIG_H264DSP)                 += h264dsp.o h264idct.o
OBJS-$(CONFIG_H264PRED)                += h264pred.o
39
OBJS-$(CONFIG_HUFFMAN)                 += huffman.o
40
OBJS-$(CONFIG_LPC)                     += lpc.o
41
OBJS-$(CONFIG_LSP)                     += lsp.o
Mans Rullgard's avatar
Mans Rullgard committed
42
OBJS-$(CONFIG_MDCT)                    += mdct_fixed.o mdct_float.o
43 44
RDFT-OBJS-$(CONFIG_HARDCODED_TABLES)   += sin_tables.o
OBJS-$(CONFIG_RDFT)                    += rdft.o $(RDFT-OBJS-yes)
45
OBJS-$(CONFIG_SINEWIN)                 += sinewin.o
46 47
OBJS-$(CONFIG_VAAPI)                   += vaapi.o
OBJS-$(CONFIG_VDPAU)                   += vdpau.o
48

49
# decoders/encoders/hardware accelerators
50 51
OBJS-$(CONFIG_A64MULTI_ENCODER)        += a64multienc.o elbg.o
OBJS-$(CONFIG_A64MULTI5_ENCODER)       += a64multienc.o elbg.o
52
OBJS-$(CONFIG_AAC_DECODER)             += aacdec.o aactab.o aacsbr.o aacps.o \
53
                                          aacadtsdec.o mpeg4audio.o kbdwin.o
54 55 56
OBJS-$(CONFIG_AAC_ENCODER)             += aacenc.o aaccoder.o    \
                                          aacpsy.o aactab.o      \
                                          psymodel.o iirfilter.o \
57
                                          mpeg4audio.o kbdwin.o
58
OBJS-$(CONFIG_AASC_DECODER)            += aasc.o msrledec.o
Kieran Kunhya's avatar
Kieran Kunhya committed
59
OBJS-$(CONFIG_AC3_DECODER)             += ac3dec.o ac3dec_data.o ac3.o kbdwin.o
60
OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc_float.o ac3tab.o ac3.o kbdwin.o
61
OBJS-$(CONFIG_AC3_FIXED_ENCODER)       += ac3enc_fixed.o ac3tab.o ac3.o
Måns Rullgård's avatar
Måns Rullgård committed
62
OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
63
OBJS-$(CONFIG_ALAC_ENCODER)            += alacenc.o
64
OBJS-$(CONFIG_ALS_DECODER)             += alsdec.o bgmc.o mpeg4audio.o
65 66
OBJS-$(CONFIG_AMRNB_DECODER)           += amrnbdec.o celp_filters.o   \
                                          celp_math.o acelp_filters.o \
67
                                          acelp_vectors.o             \
68
                                          acelp_pitch_delay.o
69 70 71 72
OBJS-$(CONFIG_AMRWB_DECODER)           += amrwbdec.o celp_filters.o   \
                                          celp_math.o acelp_filters.o \
                                          acelp_vectors.o             \
                                          acelp_pitch_delay.o lsp.o
Vladimir Voroshilov's avatar
Vladimir Voroshilov committed
73
OBJS-$(CONFIG_AMV_DECODER)             += sp5xdec.o mjpegdec.o mjpeg.o
Peter Ross's avatar
Peter Ross committed
74
OBJS-$(CONFIG_ANM_DECODER)             += anm.o
Peter Ross's avatar
Peter Ross committed
75
OBJS-$(CONFIG_ANSI_DECODER)            += ansi.o cga_data.o
Kostya Shishkov's avatar
Kostya Shishkov committed
76
OBJS-$(CONFIG_APE_DECODER)             += apedec.o
Aurelien Jacobs's avatar
Aurelien Jacobs committed
77 78
OBJS-$(CONFIG_ASS_DECODER)             += assdec.o ass.o
OBJS-$(CONFIG_ASS_ENCODER)             += assenc.o ass.o
79 80 81 82
OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV1_ENCODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV2_DECODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV2_ENCODER)            += asv1.o mpeg12data.o
83
OBJS-$(CONFIG_ATRAC1_DECODER)          += atrac1.o atrac.o
84
OBJS-$(CONFIG_ATRAC3_DECODER)          += atrac3.o atrac.o
85
OBJS-$(CONFIG_AURA_DECODER)            += cyuv.o
Kostya Shishkov's avatar
Kostya Shishkov committed
86
OBJS-$(CONFIG_AURA2_DECODER)           += aura.o
Måns Rullgård's avatar
Måns Rullgård committed
87
OBJS-$(CONFIG_AVS_DECODER)             += avs.o
88
OBJS-$(CONFIG_BETHSOFTVID_DECODER)     += bethsoftvideo.o
Sisir Koppaka's avatar
Sisir Koppaka committed
89
OBJS-$(CONFIG_BFI_DECODER)             += bfi.o
Kostya Shishkov's avatar
Kostya Shishkov committed
90
OBJS-$(CONFIG_BINK_DECODER)            += bink.o binkidct.o
Peter Ross's avatar
Peter Ross committed
91 92
OBJS-$(CONFIG_BINKAUDIO_DCT_DECODER)   += binkaudio.o wma.o
OBJS-$(CONFIG_BINKAUDIO_RDFT_DECODER)  += binkaudio.o wma.o
93
OBJS-$(CONFIG_BMP_DECODER)             += bmp.o msrledec.o
94
OBJS-$(CONFIG_BMP_ENCODER)             += bmpenc.o
95
OBJS-$(CONFIG_C93_DECODER)             += c93.o
96 97
OBJS-$(CONFIG_CAVS_DECODER)            += cavs.o cavsdec.o cavsdsp.o \
                                          mpeg12data.o mpegvideo.o
Michael Tison's avatar
Michael Tison committed
98
OBJS-$(CONFIG_CDGRAPHICS_DECODER)      += cdgraphics.o
Måns Rullgård's avatar
Måns Rullgård committed
99 100 101
OBJS-$(CONFIG_CINEPAK_DECODER)         += cinepak.o
OBJS-$(CONFIG_CLJR_DECODER)            += cljr.o
OBJS-$(CONFIG_CLJR_ENCODER)            += cljr.o
102
OBJS-$(CONFIG_COOK_DECODER)            += cook.o
103
OBJS-$(CONFIG_CSCD_DECODER)            += cscd.o
Måns Rullgård's avatar
Måns Rullgård committed
104
OBJS-$(CONFIG_CYUV_DECODER)            += cyuv.o
105
OBJS-$(CONFIG_DCA_DECODER)             += dca.o synth_filter.o dcadsp.o
Kostya Shishkov's avatar
Kostya Shishkov committed
106
OBJS-$(CONFIG_DFA_DECODER)             += dfa.o
107
OBJS-$(CONFIG_DNXHD_DECODER)           += dnxhddec.o dnxhddata.o
108 109 110 111
OBJS-$(CONFIG_DNXHD_ENCODER)           += dnxhdenc.o dnxhddata.o       \
                                          mpegvideo_enc.o motion_est.o \
                                          ratecontrol.o mpeg12data.o   \
                                          mpegvideo.o
112
OBJS-$(CONFIG_DPX_DECODER)             += dpx.o
Peter Ross's avatar
Peter Ross committed
113
OBJS-$(CONFIG_DPX_ENCODER)             += dpxenc.o
114
OBJS-$(CONFIG_DSICINAUDIO_DECODER)     += dsicinav.o
115
OBJS-$(CONFIG_DSICINVIDEO_DECODER)     += dsicinav.o
Måns Rullgård's avatar
Måns Rullgård committed
116 117
OBJS-$(CONFIG_DVBSUB_DECODER)          += dvbsubdec.o
OBJS-$(CONFIG_DVBSUB_ENCODER)          += dvbsub.o
118
OBJS-$(CONFIG_DVDSUB_DECODER)          += dvdsubdec.o
Måns Rullgård's avatar
Måns Rullgård committed
119
OBJS-$(CONFIG_DVDSUB_ENCODER)          += dvdsubenc.o
120 121
OBJS-$(CONFIG_DVVIDEO_DECODER)         += dv.o dvdata.o
OBJS-$(CONFIG_DVVIDEO_ENCODER)         += dv.o dvdata.o
Kostya Shishkov's avatar
Kostya Shishkov committed
122
OBJS-$(CONFIG_DXA_DECODER)             += dxa.o
123
OBJS-$(CONFIG_EAC3_DECODER)            += eac3dec.o eac3dec_data.o
Peter Ross's avatar
Peter Ross committed
124
OBJS-$(CONFIG_EACMV_DECODER)           += eacmv.o
125 126 127
OBJS-$(CONFIG_EAMAD_DECODER)           += eamad.o eaidct.o mpeg12.o \
                                          mpeg12data.o mpegvideo.o  \
                                          error_resilience.o
128
OBJS-$(CONFIG_EATGQ_DECODER)           += eatgq.o eaidct.o
Peter Ross's avatar
Peter Ross committed
129
OBJS-$(CONFIG_EATGV_DECODER)           += eatgv.o
130 131 132
OBJS-$(CONFIG_EATQI_DECODER)           += eatqi.o eaidct.o mpeg12.o \
                                          mpeg12data.o mpegvideo.o  \
                                          error_resilience.o
Måns Rullgård's avatar
Måns Rullgård committed
133
OBJS-$(CONFIG_EIGHTBPS_DECODER)        += 8bps.o
Jai Menon's avatar
Jai Menon committed
134 135
OBJS-$(CONFIG_EIGHTSVX_EXP_DECODER)    += 8svx.o
OBJS-$(CONFIG_EIGHTSVX_FIB_DECODER)    += 8svx.o
Eli Friedman's avatar
Eli Friedman committed
136
OBJS-$(CONFIG_ESCAPE124_DECODER)       += escape124.o
137
OBJS-$(CONFIG_FFV1_DECODER)            += ffv1.o rangecoder.o
138
OBJS-$(CONFIG_FFV1_ENCODER)            += ffv1.o rangecoder.o
139 140
OBJS-$(CONFIG_FFVHUFF_DECODER)         += huffyuv.o
OBJS-$(CONFIG_FFVHUFF_ENCODER)         += huffyuv.o
141
OBJS-$(CONFIG_FLAC_DECODER)            += flacdec.o flacdata.o flac.o
142
OBJS-$(CONFIG_FLAC_ENCODER)            += flacenc.o flacdata.o flac.o
143 144
OBJS-$(CONFIG_FLASHSV_DECODER)         += flashsv.o
OBJS-$(CONFIG_FLASHSV_ENCODER)         += flashsvenc.o
Måns Rullgård's avatar
Måns Rullgård committed
145 146
OBJS-$(CONFIG_FLIC_DECODER)            += flicvideo.o
OBJS-$(CONFIG_FOURXM_DECODER)          += 4xm.o
147
OBJS-$(CONFIG_FRAPS_DECODER)           += fraps.o
148
OBJS-$(CONFIG_FRWU_DECODER)            += frwu.o
149
OBJS-$(CONFIG_GIF_DECODER)             += gifdec.o lzw.o
Daniel Verkamp's avatar
Daniel Verkamp committed
150
OBJS-$(CONFIG_GIF_ENCODER)             += gif.o lzwenc.o
151 152
OBJS-$(CONFIG_GSM_DECODER)             += gsmdec.o gsmdec_data.o msgsmdec.o
OBJS-$(CONFIG_GSM_MS_DECODER)          += gsmdec.o gsmdec_data.o msgsmdec.o
153 154 155 156 157 158
OBJS-$(CONFIG_H261_DECODER)            += h261dec.o h261.o \
                                          mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H261_ENCODER)            += h261enc.o h261.o             \
                                          mpegvideo_enc.o motion_est.o \
                                          ratecontrol.o mpeg12data.o   \
                                          mpegvideo.o
159 160 161 162
OBJS-$(CONFIG_H263_DECODER)            += h263dec.o h263.o ituh263dec.o        \
                                          mpeg4video.o mpeg4videodec.o flvdec.o\
                                          intelh263dec.o mpegvideo.o           \
                                          error_resilience.o
163
OBJS-$(CONFIG_H263_VAAPI_HWACCEL)      += vaapi_mpeg4.o
164 165 166 167
OBJS-$(CONFIG_H263_ENCODER)            += mpegvideo_enc.o mpeg4video.o      \
                                          mpeg4videoenc.o motion_est.o      \
                                          ratecontrol.o h263.o ituh263enc.o \
                                          flvenc.o mpeg12data.o             \
168
                                          mpegvideo.o error_resilience.o
169
OBJS-$(CONFIG_H264_DECODER)            += h264.o                               \
170 171 172
                                          h264_loopfilter.o h264_direct.o      \
                                          cabac.o h264_sei.o h264_ps.o         \
                                          h264_refs.o h264_cavlc.o h264_cabac.o\
173
                                          mpegvideo.o error_resilience.o
Laurent Aimar's avatar
Laurent Aimar committed
174
OBJS-$(CONFIG_H264_DXVA2_HWACCEL)      += dxva2_h264.o
175
OBJS-$(CONFIG_H264_VAAPI_HWACCEL)      += vaapi_h264.o
Måns Rullgård's avatar
Måns Rullgård committed
176 177 178
OBJS-$(CONFIG_HUFFYUV_DECODER)         += huffyuv.o
OBJS-$(CONFIG_HUFFYUV_ENCODER)         += huffyuv.o
OBJS-$(CONFIG_IDCIN_DECODER)           += idcinvideo.o
Peter Ross's avatar
Peter Ross committed
179 180
OBJS-$(CONFIG_IFF_BYTERUN1_DECODER)    += iff.o
OBJS-$(CONFIG_IFF_ILBM_DECODER)        += iff.o
181
OBJS-$(CONFIG_IMC_DECODER)             += imc.o
Måns Rullgård's avatar
Måns Rullgård committed
182 183
OBJS-$(CONFIG_INDEO2_DECODER)          += indeo2.o
OBJS-$(CONFIG_INDEO3_DECODER)          += indeo3.o
Kostya Shishkov's avatar
Kostya Shishkov committed
184
OBJS-$(CONFIG_INDEO5_DECODER)          += indeo5.o ivi_common.o ivi_dsp.o
185
OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER)  += dpcm.o
186
OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
187 188
OBJS-$(CONFIG_JPEGLS_DECODER)          += jpeglsdec.o jpegls.o \
                                          mjpegdec.o mjpeg.o
189
OBJS-$(CONFIG_JPEGLS_ENCODER)          += jpeglsenc.o jpegls.o
Peter Ross's avatar
Peter Ross committed
190
OBJS-$(CONFIG_JV_DECODER)              += jvdec.o
191
OBJS-$(CONFIG_KGV1_DECODER)            += kgv1dec.o
Måns Rullgård's avatar
Måns Rullgård committed
192
OBJS-$(CONFIG_KMVC_DECODER)            += kmvc.o
193
OBJS-$(CONFIG_LAGARITH_DECODER)        += lagarith.o lagarithrac.o
194 195 196 197
OBJS-$(CONFIG_LJPEG_ENCODER)           += ljpegenc.o mjpegenc.o mjpeg.o \
                                          mpegvideo_enc.o motion_est.o  \
                                          ratecontrol.o mpeg12data.o    \
                                          mpegvideo.o
198
OBJS-$(CONFIG_LOCO_DECODER)            += loco.o
Måns Rullgård's avatar
Måns Rullgård committed
199 200
OBJS-$(CONFIG_MACE3_DECODER)           += mace.o
OBJS-$(CONFIG_MACE6_DECODER)           += mace.o
201 202
OBJS-$(CONFIG_MDEC_DECODER)            += mdec.o mpeg12.o mpeg12data.o \
                                          mpegvideo.o error_resilience.o
Ramiro Polla's avatar
Ramiro Polla committed
203
OBJS-$(CONFIG_MIMIC_DECODER)           += mimic.o
204
OBJS-$(CONFIG_MJPEG_DECODER)           += mjpegdec.o mjpeg.o
205 206 207 208
OBJS-$(CONFIG_MJPEG_ENCODER)           += mjpegenc.o mjpeg.o           \
                                          mpegvideo_enc.o motion_est.o \
                                          ratecontrol.o mpeg12data.o   \
                                          mpegvideo.o
209
OBJS-$(CONFIG_MJPEGB_DECODER)          += mjpegbdec.o mjpegdec.o mjpeg.o
210
OBJS-$(CONFIG_MLP_DECODER)             += mlpdec.o mlpdsp.o
211
OBJS-$(CONFIG_MMVIDEO_DECODER)         += mmvideo.o
Gregory Montoir's avatar
Gregory Montoir committed
212
OBJS-$(CONFIG_MOTIONPIXELS_DECODER)    += motionpixels.o
213 214
OBJS-$(CONFIG_MP1_DECODER)             += mpegaudiodec.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
215 216
OBJS-$(CONFIG_MP1FLOAT_DECODER)        += mpegaudiodec_float.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
217 218 219 220
OBJS-$(CONFIG_MP2_DECODER)             += mpegaudiodec.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
OBJS-$(CONFIG_MP2_ENCODER)             += mpegaudioenc.o mpegaudio.o \
                                          mpegaudiodata.o
221 222
OBJS-$(CONFIG_MP2FLOAT_DECODER)        += mpegaudiodec_float.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
223 224
OBJS-$(CONFIG_MP3ADU_DECODER)          += mpegaudiodec.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
225 226
OBJS-$(CONFIG_MP3ADUFLOAT_DECODER)     += mpegaudiodec_float.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
227
OBJS-$(CONFIG_MP3ON4_DECODER)          += mpegaudiodec.o mpegaudiodecheader.o \
228 229
                                          mpegaudio.o mpegaudiodata.o         \
                                          mpeg4audio.o
230 231 232
OBJS-$(CONFIG_MP3ON4FLOAT_DECODER)     += mpegaudiodec_float.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o         \
                                          mpeg4audio.o
233 234
OBJS-$(CONFIG_MP3_DECODER)             += mpegaudiodec.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
235 236
OBJS-$(CONFIG_MP3FLOAT_DECODER)        += mpegaudiodec_float.o mpegaudiodecheader.o \
                                          mpegaudio.o mpegaudiodata.o
237 238 239 240 241 242 243 244
OBJS-$(CONFIG_MPC7_DECODER)            += mpc7.o mpc.o mpegaudiodec.o      \
                                          mpegaudiodecheader.o mpegaudio.o \
                                          mpegaudiodata.o
OBJS-$(CONFIG_MPC8_DECODER)            += mpc8.o mpc.o mpegaudiodec.o      \
                                          mpegaudiodecheader.o mpegaudio.o \
                                          mpegaudiodata.o
OBJS-$(CONFIG_MPEGVIDEO_DECODER)       += mpeg12.o mpeg12data.o \
                                          mpegvideo.o error_resilience.o
245
OBJS-$(CONFIG_MPEG_XVMC_DECODER)       += mpegvideo_xvmc.o
246 247 248 249 250 251
OBJS-$(CONFIG_MPEG1VIDEO_DECODER)      += mpeg12.o mpeg12data.o \
                                          mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG1VIDEO_ENCODER)      += mpeg12enc.o mpegvideo_enc.o \
                                          motion_est.o ratecontrol.o  \
                                          mpeg12.o mpeg12data.o       \
                                          mpegvideo.o error_resilience.o
Laurent Aimar's avatar
Laurent Aimar committed
252
OBJS-$(CONFIG_MPEG2_DXVA2_HWACCEL)     += dxva2_mpeg2.o
253
OBJS-$(CONFIG_MPEG2_VAAPI_HWACCEL)     += vaapi_mpeg2.o
254 255 256 257 258 259
OBJS-$(CONFIG_MPEG2VIDEO_DECODER)      += mpeg12.o mpeg12data.o \
                                          mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG2VIDEO_ENCODER)      += mpeg12enc.o mpegvideo_enc.o \
                                          motion_est.o ratecontrol.o  \
                                          mpeg12.o mpeg12data.o       \
                                          mpegvideo.o error_resilience.o
260
OBJS-$(CONFIG_MPEG4_VAAPI_HWACCEL)     += vaapi_mpeg4.o
261
OBJS-$(CONFIG_MSMPEG4V1_DECODER)       += msmpeg4.o msmpeg4data.o
262 263 264 265 266 267 268 269 270 271
OBJS-$(CONFIG_MSMPEG4V1_ENCODER)       += msmpeg4.o msmpeg4data.o h263dec.o \
                                          h263.o ituh263dec.o mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V2_DECODER)       += msmpeg4.o msmpeg4data.o h263dec.o \
                                          h263.o ituh263dec.o mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V2_ENCODER)       += msmpeg4.o msmpeg4data.o h263dec.o \
                                          h263.o ituh263dec.o mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V3_DECODER)       += msmpeg4.o msmpeg4data.o h263dec.o \
                                          h263.o ituh263dec.o mpeg4videodec.o
OBJS-$(CONFIG_MSMPEG4V3_ENCODER)       += msmpeg4.o msmpeg4data.o h263dec.o \
                                          h263.o ituh263dec.o mpeg4videodec.o
272
OBJS-$(CONFIG_MSRLE_DECODER)           += msrle.o msrledec.o
Måns Rullgård's avatar
Måns Rullgård committed
273
OBJS-$(CONFIG_MSVIDEO1_DECODER)        += msvideo1.o
274
OBJS-$(CONFIG_MSZH_DECODER)            += lcldec.o
275
OBJS-$(CONFIG_MXPEG_DECODER)           += mxpegdec.o mjpegdec.o mjpeg.o
276 277
OBJS-$(CONFIG_NELLYMOSER_DECODER)      += nellymoserdec.o nellymoser.o
OBJS-$(CONFIG_NELLYMOSER_ENCODER)      += nellymoserenc.o nellymoser.o
278
OBJS-$(CONFIG_NUV_DECODER)             += nuv.o rtjpeg.o
279
OBJS-$(CONFIG_PAM_DECODER)             += pnmdec.o pnm.o
280
OBJS-$(CONFIG_PAM_ENCODER)             += pamenc.o pnm.o
281
OBJS-$(CONFIG_PBM_DECODER)             += pnmdec.o pnm.o
282
OBJS-$(CONFIG_PBM_ENCODER)             += pnmenc.o pnm.o
283
OBJS-$(CONFIG_PCX_DECODER)             += pcx.o
284
OBJS-$(CONFIG_PCX_ENCODER)             += pcxenc.o
285
OBJS-$(CONFIG_PGM_DECODER)             += pnmdec.o pnm.o
286
OBJS-$(CONFIG_PGM_ENCODER)             += pnmenc.o pnm.o
287
OBJS-$(CONFIG_PGMYUV_DECODER)          += pnmdec.o pnm.o
288
OBJS-$(CONFIG_PGMYUV_ENCODER)          += pnmenc.o pnm.o
Stephen Backway's avatar
Stephen Backway committed
289
OBJS-$(CONFIG_PGSSUB_DECODER)          += pgssubdec.o
Peter Ross's avatar
Peter Ross committed
290
OBJS-$(CONFIG_PICTOR_DECODER)          += pictordec.o cga_data.o
291 292
OBJS-$(CONFIG_PNG_DECODER)             += png.o pngdec.o
OBJS-$(CONFIG_PNG_ENCODER)             += png.o pngenc.o
293
OBJS-$(CONFIG_PPM_DECODER)             += pnmdec.o pnm.o
294
OBJS-$(CONFIG_PPM_ENCODER)             += pnmenc.o pnm.o
Ivo van Poorten's avatar
Ivo van Poorten committed
295
OBJS-$(CONFIG_PTX_DECODER)             += ptx.o
296
OBJS-$(CONFIG_QCELP_DECODER)           += qcelpdec.o celp_math.o         \
297 298
                                          celp_filters.o acelp_vectors.o \
                                          acelp_filters.o
299 300 301
OBJS-$(CONFIG_QDM2_DECODER)            += qdm2.o mpegaudiodec.o            \
                                          mpegaudiodecheader.o mpegaudio.o \
                                          mpegaudiodata.o
Måns Rullgård's avatar
Måns Rullgård committed
302 303 304
OBJS-$(CONFIG_QDRAW_DECODER)           += qdrw.o
OBJS-$(CONFIG_QPEG_DECODER)            += qpeg.o
OBJS-$(CONFIG_QTRLE_DECODER)           += qtrle.o
Alexis Ballier's avatar
Alexis Ballier committed
305
OBJS-$(CONFIG_QTRLE_ENCODER)           += qtrleenc.o
Zhou Zongyi's avatar
Zhou Zongyi committed
306
OBJS-$(CONFIG_R10K_DECODER)            += r210dec.o
307
OBJS-$(CONFIG_R210_DECODER)            += r210dec.o
308
OBJS-$(CONFIG_RA_144_DECODER)          += ra144dec.o ra144.o celp_filters.o
Francesco Lavra's avatar
Francesco Lavra committed
309
OBJS-$(CONFIG_RA_144_ENCODER)          += ra144enc.o ra144.o celp_filters.o
310
OBJS-$(CONFIG_RA_288_DECODER)          += ra288.o celp_math.o celp_filters.o
311 312
OBJS-$(CONFIG_RAWVIDEO_DECODER)        += rawdec.o
OBJS-$(CONFIG_RAWVIDEO_ENCODER)        += rawenc.o
Sascha Sommer's avatar
Sascha Sommer committed
313
OBJS-$(CONFIG_RL2_DECODER)             += rl2.o
314
OBJS-$(CONFIG_ROQ_DECODER)             += roqvideodec.o roqvideo.o
Vitor Sessak's avatar
Vitor Sessak committed
315
OBJS-$(CONFIG_ROQ_ENCODER)             += roqvideoenc.o roqvideo.o elbg.o
316
OBJS-$(CONFIG_ROQ_DPCM_DECODER)        += dpcm.o
Vitor Sessak's avatar
Vitor Sessak committed
317
OBJS-$(CONFIG_ROQ_DPCM_ENCODER)        += roqaudioenc.o
Måns Rullgård's avatar
Måns Rullgård committed
318
OBJS-$(CONFIG_RPZA_DECODER)            += rpza.o
319
OBJS-$(CONFIG_RV10_DECODER)            += rv10.o
320
OBJS-$(CONFIG_RV10_ENCODER)            += rv10enc.o
321
OBJS-$(CONFIG_RV20_DECODER)            += rv10.o
322
OBJS-$(CONFIG_RV20_ENCODER)            += rv20enc.o
323
OBJS-$(CONFIG_RV30_DECODER)            += rv30.o rv34.o rv30dsp.o        \
324
                                          mpegvideo.o error_resilience.o
325
OBJS-$(CONFIG_RV40_DECODER)            += rv40.o rv34.o rv40dsp.o        \
326
                                          mpegvideo.o error_resilience.o
327 328
OBJS-$(CONFIG_SGI_DECODER)             += sgidec.o
OBJS-$(CONFIG_SGI_ENCODER)             += sgienc.o rle.o
329
OBJS-$(CONFIG_SHORTEN_DECODER)         += shorten.o
330 331
OBJS-$(CONFIG_SIPR_DECODER)            += sipr.o acelp_pitch_delay.o \
                                          celp_math.o acelp_vectors.o \
332
                                          acelp_filters.o celp_filters.o \
Vitor Sessak's avatar
Vitor Sessak committed
333
                                          sipr16k.o
Måns Rullgård's avatar
Måns Rullgård committed
334
OBJS-$(CONFIG_SMACKAUD_DECODER)        += smacker.o
335
OBJS-$(CONFIG_SMACKER_DECODER)         += smacker.o
Måns Rullgård's avatar
Måns Rullgård committed
336
OBJS-$(CONFIG_SMC_DECODER)             += smc.o
337
OBJS-$(CONFIG_SNOW_DECODER)            += snow.o rangecoder.o
338 339
OBJS-$(CONFIG_SNOW_ENCODER)            += snow.o rangecoder.o motion_est.o \
                                          ratecontrol.o h263.o             \
340
                                          mpegvideo.o error_resilience.o   \
341 342
                                          ituh263enc.o mpegvideo_enc.o     \
                                          mpeg12data.o
343
OBJS-$(CONFIG_SOL_DPCM_DECODER)        += dpcm.o
344
OBJS-$(CONFIG_SP5X_DECODER)            += sp5xdec.o mjpegdec.o mjpeg.o
Aurelien Jacobs's avatar
Aurelien Jacobs committed
345
OBJS-$(CONFIG_SRT_DECODER)             += srtdec.o ass.o
Ivo van Poorten's avatar
Ivo van Poorten committed
346
OBJS-$(CONFIG_SUNRAST_DECODER)         += sunrast.o
347 348 349 350 351
OBJS-$(CONFIG_SVQ1_DECODER)            += svq1dec.o svq1.o h263.o \
                                          mpegvideo.o error_resilience.o
OBJS-$(CONFIG_SVQ1_ENCODER)            += svq1enc.o svq1.o    \
                                          motion_est.o h263.o \
                                          mpegvideo.o error_resilience.o \
352 353
                                          ituh263enc.o mpegvideo_enc.o   \
                                          ratecontrol.o mpeg12data.o
354
OBJS-$(CONFIG_SVQ3_DECODER)            += h264.o svq3.o                       \
355 356 357 358
                                          h264_loopfilter.o h264_direct.o     \
                                          h264_sei.o h264_ps.o h264_refs.o    \
                                          h264_cavlc.o h264_cabac.o cabac.o   \
                                          mpegvideo.o error_resilience.o      \
359
                                          svq1dec.o svq1.o h263.o
Kostya Shishkov's avatar
Kostya Shishkov committed
360
OBJS-$(CONFIG_TARGA_DECODER)           += targa.o
361
OBJS-$(CONFIG_TARGA_ENCODER)           += targaenc.o rle.o
362
OBJS-$(CONFIG_THEORA_DECODER)          += xiph.o
363
OBJS-$(CONFIG_THP_DECODER)             += mjpegdec.o mjpeg.o
364
OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
Michael Niedermayer's avatar
Michael Niedermayer committed
365
OBJS-$(CONFIG_TIFF_DECODER)            += tiff.o lzw.o faxcompr.o
366
OBJS-$(CONFIG_TIFF_ENCODER)            += tiffenc.o rle.o lzwenc.o
367
OBJS-$(CONFIG_TMV_DECODER)             += tmv.o cga_data.o
Måns Rullgård's avatar
Måns Rullgård committed
368 369 370
OBJS-$(CONFIG_TRUEMOTION1_DECODER)     += truemotion1.o
OBJS-$(CONFIG_TRUEMOTION2_DECODER)     += truemotion2.o
OBJS-$(CONFIG_TRUESPEECH_DECODER)      += truespeech.o
371
OBJS-$(CONFIG_TSCC_DECODER)            += tscc.o msrledec.o
372
OBJS-$(CONFIG_TTA_DECODER)             += tta.o
373
OBJS-$(CONFIG_TWINVQ_DECODER)          += twinvq.o celp_math.o
Ivo van Poorten's avatar
Ivo van Poorten committed
374
OBJS-$(CONFIG_TXD_DECODER)             += txd.o s3tc.o
Måns Rullgård's avatar
Måns Rullgård committed
375
OBJS-$(CONFIG_ULTI_DECODER)            += ulti.o
376 377
OBJS-$(CONFIG_V210_DECODER)            += v210dec.o
OBJS-$(CONFIG_V210_ENCODER)            += v210enc.o
378
OBJS-$(CONFIG_V210X_DECODER)           += v210x.o
379
OBJS-$(CONFIG_VB_DECODER)              += vb.o
380 381
OBJS-$(CONFIG_VC1_DECODER)             += vc1dec.o vc1.o vc1data.o vc1dsp.o \
                                          msmpeg4.o msmpeg4data.o           \
382
                                          intrax8.o intrax8dsp.o
Laurent Aimar's avatar
Laurent Aimar committed
383
OBJS-$(CONFIG_VC1_DXVA2_HWACCEL)       += dxva2_vc1.o
384
OBJS-$(CONFIG_VC1_VAAPI_HWACCEL)       += vaapi_vc1.o
Måns Rullgård's avatar
Måns Rullgård committed
385 386 387
OBJS-$(CONFIG_VCR1_DECODER)            += vcr1.o
OBJS-$(CONFIG_VCR1_ENCODER)            += vcr1.o
OBJS-$(CONFIG_VMDAUDIO_DECODER)        += vmdav.o
388
OBJS-$(CONFIG_VMDVIDEO_DECODER)        += vmdav.o
389
OBJS-$(CONFIG_VMNC_DECODER)            += vmnc.o
390
OBJS-$(CONFIG_VORBIS_DECODER)          += vorbisdec.o vorbis.o \
391
                                          vorbis_data.o xiph.o
392
OBJS-$(CONFIG_VORBIS_ENCODER)          += vorbisenc.o vorbis.o \
393
                                          vorbis_data.o
394
OBJS-$(CONFIG_VP3_DECODER)             += vp3.o vp3dsp.o
395
OBJS-$(CONFIG_VP5_DECODER)             += vp5.o vp56.o vp56data.o vp56dsp.o \
396
                                          vp3dsp.o vp56rac.o
397
OBJS-$(CONFIG_VP6_DECODER)             += vp6.o vp56.o vp56data.o vp56dsp.o \
398
                                          vp3dsp.o vp6dsp.o vp56rac.o
399
OBJS-$(CONFIG_VP8_DECODER)             += vp8.o vp8dsp.o vp56rac.o
Måns Rullgård's avatar
Måns Rullgård committed
400
OBJS-$(CONFIG_VQA_DECODER)             += vqavideo.o
401
OBJS-$(CONFIG_WAVPACK_DECODER)         += wavpack.o
402
OBJS-$(CONFIG_WMAPRO_DECODER)          += wmaprodec.o wma.o
403 404 405 406
OBJS-$(CONFIG_WMAV1_DECODER)           += wmadec.o wma.o aactab.o
OBJS-$(CONFIG_WMAV1_ENCODER)           += wmaenc.o wma.o aactab.o
OBJS-$(CONFIG_WMAV2_DECODER)           += wmadec.o wma.o aactab.o
OBJS-$(CONFIG_WMAV2_ENCODER)           += wmaenc.o wma.o aactab.o
Ronald S. Bultje's avatar
Ronald S. Bultje committed
407 408
OBJS-$(CONFIG_WMAVOICE_DECODER)        += wmavoice.o \
                                          celp_math.o celp_filters.o \
409
                                          acelp_vectors.o acelp_filters.o
410
OBJS-$(CONFIG_WMV1_DECODER)            += msmpeg4.o msmpeg4data.o
411 412
OBJS-$(CONFIG_WMV2_DECODER)            += wmv2dec.o wmv2.o        \
                                          msmpeg4.o msmpeg4data.o \
413
                                          intrax8.o intrax8dsp.o
414
OBJS-$(CONFIG_WMV2_ENCODER)            += wmv2enc.o wmv2.o \
415 416
                                          msmpeg4.o msmpeg4data.o \
                                          mpeg4videodec.o ituh263dec.o h263dec.o
Måns Rullgård's avatar
Måns Rullgård committed
417 418
OBJS-$(CONFIG_WNV1_DECODER)            += wnv1.o
OBJS-$(CONFIG_WS_SND1_DECODER)         += ws-snd1.o
419
OBJS-$(CONFIG_XAN_DPCM_DECODER)        += dpcm.o
Måns Rullgård's avatar
Måns Rullgård committed
420
OBJS-$(CONFIG_XAN_WC3_DECODER)         += xan.o
Kostya Shishkov's avatar
Kostya Shishkov committed
421
OBJS-$(CONFIG_XAN_WC4_DECODER)         += xxan.o
Måns Rullgård's avatar
Måns Rullgård committed
422
OBJS-$(CONFIG_XL_DECODER)              += xl.o
423
OBJS-$(CONFIG_XSUB_DECODER)            += xsubdec.o
424
OBJS-$(CONFIG_XSUB_ENCODER)            += xsubenc.o
425
OBJS-$(CONFIG_YOP_DECODER)             += yop.o
426 427
OBJS-$(CONFIG_ZLIB_DECODER)            += lcldec.o
OBJS-$(CONFIG_ZLIB_ENCODER)            += lclenc.o
Måns Rullgård's avatar
Måns Rullgård committed
428
OBJS-$(CONFIG_ZMBV_DECODER)            += zmbv.o
Kostya Shishkov's avatar
Kostya Shishkov committed
429
OBJS-$(CONFIG_ZMBV_ENCODER)            += zmbvenc.o
Måns Rullgård's avatar
Måns Rullgård committed
430

431
# (AD)PCM decoders/encoders
Diego Biurrun's avatar
Diego Biurrun committed
432 433
OBJS-$(CONFIG_PCM_ALAW_DECODER)           += pcm.o
OBJS-$(CONFIG_PCM_ALAW_ENCODER)           += pcm.o
434
OBJS-$(CONFIG_PCM_BLURAY_DECODER)         += pcm-mpeg.o
Diego Biurrun's avatar
Diego Biurrun committed
435 436
OBJS-$(CONFIG_PCM_DVD_DECODER)            += pcm.o
OBJS-$(CONFIG_PCM_DVD_ENCODER)            += pcm.o
Aurelien Jacobs's avatar
Aurelien Jacobs committed
437 438 439 440 441 442 443 444
OBJS-$(CONFIG_PCM_F32BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_F32BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_F32LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_F32LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_F64BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_F64BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_F64LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_F64LE_ENCODER)          += pcm.o
445
OBJS-$(CONFIG_PCM_LXF_DECODER)            += pcm.o
Diego Biurrun's avatar
Diego Biurrun committed
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
OBJS-$(CONFIG_PCM_MULAW_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_MULAW_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S8_DECODER)             += pcm.o
OBJS-$(CONFIG_PCM_S8_ENCODER)             += pcm.o
OBJS-$(CONFIG_PCM_S16BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S16BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S16LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S16LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S16LE_PLANAR_DECODER)   += pcm.o
OBJS-$(CONFIG_PCM_S24BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S24BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S24DAUD_DECODER)        += pcm.o
OBJS-$(CONFIG_PCM_S24DAUD_ENCODER)        += pcm.o
OBJS-$(CONFIG_PCM_S24LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S24LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S32BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S32BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_S32LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S32LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U8_DECODER)             += pcm.o
OBJS-$(CONFIG_PCM_U8_ENCODER)             += pcm.o
OBJS-$(CONFIG_PCM_U16BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U16BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U16LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U16LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U24BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U24BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U24LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U24LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U32BE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U32BE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U32LE_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U32LE_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_ZORK_DECODER)           += pcm.o
OBJS-$(CONFIG_PCM_ZORK_ENCODER)           += pcm.o
481

Diego Biurrun's avatar
Diego Biurrun committed
482 483 484 485 486 487 488 489 490 491
OBJS-$(CONFIG_ADPCM_4XM_DECODER)          += adpcm.o
OBJS-$(CONFIG_ADPCM_ADX_DECODER)          += adxdec.o
OBJS-$(CONFIG_ADPCM_ADX_ENCODER)          += adxenc.o
OBJS-$(CONFIG_ADPCM_CT_DECODER)           += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_DECODER)           += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_MAXIS_XA_DECODER)  += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_R1_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_R2_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_R3_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_XAS_DECODER)       += adpcm.o
492
OBJS-$(CONFIG_ADPCM_G722_DECODER)         += g722.o
Martin Storsjö's avatar
Martin Storsjö committed
493
OBJS-$(CONFIG_ADPCM_G722_ENCODER)         += g722.o
Diego Biurrun's avatar
Diego Biurrun committed
494 495 496 497 498 499 500
OBJS-$(CONFIG_ADPCM_G726_DECODER)         += g726.o
OBJS-$(CONFIG_ADPCM_G726_ENCODER)         += g726.o
OBJS-$(CONFIG_ADPCM_IMA_AMV_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_EA_EACS_DECODER)  += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_EA_SEAD_DECODER)  += adpcm.o
Aurelien Jacobs's avatar
Aurelien Jacobs committed
501
OBJS-$(CONFIG_ADPCM_IMA_ISS_DECODER)      += adpcm.o
Diego Biurrun's avatar
Diego Biurrun committed
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518
OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_MS_DECODER)           += adpcm.o
OBJS-$(CONFIG_ADPCM_MS_ENCODER)           += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER)      += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_DECODER)          += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_ENCODER)          += adpcm.o
OBJS-$(CONFIG_ADPCM_THP_DECODER)          += adpcm.o
OBJS-$(CONFIG_ADPCM_XA_DECODER)           += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)       += adpcm.o
519

Baptiste Coudurier's avatar
Baptiste Coudurier committed
520
# libavformat dependencies
521
OBJS-$(CONFIG_ADTS_MUXER)              += mpeg4audio.o
522
OBJS-$(CONFIG_CAF_DEMUXER)             += mpeg4audio.o mpegaudiodata.o
523 524
OBJS-$(CONFIG_DV_DEMUXER)              += dvdata.o
OBJS-$(CONFIG_DV_MUXER)                += dvdata.o
525 526
OBJS-$(CONFIG_FLAC_DEMUXER)            += flacdec.o flacdata.o flac.o
OBJS-$(CONFIG_FLAC_MUXER)              += flacdec.o flacdata.o flac.o
527
OBJS-$(CONFIG_FLV_DEMUXER)             += mpeg4audio.o
528
OBJS-$(CONFIG_GXF_DEMUXER)             += mpeg12data.o
Daniel Verkamp's avatar
Daniel Verkamp committed
529
OBJS-$(CONFIG_IFF_DEMUXER)             += iff.o
530 531
OBJS-$(CONFIG_MATROSKA_AUDIO_MUXER)    += xiph.o mpeg4audio.o \
                                          flacdec.o flacdata.o flac.o
532
OBJS-$(CONFIG_MATROSKA_DEMUXER)        += mpeg4audio.o mpegaudiodata.o
533
OBJS-$(CONFIG_MATROSKA_MUXER)          += xiph.o mpeg4audio.o \
534 535
                                          flacdec.o flacdata.o flac.o \
                                          mpegaudiodata.o
Baptiste Coudurier's avatar
Baptiste Coudurier committed
536
OBJS-$(CONFIG_MOV_DEMUXER)             += mpeg4audio.o mpegaudiodata.o
537
OBJS-$(CONFIG_MOV_MUXER)               += mpeg4audio.o mpegaudiodata.o
538
OBJS-$(CONFIG_MPEGTS_MUXER)            += mpegvideo.o mpeg4audio.o
539
OBJS-$(CONFIG_MPEGTS_DEMUXER)          += mpeg4audio.o mpegaudiodata.o
540
OBJS-$(CONFIG_NUT_MUXER)               += mpegaudiodata.o
David Conrad's avatar
David Conrad committed
541 542
OBJS-$(CONFIG_OGG_DEMUXER)             += flacdec.o flacdata.o flac.o \
                                          dirac.o mpeg12data.o
543
OBJS-$(CONFIG_OGG_MUXER)               += xiph.o flacdec.o flacdata.o flac.o
544
OBJS-$(CONFIG_RTP_MUXER)               += mpegvideo.o xiph.o
545
OBJS-$(CONFIG_SPDIF_DEMUXER)           += aacadtsdec.o mpeg4audio.o
James Zern's avatar
James Zern committed
546
OBJS-$(CONFIG_WEBM_MUXER)              += xiph.o mpeg4audio.o \
547 548
                                          flacdec.o flacdata.o flac.o \
                                          mpegaudiodata.o
Baptiste Coudurier's avatar
Baptiste Coudurier committed
549

550
# external codec libraries
551 552
OBJS-$(CONFIG_LIBDIRAC_DECODER)           += libdiracdec.o
OBJS-$(CONFIG_LIBDIRAC_ENCODER)           += libdiracenc.o libdirac_libschro.o
553 554 555 556 557 558 559 560
OBJS-$(CONFIG_LIBFAAC_ENCODER)            += libfaac.o
OBJS-$(CONFIG_LIBGSM_DECODER)             += libgsm.o
OBJS-$(CONFIG_LIBGSM_ENCODER)             += libgsm.o
OBJS-$(CONFIG_LIBGSM_MS_DECODER)          += libgsm.o
OBJS-$(CONFIG_LIBGSM_MS_ENCODER)          += libgsm.o
OBJS-$(CONFIG_LIBMP3LAME_ENCODER)         += libmp3lame.o
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_DECODER)  += libopencore-amr.o
OBJS-$(CONFIG_LIBOPENCORE_AMRNB_ENCODER)  += libopencore-amr.o
561
OBJS-$(CONFIG_LIBOPENCORE_AMRWB_DECODER)  += libopencore-amr.o
562
OBJS-$(CONFIG_LIBOPENJPEG_DECODER)        += libopenjpeg.o
563 564 565 566 567 568
OBJS-$(CONFIG_LIBSCHROEDINGER_DECODER)    += libschroedingerdec.o \
                                             libschroedinger.o    \
                                             libdirac_libschro.o
OBJS-$(CONFIG_LIBSCHROEDINGER_ENCODER)    += libschroedingerenc.o \
                                             libschroedinger.o    \
                                             libdirac_libschro.o
569 570
OBJS-$(CONFIG_LIBSPEEX_DECODER)           += libspeexdec.o
OBJS-$(CONFIG_LIBTHEORA_ENCODER)          += libtheoraenc.o
571
OBJS-$(CONFIG_LIBVO_AACENC_ENCODER)       += libvo-aacenc.o mpeg4audio.o
572
OBJS-$(CONFIG_LIBVO_AMRWBENC_ENCODER)     += libvo-amrwbenc.o
573
OBJS-$(CONFIG_LIBVORBIS_ENCODER)          += libvorbis.o vorbis_data.o
James Zern's avatar
James Zern committed
574
OBJS-$(CONFIG_LIBVPX_DECODER)             += libvpxdec.o
James Zern's avatar
James Zern committed
575
OBJS-$(CONFIG_LIBVPX_ENCODER)             += libvpxenc.o
576
OBJS-$(CONFIG_LIBX264_ENCODER)            += libx264.o
577
OBJS-$(CONFIG_LIBXAVS_ENCODER)            += libxavs.o
578
OBJS-$(CONFIG_LIBXVID)                    += libxvidff.o libxvid_rc.o
579

580
# parsers
581
OBJS-$(CONFIG_AAC_PARSER)              += aac_parser.o aac_ac3_parser.o \
582
                                          aacadtsdec.o mpeg4audio.o
583 584
OBJS-$(CONFIG_AC3_PARSER)              += ac3_parser.o ac3tab.o \
                                          aac_ac3_parser.o
585
OBJS-$(CONFIG_CAVSVIDEO_PARSER)        += cavs_parser.o
586
OBJS-$(CONFIG_DCA_PARSER)              += dca_parser.o
587
OBJS-$(CONFIG_DIRAC_PARSER)            += dirac_parser.o
Baptiste Coudurier's avatar
Baptiste Coudurier committed
588
OBJS-$(CONFIG_DNXHD_PARSER)            += dnxhd_parser.o
589
OBJS-$(CONFIG_DVBSUB_PARSER)           += dvbsub_parser.o
590
OBJS-$(CONFIG_DVDSUB_PARSER)           += dvdsub_parser.o
Michael Chinen's avatar
Michael Chinen committed
591
OBJS-$(CONFIG_FLAC_PARSER)             += flac_parser.o flacdata.o flac.o
592
OBJS-$(CONFIG_H261_PARSER)             += h261_parser.o
593
OBJS-$(CONFIG_H263_PARSER)             += h263_parser.o
594 595
OBJS-$(CONFIG_H264_PARSER)             += h264_parser.o h264.o            \
                                          cabac.o                         \
596 597 598
                                          h264_refs.o h264_sei.o h264_direct.o \
                                          h264_loopfilter.o h264_cabac.o \
                                          h264_cavlc.o h264_ps.o \
599
                                          mpegvideo.o error_resilience.o
600
OBJS-$(CONFIG_AAC_LATM_PARSER)         += latm_parser.o
601
OBJS-$(CONFIG_MJPEG_PARSER)            += mjpeg_parser.o
602
OBJS-$(CONFIG_MLP_PARSER)              += mlp_parser.o mlp.o
603
OBJS-$(CONFIG_MPEG4VIDEO_PARSER)       += mpeg4video_parser.o h263.o \
604 605 606
                                          mpegvideo.o error_resilience.o \
                                          mpeg4videodec.o mpeg4video.o \
                                          ituh263dec.o h263dec.o
607 608 609 610 611
OBJS-$(CONFIG_MPEGAUDIO_PARSER)        += mpegaudio_parser.o \
                                          mpegaudiodecheader.o mpegaudiodata.o
OBJS-$(CONFIG_MPEGVIDEO_PARSER)        += mpegvideo_parser.o    \
                                          mpeg12.o mpeg12data.o \
                                          mpegvideo.o error_resilience.o
612
OBJS-$(CONFIG_PNM_PARSER)              += pnm_parser.o pnm.o
613
OBJS-$(CONFIG_VC1_PARSER)              += vc1_parser.o vc1.o vc1data.o \
614 615
                                          msmpeg4.o msmpeg4data.o mpeg4video.o \
                                          h263.o mpegvideo.o error_resilience.o
616
OBJS-$(CONFIG_VP3_PARSER)              += vp3_parser.o
David Conrad's avatar
David Conrad committed
617
OBJS-$(CONFIG_VP8_PARSER)              += vp8_parser.o
618

619
# bitstream filters
620 621
OBJS-$(CONFIG_AAC_ADTSTOASC_BSF)          += aac_adtstoasc_bsf.o aacadtsdec.o \
                                             mpeg4audio.o
622
OBJS-$(CONFIG_CHOMP_BSF)                  += chomp_bsf.o
Diego Biurrun's avatar
Diego Biurrun committed
623 624 625
OBJS-$(CONFIG_DUMP_EXTRADATA_BSF)         += dump_extradata_bsf.o
OBJS-$(CONFIG_H264_MP4TOANNEXB_BSF)       += h264_mp4toannexb_bsf.o
OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF)        += imx_dump_header_bsf.o
626
OBJS-$(CONFIG_MJPEG2JPEG_BSF)             += mjpeg2jpeg_bsf.o mjpeg.o
Diego Biurrun's avatar
Diego Biurrun committed
627 628 629
OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF)     += mjpega_dump_header_bsf.o
OBJS-$(CONFIG_MOV2TEXTSUB_BSF)            += movsub_bsf.o
OBJS-$(CONFIG_MP3_HEADER_COMPRESS_BSF)    += mp3_header_compress_bsf.o
630 631
OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF)  += mp3_header_decompress_bsf.o \
                                             mpegaudiodata.o
Diego Biurrun's avatar
Diego Biurrun committed
632 633 634
OBJS-$(CONFIG_NOISE_BSF)                  += noise_bsf.o
OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF)       += remove_extradata_bsf.o
OBJS-$(CONFIG_TEXT2MOVSUB_BSF)            += movsub_bsf.o
635

636
# thread libraries
Måns Rullgård's avatar
Måns Rullgård committed
637 638 639
OBJS-$(HAVE_PTHREADS)                  += pthread.o
OBJS-$(HAVE_W32THREADS)                += w32thread.o

640 641
OBJS-$(CONFIG_MLIB)                    += mlib/dsputil_mlib.o           \

642 643 644 645 646 647
# inverse.o contains the ff_inverse table definition, which is used by
# the FASTDIV macro (from libavutil); since referencing the external
# table has a negative effect on performance, copy it in libavcodec as
# well.
OBJS-$(!CONFIG_SMALL)                  += inverse.o

648
-include $(SUBDIR)$(ARCH)/Makefile
649

650 651
SKIPHEADERS                             = %_tablegen.h
SKIPHEADERS-$(CONFIG_DXVA2)            += dxva2.h dxva2_internal.h
652 653 654 655 656
SKIPHEADERS-$(CONFIG_LIBDIRAC)         += libdirac.h
SKIPHEADERS-$(CONFIG_LIBSCHROEDINGER)  += libschroedinger.h
SKIPHEADERS-$(CONFIG_VAAPI)            += vaapi_internal.h
SKIPHEADERS-$(CONFIG_VDPAU)            += vdpau.h
SKIPHEADERS-$(CONFIG_XVMC)             += xvmc.h
657
SKIPHEADERS                            += mpegaudio3.h
658

659
EXAMPLES = api
660

661
TESTPROGS = cabac dct eval fft fft-fixed h264 iirfilter rangecoder snow
662
TESTPROGS-$(HAVE_MMX) += motion
663
TESTOBJS = dctref.o
664

665 666
HOSTPROGS = costablegen

667
DIRS = alpha arm bfin mlib ppc ps2 sh4 sparc x86
668

669
CLEANFILES = sin_tables.c cos_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
670

Måns Rullgård's avatar
Måns Rullgård committed
671 672
include $(SUBDIR)../subdir.mak

673
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o
674 675

$(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
676
	$(M)./$< > $@
677

Mans Rullgard's avatar
Mans Rullgard committed
678 679 680
$(SUBDIR)cos_fixed_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
	$(M)./$< cos fixed > $@

681
$(SUBDIR)sin_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
682
	$(M)./$< sin > $@
683

Måns Rullgård's avatar
Måns Rullgård committed
684
ifdef CONFIG_MPEGAUDIO_HP
685
$(SUBDIR)mpegaudio_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DFRAC_BITS=23
686
$(SUBDIR)mpegaudio_tablegen.ho: CPPFLAGS += -DFRAC_BITS=23
687 688
else
$(SUBDIR)mpegaudio_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DFRAC_BITS=15
689
$(SUBDIR)mpegaudio_tablegen.ho: CPPFLAGS += -DFRAC_BITS=15
690
endif
Måns Rullgård's avatar
Måns Rullgård committed
691

692 693 694 695 696 697
ifdef CONFIG_SMALL
$(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=1
else
$(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0
endif

698 699
$(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)%_tablegen.h $(SUBDIR)tableprint.c
	$(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(filter %.c,$^) $(HOSTLIBS)
700

701
GEN_HEADERS = cbrt_tables.h aacps_tables.h aac_tables.h dv_tables.h     \
702
              sinewin_tables.h mpegaudio_tables.h motionpixels_tables.h \
703 704 705 706
              pcm_tables.h qdm2_tables.h
GEN_HEADERS := $(addprefix $(SUBDIR), $(GEN_HEADERS))

$(GEN_HEADERS): $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF)
707
	$(M)./$< > $@
708 709

ifdef CONFIG_HARDCODED_TABLES
710
$(SUBDIR)aacdec.o: $(SUBDIR)cbrt_tables.h
711
$(SUBDIR)aacps.o: $(SUBDIR)aacps_tables.h
712
$(SUBDIR)aactab.o: $(SUBDIR)aac_tables.h
713
$(SUBDIR)dv.o: $(SUBDIR)dv_tables.h
714
$(SUBDIR)sinewin.o: $(SUBDIR)sinewin_tables.h
715
$(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h
716
$(SUBDIR)mpegaudiodec_float.o: $(SUBDIR)mpegaudio_tables.h
717
$(SUBDIR)motionpixels.o: $(SUBDIR)motionpixels_tables.h
718
$(SUBDIR)pcm.o: $(SUBDIR)pcm_tables.h
719
$(SUBDIR)qdm2.o: $(SUBDIR)qdm2_tables.h
720
endif