blob: 8abd58399f38707315021dc23de7ca1d6766a7a5 [file] [log] [blame]
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -07001##
2## Copyright (c) 2010 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
11VP9_COMMON_SRCS-yes += vp9_common.mk
John Koleszarb3c350a2013-03-13 12:15:43 -070012VP9_COMMON_SRCS-yes += vp9_iface_common.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080013VP9_COMMON_SRCS-yes += common/vp9_pragmas.h
14VP9_COMMON_SRCS-yes += common/vp9_ppflags.h
15VP9_COMMON_SRCS-yes += common/vp9_onyx.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080016VP9_COMMON_SRCS-yes += common/vp9_alloccommon.c
17VP9_COMMON_SRCS-yes += common/vp9_asm_com_offsets.c
18VP9_COMMON_SRCS-yes += common/vp9_blockd.c
19VP9_COMMON_SRCS-yes += common/vp9_coefupdateprobs.h
John Koleszar5ca6a362013-01-25 09:47:09 -080020VP9_COMMON_SRCS-yes += common/vp9_convolve.c
21VP9_COMMON_SRCS-yes += common/vp9_convolve.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080022VP9_COMMON_SRCS-yes += common/vp9_debugmodes.c
John Koleszar5ebe94f2012-12-23 07:20:10 -080023VP9_COMMON_SRCS-yes += common/vp9_default_coef_probs.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080024VP9_COMMON_SRCS-yes += common/vp9_entropy.c
25VP9_COMMON_SRCS-yes += common/vp9_entropymode.c
26VP9_COMMON_SRCS-yes += common/vp9_entropymv.c
27VP9_COMMON_SRCS-yes += common/vp9_extend.c
28VP9_COMMON_SRCS-yes += common/vp9_filter.c
29VP9_COMMON_SRCS-yes += common/vp9_filter.h
30VP9_COMMON_SRCS-yes += common/vp9_findnearmv.c
31VP9_COMMON_SRCS-yes += common/generic/vp9_systemdependent.c
Yaowu Xu00555262013-03-12 11:24:04 -070032VP9_COMMON_SRCS-yes += common/vp9_idct.c
John Koleszarfcccbcb2012-11-27 13:59:17 -080033VP9_COMMON_SRCS-yes += common/vp9_alloccommon.h
34VP9_COMMON_SRCS-yes += common/vp9_blockd.h
35VP9_COMMON_SRCS-yes += common/vp9_common.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080036VP9_COMMON_SRCS-yes += common/vp9_entropy.h
37VP9_COMMON_SRCS-yes += common/vp9_entropymode.h
38VP9_COMMON_SRCS-yes += common/vp9_entropymv.h
Ronald S. Bultjea3874852013-04-09 21:28:27 -070039VP9_COMMON_SRCS-yes += common/vp9_enums.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080040VP9_COMMON_SRCS-yes += common/vp9_extend.h
41VP9_COMMON_SRCS-yes += common/vp9_findnearmv.h
42VP9_COMMON_SRCS-yes += common/vp9_header.h
Yaowu Xue6ad9ab2013-02-07 11:51:23 -080043VP9_COMMON_SRCS-yes += common/vp9_idct.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080044VP9_COMMON_SRCS-yes += common/vp9_invtrans.h
45VP9_COMMON_SRCS-yes += common/vp9_loopfilter.h
46VP9_COMMON_SRCS-yes += common/vp9_modecont.h
47VP9_COMMON_SRCS-yes += common/vp9_mv.h
48VP9_COMMON_SRCS-yes += common/vp9_onyxc_int.h
49VP9_COMMON_SRCS-yes += common/vp9_pred_common.h
50VP9_COMMON_SRCS-yes += common/vp9_pred_common.c
51VP9_COMMON_SRCS-yes += common/vp9_quant_common.h
52VP9_COMMON_SRCS-yes += common/vp9_reconinter.h
53VP9_COMMON_SRCS-yes += common/vp9_reconintra.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080054VP9_COMMON_SRCS-yes += common/vp9_rtcd.c
55VP9_COMMON_SRCS-yes += common/vp9_rtcd_defs.sh
56VP9_COMMON_SRCS-yes += common/vp9_sadmxn.h
57VP9_COMMON_SRCS-yes += common/vp9_subpelvar.h
58VP9_COMMON_SRCS-yes += common/vp9_seg_common.h
59VP9_COMMON_SRCS-yes += common/vp9_seg_common.c
60VP9_COMMON_SRCS-yes += common/vp9_setupintrarecon.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080061VP9_COMMON_SRCS-yes += common/vp9_swapyv12buffer.h
62VP9_COMMON_SRCS-yes += common/vp9_systemdependent.h
John Koleszar5ebe94f2012-12-23 07:20:10 -080063VP9_COMMON_SRCS-yes += common/vp9_textblit.h
Ronald S. Bultjef496f602013-02-06 15:30:21 -080064VP9_COMMON_SRCS-yes += common/vp9_tile_common.h
65VP9_COMMON_SRCS-yes += common/vp9_tile_common.c
John Koleszarfcccbcb2012-11-27 13:59:17 -080066VP9_COMMON_SRCS-yes += common/vp9_treecoder.h
67VP9_COMMON_SRCS-yes += common/vp9_invtrans.c
68VP9_COMMON_SRCS-yes += common/vp9_loopfilter.c
69VP9_COMMON_SRCS-yes += common/vp9_loopfilter_filters.c
70VP9_COMMON_SRCS-yes += common/vp9_mbpitch.c
71VP9_COMMON_SRCS-yes += common/vp9_modecont.c
72VP9_COMMON_SRCS-yes += common/vp9_modecontext.c
73VP9_COMMON_SRCS-yes += common/vp9_mvref_common.c
74VP9_COMMON_SRCS-yes += common/vp9_mvref_common.h
75VP9_COMMON_SRCS-yes += common/vp9_quant_common.c
76VP9_COMMON_SRCS-yes += common/vp9_recon.c
77VP9_COMMON_SRCS-yes += common/vp9_reconinter.c
78VP9_COMMON_SRCS-yes += common/vp9_reconintra.c
79VP9_COMMON_SRCS-yes += common/vp9_reconintra4x4.c
80VP9_COMMON_SRCS-yes += common/vp9_setupintrarecon.c
81VP9_COMMON_SRCS-yes += common/vp9_swapyv12buffer.c
82VP9_COMMON_SRCS-$(CONFIG_POSTPROC_VISUALIZER) += common/vp9_textblit.c
83VP9_COMMON_SRCS-yes += common/vp9_treecoder.c
84VP9_COMMON_SRCS-$(CONFIG_IMPLICIT_SEGMENTATION) += common/vp9_implicit_segmentation.c
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -070085
John Koleszarfcccbcb2012-11-27 13:59:17 -080086VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_idct_x86.h
John Koleszarfcccbcb2012-11-27 13:59:17 -080087VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_loopfilter_x86.h
88VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_postproc_x86.h
Jim Bankoskie69b5252012-11-29 06:53:08 -080089VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_asm_stubs.c
Johann3db60c82013-04-02 11:45:01 -070090VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_loopfilter_intrin_mmx.c
91VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_loopfilter_intrin_sse2.c
John Koleszarfcccbcb2012-11-27 13:59:17 -080092VP9_COMMON_SRCS-$(CONFIG_POSTPROC) += common/vp9_postproc.h
93VP9_COMMON_SRCS-$(CONFIG_POSTPROC) += common/vp9_postproc.c
John Koleszarfcccbcb2012-11-27 13:59:17 -080094VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_iwalsh_mmx.asm
95VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_recon_mmx.asm
John Koleszarfcccbcb2012-11-27 13:59:17 -080096VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_loopfilter_mmx.asm
Yaowu Xu00555262013-03-12 11:24:04 -070097VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_idct_sse2.asm
Yaowu Xu9bf73f42013-01-14 18:03:34 -080098VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_iwalsh_sse2.asm
99VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_loopfilter_sse2.asm
John Koleszarfcccbcb2012-11-27 13:59:17 -0800100VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_recon_sse2.asm
101VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_recon_wrapper_sse2.c
Yaowu Xu9bf73f42013-01-14 18:03:34 -0800102VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_subpel_variance_impl_sse2.asm
Yunqing Wang8d568312013-01-08 10:44:19 -0800103VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_subpixel_variance_sse2.c
John Koleszarfcccbcb2012-11-27 13:59:17 -0800104VP9_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/vp9_subpixel_8t_ssse3.asm
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -0700105ifeq ($(CONFIG_POSTPROC),yes)
John Koleszarfcccbcb2012-11-27 13:59:17 -0800106VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/vp9_postproc_mmx.asm
107VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_postproc_sse2.asm
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -0700108endif
109
110# common (c)
111ifeq ($(CONFIG_CSM),yes)
John Koleszarfcccbcb2012-11-27 13:59:17 -0800112VP9_COMMON_SRCS-yes += common/vp9_maskingmv.c
113VP9_COMMON_SRCS-$(HAVE_SSE3) += common/x86/vp9_mask_sse3.asm
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -0700114endif
115
Yaowu Xu00555262013-03-12 11:24:04 -0700116VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp9_idct_x86.c
Johann6c147b92013-04-02 11:20:55 -0700117VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/vp9_sadmxn_sse2.c
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -0700118ifeq ($(HAVE_SSE2),yes)
Yaowu Xu00555262013-03-12 11:24:04 -0700119vp9/common/x86/vp9_idct_x86.c.o: CFLAGS += -msse2
Johann3db60c82013-04-02 11:45:01 -0700120vp9/common/x86/vp9_loopfilter_intrin_sse2.c.o: CFLAGS += -msse2
Johann6c147b92013-04-02 11:20:55 -0700121vp9/common/x86/vp9_sadmxn_sse2.c.o: CFLAGS += -msse2
Yaowu Xu00555262013-03-12 11:24:04 -0700122vp9/common/x86/vp9_idct_x86.c.d: CFLAGS += -msse2
Johann3db60c82013-04-02 11:45:01 -0700123vp9/common/x86/vp9_loopfilter_intrin_sse2.c.d: CFLAGS += -msse2
Johann6c147b92013-04-02 11:20:55 -0700124vp9/common/x86/vp9_sadmxn_sse2.c.d: CFLAGS += -msse2
Ronald S. Bultje4b2c2b92012-11-01 11:09:58 -0700125endif
126
John Koleszar7b8dfcb2012-11-06 16:59:01 -0800127$(eval $(call asm_offsets_template,\
John Koleszarfcccbcb2012-11-27 13:59:17 -0800128 vp9_asm_com_offsets.asm, $(VP9_PREFIX)common/vp9_asm_com_offsets.c))
John Koleszara9c75972012-11-08 17:09:30 -0800129
John Koleszarfcccbcb2012-11-27 13:59:17 -0800130$(eval $(call rtcd_h_template,vp9_rtcd,vp9/common/vp9_rtcd_defs.sh))