]> granicus.if.org Git - libvpx/blob - vpx_dsp/vpx_dsp.mk
Merge "vp9: SVC: Skip NEWMV for small blocks for (0, 0) base_mv."
[libvpx] / vpx_dsp / vpx_dsp.mk
1 ##
2 ## Copyright (c) 2015 The WebM project authors. All Rights Reserved.
3 ##
4 ##  Use of this source code is governed by a BSD-style license
5 ##  that can be found in the LICENSE file in the root of the source
6 ##  tree. An additional intellectual property rights grant can be found
7 ##  in the file PATENTS.  All contributing project authors may
8 ##  be found in the AUTHORS file in the root of the source tree.
9 ##
10
11 DSP_SRCS-yes += vpx_dsp.mk
12 DSP_SRCS-yes += vpx_dsp_common.h
13
14 DSP_SRCS-$(HAVE_MSA)    += mips/macros_msa.h
15
16 DSP_SRCS-$(HAVE_AVX2)   += x86/bitdepth_conversion_avx2.h
17 DSP_SRCS-$(HAVE_SSE2)   += x86/bitdepth_conversion_sse2.h
18 # This file is included in libs.mk. Including it here would cause it to be
19 # compiled into an object. Even as an empty file, this would create an
20 # executable section on the stack.
21 #DSP_SRCS-$(HAVE_SSE2)   += x86/bitdepth_conversion_sse2$(ASM)
22
23 # bit reader
24 DSP_SRCS-yes += prob.h
25 DSP_SRCS-yes += prob.c
26
27 ifeq ($(CONFIG_ENCODERS),yes)
28 DSP_SRCS-yes += bitwriter.h
29 DSP_SRCS-yes += bitwriter.c
30 DSP_SRCS-yes += bitwriter_buffer.c
31 DSP_SRCS-yes += bitwriter_buffer.h
32 DSP_SRCS-yes += psnr.c
33 DSP_SRCS-yes += psnr.h
34 DSP_SRCS-$(CONFIG_INTERNAL_STATS) += ssim.c
35 DSP_SRCS-$(CONFIG_INTERNAL_STATS) += ssim.h
36 DSP_SRCS-$(CONFIG_INTERNAL_STATS) += psnrhvs.c
37 DSP_SRCS-$(CONFIG_INTERNAL_STATS) += fastssim.c
38 endif
39
40 ifeq ($(CONFIG_DECODERS),yes)
41 DSP_SRCS-yes += bitreader.h
42 DSP_SRCS-yes += bitreader.c
43 DSP_SRCS-yes += bitreader_buffer.c
44 DSP_SRCS-yes += bitreader_buffer.h
45 endif
46
47 # intra predictions
48 DSP_SRCS-yes += intrapred.c
49
50 DSP_SRCS-$(HAVE_SSE) += x86/intrapred_sse2.asm
51 DSP_SRCS-$(HAVE_SSE2) += x86/intrapred_sse2.asm
52 DSP_SRCS-$(HAVE_SSSE3) += x86/intrapred_ssse3.asm
53 DSP_SRCS-$(HAVE_SSSE3) += x86/vpx_subpixel_8t_ssse3.asm
54 DSP_SRCS-$(HAVE_VSX) += ppc/intrapred_vsx.c
55
56 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
57 DSP_SRCS-$(HAVE_SSE)  += x86/highbd_intrapred_sse2.asm
58 DSP_SRCS-$(HAVE_SSE2) += x86/highbd_intrapred_sse2.asm
59 DSP_SRCS-$(HAVE_NEON) += arm/highbd_intrapred_neon.c
60 endif  # CONFIG_VP9_HIGHBITDEPTH
61
62 ifneq ($(filter yes,$(CONFIG_POSTPROC) $(CONFIG_VP9_POSTPROC)),)
63 DSP_SRCS-yes += add_noise.c
64 DSP_SRCS-yes += deblock.c
65 DSP_SRCS-yes += postproc.h
66 DSP_SRCS-$(HAVE_MSA) += mips/add_noise_msa.c
67 DSP_SRCS-$(HAVE_MSA) += mips/deblock_msa.c
68 DSP_SRCS-$(HAVE_NEON) += arm/deblock_neon.c
69 DSP_SRCS-$(HAVE_SSE2) += x86/add_noise_sse2.asm
70 DSP_SRCS-$(HAVE_SSE2) += x86/deblock_sse2.asm
71 endif # CONFIG_POSTPROC
72
73 DSP_SRCS-$(HAVE_NEON_ASM) += arm/intrapred_neon_asm$(ASM)
74 DSP_SRCS-$(HAVE_NEON) += arm/intrapred_neon.c
75 DSP_SRCS-$(HAVE_MSA) += mips/intrapred_msa.c
76 DSP_SRCS-$(HAVE_DSPR2)  += mips/intrapred4_dspr2.c
77 DSP_SRCS-$(HAVE_DSPR2)  += mips/intrapred8_dspr2.c
78 DSP_SRCS-$(HAVE_DSPR2)  += mips/intrapred16_dspr2.c
79
80 DSP_SRCS-$(HAVE_DSPR2)  += mips/common_dspr2.h
81 DSP_SRCS-$(HAVE_DSPR2)  += mips/common_dspr2.c
82
83 # interpolation filters
84 DSP_SRCS-yes += vpx_convolve.c
85 DSP_SRCS-yes += vpx_convolve.h
86 DSP_SRCS-yes += vpx_filter.h
87
88 DSP_SRCS-$(ARCH_X86)$(ARCH_X86_64) += x86/convolve.h
89 DSP_SRCS-$(ARCH_X86)$(ARCH_X86_64) += x86/vpx_asm_stubs.c
90 DSP_SRCS-$(HAVE_SSE2)  += x86/vpx_subpixel_8t_sse2.asm
91 DSP_SRCS-$(HAVE_SSE2)  += x86/vpx_subpixel_bilinear_sse2.asm
92 DSP_SRCS-$(HAVE_SSSE3) += x86/vpx_subpixel_8t_ssse3.asm
93 DSP_SRCS-$(HAVE_SSSE3) += x86/vpx_subpixel_bilinear_ssse3.asm
94 DSP_SRCS-$(HAVE_AVX2)  += x86/vpx_subpixel_8t_intrin_avx2.c
95 DSP_SRCS-$(HAVE_SSSE3) += x86/vpx_subpixel_8t_intrin_ssse3.c
96 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
97 DSP_SRCS-$(HAVE_SSE2)  += x86/vpx_high_subpixel_8t_sse2.asm
98 DSP_SRCS-$(HAVE_SSE2)  += x86/vpx_high_subpixel_bilinear_sse2.asm
99 DSP_SRCS-$(HAVE_AVX2)  += x86/highbd_convolve_avx2.c
100 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_vpx_convolve_copy_neon.c
101 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_vpx_convolve_avg_neon.c
102 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_vpx_convolve8_neon.c
103 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_vpx_convolve_neon.c
104 endif
105
106 DSP_SRCS-$(HAVE_SSE2)  += x86/vpx_convolve_copy_sse2.asm
107
108 ifeq ($(HAVE_NEON_ASM),yes)
109 DSP_SRCS-yes += arm/vpx_convolve_copy_neon_asm$(ASM)
110 DSP_SRCS-yes += arm/vpx_convolve8_avg_neon_asm$(ASM)
111 DSP_SRCS-yes += arm/vpx_convolve8_neon_asm$(ASM)
112 DSP_SRCS-yes += arm/vpx_convolve_avg_neon_asm$(ASM)
113 DSP_SRCS-yes += arm/vpx_convolve_neon.c
114 else
115 ifeq ($(HAVE_NEON),yes)
116 DSP_SRCS-yes += arm/vpx_convolve_copy_neon.c
117 DSP_SRCS-yes += arm/vpx_convolve8_neon.c
118 DSP_SRCS-yes += arm/vpx_convolve_avg_neon.c
119 DSP_SRCS-yes += arm/vpx_convolve_neon.c
120 endif  # HAVE_NEON
121 endif  # HAVE_NEON_ASM
122
123 # common (msa)
124 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_avg_horiz_msa.c
125 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_avg_msa.c
126 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_avg_vert_msa.c
127 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_horiz_msa.c
128 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_msa.c
129 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve8_vert_msa.c
130 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve_avg_msa.c
131 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve_copy_msa.c
132 DSP_SRCS-$(HAVE_MSA) += mips/vpx_convolve_msa.h
133
134 # common (dspr2)
135 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve_common_dspr2.h
136 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve2_avg_dspr2.c
137 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve2_avg_horiz_dspr2.c
138 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve2_dspr2.c
139 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve2_horiz_dspr2.c
140 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve2_vert_dspr2.c
141 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve8_avg_dspr2.c
142 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve8_avg_horiz_dspr2.c
143 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve8_dspr2.c
144 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve8_horiz_dspr2.c
145 DSP_SRCS-$(HAVE_DSPR2)  += mips/convolve8_vert_dspr2.c
146
147 DSP_SRCS-$(HAVE_VSX)  += ppc/vpx_convolve_vsx.c
148
149 # loop filters
150 DSP_SRCS-yes += loopfilter.c
151
152 DSP_SRCS-$(ARCH_X86)$(ARCH_X86_64)   += x86/loopfilter_sse2.c
153 DSP_SRCS-$(HAVE_AVX2)                += x86/loopfilter_avx2.c
154
155 ifeq ($(HAVE_NEON_ASM),yes)
156 DSP_SRCS-yes  += arm/loopfilter_16_neon$(ASM)
157 DSP_SRCS-yes  += arm/loopfilter_8_neon$(ASM)
158 DSP_SRCS-yes  += arm/loopfilter_4_neon$(ASM)
159 else
160 DSP_SRCS-$(HAVE_NEON)   += arm/loopfilter_neon.c
161 endif  # HAVE_NEON_ASM
162
163 DSP_SRCS-$(HAVE_MSA)    += mips/loopfilter_msa.h
164 DSP_SRCS-$(HAVE_MSA)    += mips/loopfilter_16_msa.c
165 DSP_SRCS-$(HAVE_MSA)    += mips/loopfilter_8_msa.c
166 DSP_SRCS-$(HAVE_MSA)    += mips/loopfilter_4_msa.c
167 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_filters_dspr2.h
168 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_filters_dspr2.c
169 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_macros_dspr2.h
170 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_masks_dspr2.h
171 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_mb_dspr2.c
172 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_mb_horiz_dspr2.c
173 DSP_SRCS-$(HAVE_DSPR2)  += mips/loopfilter_mb_vert_dspr2.c
174
175 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
176 DSP_SRCS-$(HAVE_NEON)   += arm/highbd_loopfilter_neon.c
177 DSP_SRCS-$(HAVE_SSE2)   += x86/highbd_loopfilter_sse2.c
178 endif  # CONFIG_VP9_HIGHBITDEPTH
179
180 DSP_SRCS-yes            += txfm_common.h
181 DSP_SRCS-$(HAVE_SSE2)   += x86/txfm_common_sse2.h
182 DSP_SRCS-$(HAVE_MSA)    += mips/txfm_macros_msa.h
183 # forward transform
184 ifeq ($(CONFIG_VP9_ENCODER),yes)
185 DSP_SRCS-yes            += fwd_txfm.c
186 DSP_SRCS-yes            += fwd_txfm.h
187 DSP_SRCS-$(HAVE_SSE2)   += x86/fwd_txfm_sse2.h
188 DSP_SRCS-$(HAVE_SSE2)   += x86/fwd_txfm_sse2.c
189 DSP_SRCS-$(HAVE_SSE2)   += x86/fwd_txfm_impl_sse2.h
190 DSP_SRCS-$(HAVE_SSE2)   += x86/fwd_dct32x32_impl_sse2.h
191 ifeq ($(ARCH_X86_64),yes)
192 DSP_SRCS-$(HAVE_SSSE3)  += x86/fwd_txfm_ssse3_x86_64.asm
193 endif
194 DSP_SRCS-$(HAVE_AVX2)   += x86/fwd_txfm_avx2.c
195 DSP_SRCS-$(HAVE_AVX2)   += x86/fwd_dct32x32_impl_avx2.h
196 DSP_SRCS-$(HAVE_NEON)   += arm/fdct_neon.c
197 DSP_SRCS-$(HAVE_NEON)   += arm/fdct16x16_neon.c
198 DSP_SRCS-$(HAVE_NEON)   += arm/fdct32x32_neon.c
199 DSP_SRCS-$(HAVE_NEON)   += arm/fdct_partial_neon.c
200 DSP_SRCS-$(HAVE_NEON)   += arm/fwd_txfm_neon.c
201 DSP_SRCS-$(HAVE_MSA)    += mips/fwd_txfm_msa.h
202 DSP_SRCS-$(HAVE_MSA)    += mips/fwd_txfm_msa.c
203 DSP_SRCS-$(HAVE_MSA)    += mips/fwd_dct32x32_msa.c
204 endif  # CONFIG_VP9_ENCODER
205
206 # inverse transform
207 ifeq ($(CONFIG_VP9),yes)
208 DSP_SRCS-yes            += inv_txfm.h
209 DSP_SRCS-yes            += inv_txfm.c
210 DSP_SRCS-$(HAVE_SSE2)   += x86/inv_txfm_sse2.h
211 DSP_SRCS-$(HAVE_SSE2)   += x86/inv_txfm_sse2.c
212 DSP_SRCS-$(HAVE_SSE2)   += x86/inv_wht_sse2.asm
213 DSP_SRCS-$(HAVE_SSSE3)  += x86/inv_txfm_ssse3.h
214 DSP_SRCS-$(HAVE_SSSE3)  += x86/inv_txfm_ssse3.c
215
216 DSP_SRCS-$(HAVE_NEON_ASM) += arm/save_reg_neon$(ASM)
217
218 DSP_SRCS-$(HAVE_VSX) += ppc/inv_txfm_vsx.c
219
220 ifneq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
221 DSP_SRCS-$(HAVE_MSA)   += mips/inv_txfm_msa.h
222 DSP_SRCS-$(HAVE_MSA)   += mips/idct4x4_msa.c
223 DSP_SRCS-$(HAVE_MSA)   += mips/idct8x8_msa.c
224 DSP_SRCS-$(HAVE_MSA)   += mips/idct16x16_msa.c
225 DSP_SRCS-$(HAVE_MSA)   += mips/idct32x32_msa.c
226
227 DSP_SRCS-$(HAVE_DSPR2) += mips/inv_txfm_dspr2.h
228 DSP_SRCS-$(HAVE_DSPR2) += mips/itrans4_dspr2.c
229 DSP_SRCS-$(HAVE_DSPR2) += mips/itrans8_dspr2.c
230 DSP_SRCS-$(HAVE_DSPR2) += mips/itrans16_dspr2.c
231 DSP_SRCS-$(HAVE_DSPR2) += mips/itrans32_dspr2.c
232 DSP_SRCS-$(HAVE_DSPR2) += mips/itrans32_cols_dspr2.c
233 else  # CONFIG_VP9_HIGHBITDEPTH
234 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct4x4_add_neon.c
235 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct8x8_add_neon.c
236 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct16x16_add_neon.c
237 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct32x32_add_neon.c
238 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct32x32_34_add_neon.c
239 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct32x32_135_add_neon.c
240 DSP_SRCS-$(HAVE_NEON)  += arm/highbd_idct32x32_1024_add_neon.c
241 DSP_SRCS-$(HAVE_SSE2)  += x86/highbd_inv_txfm_sse2.h
242 DSP_SRCS-$(HAVE_SSE2)  += x86/highbd_idct4x4_add_sse2.c
243 DSP_SRCS-$(HAVE_SSE2)  += x86/highbd_idct8x8_add_sse2.c
244 DSP_SRCS-$(HAVE_SSE2)  += x86/highbd_idct16x16_add_sse2.c
245 DSP_SRCS-$(HAVE_SSE2)  += x86/highbd_idct32x32_add_sse2.c
246 DSP_SRCS-$(HAVE_SSE4_1) += x86/highbd_inv_txfm_sse4.h
247 DSP_SRCS-$(HAVE_SSE4_1) += x86/highbd_idct4x4_add_sse4.c
248 DSP_SRCS-$(HAVE_SSE4_1) += x86/highbd_idct8x8_add_sse4.c
249 DSP_SRCS-$(HAVE_SSE4_1) += x86/highbd_idct16x16_add_sse4.c
250 DSP_SRCS-$(HAVE_SSE4_1) += x86/highbd_idct32x32_add_sse4.c
251 endif  # !CONFIG_VP9_HIGHBITDEPTH
252
253 ifeq ($(HAVE_NEON_ASM),yes)
254 DSP_SRCS-yes += arm/idct_neon$(ASM)
255 DSP_SRCS-yes += arm/idct4x4_1_add_neon$(ASM)
256 DSP_SRCS-yes += arm/idct4x4_add_neon$(ASM)
257 else
258 DSP_SRCS-$(HAVE_NEON) += arm/idct4x4_1_add_neon.c
259 DSP_SRCS-$(HAVE_NEON) += arm/idct4x4_add_neon.c
260 endif  # HAVE_NEON_ASM
261 DSP_SRCS-$(HAVE_NEON) += arm/idct_neon.h
262 DSP_SRCS-$(HAVE_NEON) += arm/idct8x8_1_add_neon.c
263 DSP_SRCS-$(HAVE_NEON) += arm/idct8x8_add_neon.c
264 DSP_SRCS-$(HAVE_NEON) += arm/idct16x16_1_add_neon.c
265 DSP_SRCS-$(HAVE_NEON) += arm/idct16x16_add_neon.c
266 DSP_SRCS-$(HAVE_NEON) += arm/idct32x32_1_add_neon.c
267 DSP_SRCS-$(HAVE_NEON) += arm/idct32x32_34_add_neon.c
268 DSP_SRCS-$(HAVE_NEON) += arm/idct32x32_135_add_neon.c
269 DSP_SRCS-$(HAVE_NEON) += arm/idct32x32_add_neon.c
270
271 endif  # CONFIG_VP9
272
273 # quantization
274 ifeq ($(CONFIG_VP9_ENCODER),yes)
275 DSP_SRCS-yes            += quantize.c
276 DSP_SRCS-yes            += quantize.h
277
278 DSP_SRCS-$(HAVE_SSE2)   += x86/quantize_sse2.c
279 DSP_SRCS-$(HAVE_SSSE3)  += x86/quantize_ssse3.c
280 DSP_SRCS-$(HAVE_AVX)    += x86/quantize_avx.c
281 DSP_SRCS-$(HAVE_NEON)   += arm/quantize_neon.c
282 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
283 DSP_SRCS-$(HAVE_SSE2)   += x86/highbd_quantize_intrin_sse2.c
284 endif
285 ifeq ($(ARCH_X86_64),yes)
286 DSP_SRCS-$(HAVE_SSSE3)  += x86/quantize_ssse3_x86_64.asm
287 DSP_SRCS-$(HAVE_AVX)    += x86/quantize_avx_x86_64.asm
288 endif
289
290 # avg
291 DSP_SRCS-yes           += avg.c
292 DSP_SRCS-$(HAVE_SSE2)  += x86/avg_intrin_sse2.c
293 DSP_SRCS-$(HAVE_NEON)  += arm/avg_neon.c
294 DSP_SRCS-$(HAVE_NEON)  += arm/hadamard_neon.c
295 DSP_SRCS-$(HAVE_MSA)   += mips/avg_msa.c
296 ifeq ($(ARCH_X86_64),yes)
297 DSP_SRCS-$(HAVE_SSSE3) += x86/avg_ssse3_x86_64.asm
298 endif
299 DSP_SRCS-$(HAVE_VSX)   += ppc/hadamard_vsx.c
300
301 endif  # CONFIG_VP9_ENCODER
302
303 # skin detection
304 DSP_SRCS-yes            += skin_detection.h
305 DSP_SRCS-yes            += skin_detection.c
306
307 ifeq ($(CONFIG_ENCODERS),yes)
308 DSP_SRCS-yes            += sad.c
309 DSP_SRCS-yes            += subtract.c
310 DSP_SRCS-yes            += sum_squares.c
311 DSP_SRCS-$(HAVE_SSE2)   += x86/sum_squares_sse2.c
312 DSP_SRCS-$(HAVE_MSA)    += mips/sum_squares_msa.c
313
314 DSP_SRCS-$(HAVE_NEON)   += arm/sad4d_neon.c
315 DSP_SRCS-$(HAVE_NEON)   += arm/sad_neon.c
316 DSP_SRCS-$(HAVE_NEON)   += arm/subtract_neon.c
317
318 DSP_SRCS-$(HAVE_MSA)    += mips/sad_msa.c
319 DSP_SRCS-$(HAVE_MSA)    += mips/subtract_msa.c
320
321 DSP_SRCS-$(HAVE_MMI)    += mips/subtract_mmi.c
322
323 DSP_SRCS-$(HAVE_SSE3)   += x86/sad_sse3.asm
324 DSP_SRCS-$(HAVE_SSSE3)  += x86/sad_ssse3.asm
325 DSP_SRCS-$(HAVE_SSE4_1) += x86/sad_sse4.asm
326 DSP_SRCS-$(HAVE_AVX2)   += x86/sad4d_avx2.c
327 DSP_SRCS-$(HAVE_AVX2)   += x86/sad_avx2.c
328
329 DSP_SRCS-$(HAVE_SSE)    += x86/sad4d_sse2.asm
330 DSP_SRCS-$(HAVE_SSE)    += x86/sad_sse2.asm
331 DSP_SRCS-$(HAVE_SSE2)   += x86/sad4d_sse2.asm
332 DSP_SRCS-$(HAVE_SSE2)   += x86/sad_sse2.asm
333 DSP_SRCS-$(HAVE_SSE2)   += x86/subtract_sse2.asm
334
335 DSP_SRCS-$(HAVE_VSX) += ppc/sad_vsx.c
336
337 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
338 DSP_SRCS-$(HAVE_SSE2) += x86/highbd_sad4d_sse2.asm
339 DSP_SRCS-$(HAVE_SSE2) += x86/highbd_sad_sse2.asm
340 endif  # CONFIG_VP9_HIGHBITDEPTH
341
342 endif  # CONFIG_ENCODERS
343
344 ifneq ($(filter yes,$(CONFIG_ENCODERS) $(CONFIG_POSTPROC) $(CONFIG_VP9_POSTPROC)),)
345 DSP_SRCS-yes            += variance.c
346 DSP_SRCS-yes            += variance.h
347
348 DSP_SRCS-$(HAVE_NEON)   += arm/avg_pred_neon.c
349 DSP_SRCS-$(HAVE_NEON)   += arm/subpel_variance_neon.c
350 DSP_SRCS-$(HAVE_NEON)   += arm/variance_neon.c
351
352 DSP_SRCS-$(HAVE_MSA)    += mips/variance_msa.c
353 DSP_SRCS-$(HAVE_MSA)    += mips/sub_pixel_variance_msa.c
354
355 DSP_SRCS-$(HAVE_SSE)    += x86/variance_sse2.c
356 DSP_SRCS-$(HAVE_SSE2)   += x86/avg_pred_sse2.c
357 DSP_SRCS-$(HAVE_SSE2)   += x86/variance_sse2.c  # Contains SSE2 and SSSE3
358 DSP_SRCS-$(HAVE_AVX2)   += x86/variance_avx2.c
359 DSP_SRCS-$(HAVE_VSX)    += ppc/variance_vsx.c
360
361 ifeq ($(ARCH_X86_64),yes)
362 DSP_SRCS-$(HAVE_SSE2)   += x86/ssim_opt_x86_64.asm
363 endif  # ARCH_X86_64
364
365 DSP_SRCS-$(HAVE_SSE)    += x86/subpel_variance_sse2.asm
366 DSP_SRCS-$(HAVE_SSE2)   += x86/subpel_variance_sse2.asm  # Contains SSE2 and SSSE3
367
368 ifeq ($(CONFIG_VP9_HIGHBITDEPTH),yes)
369 DSP_SRCS-$(HAVE_SSE2)   += x86/highbd_variance_sse2.c
370 DSP_SRCS-$(HAVE_SSE2)   += x86/highbd_variance_impl_sse2.asm
371 DSP_SRCS-$(HAVE_SSE2)   += x86/highbd_subpel_variance_impl_sse2.asm
372 endif  # CONFIG_VP9_HIGHBITDEPTH
373 endif  # CONFIG_ENCODERS || CONFIG_POSTPROC || CONFIG_VP9_POSTPROC
374
375 # Neon utilities
376 DSP_SRCS-$(HAVE_NEON) += arm/mem_neon.h
377 DSP_SRCS-$(HAVE_NEON) += arm/sum_neon.h
378 DSP_SRCS-$(HAVE_NEON) += arm/transpose_neon.h
379
380 # PPC VSX utilities
381 DSP_SRCS-$(HAVE_VSX)  += ppc/types_vsx.h
382 DSP_SRCS-$(HAVE_VSX)  += ppc/transpose_vsx.h
383 DSP_SRCS-$(HAVE_VSX)  += ppc/bitdepth_conversion_vsx.h
384
385 # X86 utilities
386 DSP_SRCS-$(HAVE_SSE2) += x86/transpose_sse2.h
387
388 DSP_SRCS-no += $(DSP_SRCS_REMOVE-yes)
389
390 DSP_SRCS-yes += vpx_dsp_rtcd.c
391 DSP_SRCS-yes += vpx_dsp_rtcd_defs.pl
392
393 $(eval $(call rtcd_h_template,vpx_dsp_rtcd,vpx_dsp/vpx_dsp_rtcd_defs.pl))