Rough merge of master into experimental
[platform/upstream/libvpx.git] / vp9 / vp9_common.mk
1 ##
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
11 VP9_COMMON_SRCS-yes += vp9_common.mk
12 VP9_COMMON_SRCS-yes += common/type_aliases.h
13 VP9_COMMON_SRCS-yes += common/pragmas.h
14 VP9_COMMON_SRCS-yes += common/ppflags.h
15 VP9_COMMON_SRCS-yes += common/onyx.h
16 VP9_COMMON_SRCS-yes += common/onyxd.h
17 VP9_COMMON_SRCS-yes += common/alloccommon.c
18 VP9_COMMON_SRCS-yes += common/asm_com_offsets.c
19 VP9_COMMON_SRCS-yes += common/blockd.c
20 VP9_COMMON_SRCS-yes += common/coefupdateprobs.h
21 VP9_COMMON_SRCS-yes += common/debugmodes.c
22 VP9_COMMON_SRCS-yes += common/entropy.c
23 VP9_COMMON_SRCS-yes += common/entropymode.c
24 VP9_COMMON_SRCS-yes += common/entropymv.c
25 VP9_COMMON_SRCS-yes += common/extend.c
26 VP9_COMMON_SRCS-yes += common/filter.c
27 VP9_COMMON_SRCS-yes += common/filter.h
28 VP9_COMMON_SRCS-yes += common/findnearmv.c
29 VP9_COMMON_SRCS-yes += common/generic/systemdependent.c
30 VP9_COMMON_SRCS-yes += common/idctllm.c
31 VP9_COMMON_SRCS-yes += common/alloccommon.h
32 VP9_COMMON_SRCS-yes += common/blockd.h
33 VP9_COMMON_SRCS-yes += common/common.h
34 VP9_COMMON_SRCS-yes += common/common_types.h
35 VP9_COMMON_SRCS-yes += common/entropy.h
36 VP9_COMMON_SRCS-yes += common/entropymode.h
37 VP9_COMMON_SRCS-yes += common/entropymv.h
38 VP9_COMMON_SRCS-yes += common/extend.h
39 VP9_COMMON_SRCS-yes += common/findnearmv.h
40 VP9_COMMON_SRCS-yes += common/header.h
41 VP9_COMMON_SRCS-yes += common/idct.h
42 VP9_COMMON_SRCS-yes += common/invtrans.h
43 VP9_COMMON_SRCS-yes += common/loopfilter.h
44 VP9_COMMON_SRCS-yes += common/modecont.h
45 VP9_COMMON_SRCS-yes += common/mv.h
46 VP9_COMMON_SRCS-yes += common/onyxc_int.h
47 VP9_COMMON_SRCS-yes += common/pred_common.h
48 VP9_COMMON_SRCS-yes += common/pred_common.c
49 VP9_COMMON_SRCS-yes += common/quant_common.h
50 VP9_COMMON_SRCS-yes += common/reconinter.h
51 VP9_COMMON_SRCS-yes += common/reconintra.h
52 VP9_COMMON_SRCS-yes += common/reconintra4x4.h
53 VP9_COMMON_SRCS-yes += common/rtcd.c
54 VP9_COMMON_SRCS-yes += common/rtcd_defs.sh
55 VP9_COMMON_SRCS-yes += common/sadmxn.h
56 VP9_COMMON_SRCS-yes += common/seg_common.h
57 VP9_COMMON_SRCS-yes += common/seg_common.c
58 VP9_COMMON_SRCS-yes += common/setupintrarecon.h
59 VP9_COMMON_SRCS-yes += common/subpixel.h
60 VP9_COMMON_SRCS-yes += common/swapyv12buffer.h
61 VP9_COMMON_SRCS-yes += common/systemdependent.h
62 VP9_COMMON_SRCS-yes += common/treecoder.h
63 VP9_COMMON_SRCS-yes += common/invtrans.c
64 VP9_COMMON_SRCS-yes += common/loopfilter.c
65 VP9_COMMON_SRCS-yes += common/loopfilter_filters.c
66 VP9_COMMON_SRCS-yes += common/mbpitch.c
67 VP9_COMMON_SRCS-yes += common/modecont.c
68 VP9_COMMON_SRCS-yes += common/modecontext.c
69 VP9_COMMON_SRCS-yes += common/mvref_common.c
70 VP9_COMMON_SRCS-yes += common/mvref_common.h
71 VP9_COMMON_SRCS-yes += common/quant_common.c
72 VP9_COMMON_SRCS-yes += common/recon.c
73 VP9_COMMON_SRCS-yes += common/reconinter.c
74 VP9_COMMON_SRCS-yes += common/reconintra.c
75 VP9_COMMON_SRCS-yes += common/reconintra4x4.c
76 VP9_COMMON_SRCS-yes += common/setupintrarecon.c
77 VP9_COMMON_SRCS-yes += common/swapyv12buffer.c
78 VP9_COMMON_SRCS-$(CONFIG_POSTPROC_VISUALIZER) += common/textblit.c
79 VP9_COMMON_SRCS-yes += common/treecoder.c
80 VP9_COMMON_SRCS-$(CONFIG_IMPLICIT_SEGMENTATION) += common/implicit_segmentation.c
81
82 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/idct_x86.h
83 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/subpixel_x86.h
84 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.h
85 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/postproc_x86.h
86 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/x86_systemdependent.c
87 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp8_asm_stubs.c
88 VP9_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.c
89 VP9_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.h
90 VP9_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.c
91 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/idctllm_mmx.asm
92 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/iwalsh_mmx.asm
93 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/recon_mmx.asm
94 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/subpixel_mmx.asm
95 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/loopfilter_mmx.asm
96 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/idctllm_sse2.asm
97 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_sse2.asm
98 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_wrapper_sse2.c
99 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/subpixel_sse2.asm
100 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_sse2.asm
101 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/iwalsh_sse2.asm
102 VP9_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/subpixel_8t_ssse3.asm
103 VP9_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/subpixel_ssse3.asm
104 ifeq ($(CONFIG_POSTPROC),yes)
105 VP9_COMMON_SRCS-$(HAVE_MMX) += common/x86/postproc_mmx.asm
106 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/postproc_sse2.asm
107 endif
108
109 # common (c)
110 ifeq ($(CONFIG_CSM),yes)
111 VP9_COMMON_SRCS-yes += common/maskingmv.c
112 VP9_COMMON_SRCS-$(HAVE_SSE3) += common/x86/mask_sse3.asm
113 endif
114
115 VP9_COMMON_SRCS-$(HAVE_SSE4_1) += common/x86/filter_sse4.c
116 ifeq ($(HAVE_SSE4_1),yes)
117 vp9/common/x86/filter_sse4.c.o: CFLAGS += -msse4
118 endif
119
120 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/filter_sse2.c
121 VP9_COMMON_SRCS-$(HAVE_SSE2) += common/x86/sadmxn_x86.c
122 ifeq ($(HAVE_SSE2),yes)
123 vp9/common/x86/filter_sse2.c.o: CFLAGS += -msse2
124 vp9/common/x86/loopfilter_x86.c.o: CFLAGS += -msse2
125 vp9/common/x86/sadmxn_x86.c.o: CFLAGS += -msse2
126 endif
127
128 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/arm_systemdependent.c
129 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/bilinearfilter_arm.c
130 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/bilinearfilter_arm.h
131 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/filter_arm.c
132 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/idct_arm.h
133 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/loopfilter_arm.c
134 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/loopfilter_arm.h
135 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/recon_arm.h
136 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/reconintra_arm.c
137 VP9_COMMON_SRCS-$(ARCH_ARM)  += common/arm/subpixel_arm.h
138
139 # common (armv6)
140 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/bilinearfilter_v6$(ASM)
141 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x4_v6$(ASM)
142 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x8_v6$(ASM)
143 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem16x16_v6$(ASM)
144 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/dc_only_idct_add_v6$(ASM)
145 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/iwalsh_v6$(ASM)
146 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/filter_v6$(ASM)
147 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/idct_v6$(ASM)
148 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/loopfilter_v6$(ASM)
149 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/recon_v6$(ASM)
150 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/simpleloopfilter_v6$(ASM)
151 VP9_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/sixtappredict8x4_v6$(ASM)
152
153 # common (neon)
154 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict4x4_neon$(ASM)
155 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x4_neon$(ASM)
156 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x8_neon$(ASM)
157 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict16x16_neon$(ASM)
158 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x4_neon$(ASM)
159 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x8_neon$(ASM)
160 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem16x16_neon$(ASM)
161 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/dc_only_idct_add_neon$(ASM)
162 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/iwalsh_neon$(ASM)
163 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilter_neon$(ASM)
164 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimplehorizontaledge_neon$(ASM)
165 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimpleverticaledge_neon$(ASM)
166 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilter_neon$(ASM)
167 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon2b_neon$(ASM)
168 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon4b_neon$(ASM)
169 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/reconb_neon$(ASM)
170 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_1_neon$(ASM)
171 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_neon$(ASM)
172 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict4x4_neon$(ASM)
173 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x4_neon$(ASM)
174 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x8_neon$(ASM)
175 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict16x16_neon$(ASM)
176 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon16x16mb_neon$(ASM)
177 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/buildintrapredictorsmby_neon$(ASM)
178 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/save_neon_reg$(ASM)
179 VP9_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon_neon.c
180
181
182 $(eval $(call asm_offsets_template,\
183          vp9_asm_com_offsets.asm, $(VP9_PREFIX)common/asm_com_offsets.c))