Correct bit allocation when the alternative reference frame
[profile/ivi/libvpx.git] / vp8 / vp8_common.mk
1 ##
2 ##  Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
3 ##
4 ##  Use of this source code is governed by a BSD-style license and patent
5 ##  grant that can be found in the LICENSE file in the root of the source
6 ##  tree. All contributing project authors may be found in the AUTHORS
7 ##  file in the root of the source tree.
8 ##
9
10
11 #add this file to the installed sources list
12 VP8_COMMON_SRCS-yes += vp8_common.mk
13
14 #common interface
15 VP8_COMMON_SRCS-yes += vp8.h
16
17 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
18 VP8_COMMON_SRCS-yes += common/type_aliases.h
19 VP8_COMMON_SRCS-yes += common/pragmas.h
20
21 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
22 VP8_COMMON_SRCS-yes += common/preproc.h
23 VP8_COMMON_SRCS-yes += common/vpxerrors.h
24
25 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
26 VP8_COMMON_SRCS-yes += common/ppflags.h
27 VP8_COMMON_SRCS-yes += common/onyx.h
28 VP8_COMMON_SRCS-yes += common/onyxd.h
29
30 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
31
32 VP8_COMMON_SRCS-yes += common/segmentation_common.c
33 VP8_COMMON_SRCS-yes += common/alloccommon.c
34 VP8_COMMON_SRCS-yes += common/blockd.c
35 VP8_COMMON_SRCS-yes += common/coefupdateprobs.h
36 VP8_COMMON_SRCS-yes += common/debugmodes.c
37 VP8_COMMON_SRCS-yes += common/defaultcoefcounts.h
38 VP8_COMMON_SRCS-yes += common/entropy.c
39 VP8_COMMON_SRCS-yes += common/entropymode.c
40 VP8_COMMON_SRCS-yes += common/entropymv.c
41 VP8_COMMON_SRCS-yes += common/extend.c
42 VP8_COMMON_SRCS-yes += common/filter_c.c
43 VP8_COMMON_SRCS-yes += common/findnearmv.c
44 VP8_COMMON_SRCS-yes += common/generic/systemdependent.c
45 VP8_COMMON_SRCS-yes += common/idctllm.c
46 VP8_COMMON_SRCS-yes += common/alloccommon.h
47 VP8_COMMON_SRCS-yes += common/blockd.h
48 VP8_COMMON_SRCS-yes += common/common.h
49 VP8_COMMON_SRCS-yes += common/common_types.h
50 VP8_COMMON_SRCS-yes += common/entropy.h
51 VP8_COMMON_SRCS-yes += common/entropymode.h
52 VP8_COMMON_SRCS-yes += common/entropymv.h
53 VP8_COMMON_SRCS-yes += common/extend.h
54 VP8_COMMON_SRCS-yes += common/findnearmv.h
55 VP8_COMMON_SRCS-yes += common/g_common.h
56 VP8_COMMON_SRCS-yes += common/header.h
57 VP8_COMMON_SRCS-yes += common/idct.h
58 VP8_COMMON_SRCS-yes += common/invtrans.h
59 VP8_COMMON_SRCS-yes += common/loopfilter.h
60 VP8_COMMON_SRCS-yes += common/modecont.h
61 VP8_COMMON_SRCS-yes += common/mv.h
62 VP8_COMMON_SRCS-yes += common/onyxc_int.h
63 VP8_COMMON_SRCS-yes += common/predictdc.h
64 VP8_COMMON_SRCS-yes += common/quant_common.h
65 VP8_COMMON_SRCS-yes += common/recon.h
66 VP8_COMMON_SRCS-yes += common/reconinter.h
67 VP8_COMMON_SRCS-yes += common/reconintra.h
68 VP8_COMMON_SRCS-yes += common/reconintra4x4.h
69 VP8_COMMON_SRCS-yes += common/segmentation_common.h
70 VP8_COMMON_SRCS-yes += common/setupintrarecon.h
71 VP8_COMMON_SRCS-yes += common/subpixel.h
72 VP8_COMMON_SRCS-yes += common/swapyv12buffer.h
73 VP8_COMMON_SRCS-yes += common/systemdependent.h
74 VP8_COMMON_SRCS-yes += common/threading.h
75 VP8_COMMON_SRCS-yes += common/treecoder.h
76 VP8_COMMON_SRCS-yes += common/invtrans.c
77 VP8_COMMON_SRCS-yes += common/loopfilter.c
78 VP8_COMMON_SRCS-yes += common/loopfilter_filters.c
79 VP8_COMMON_SRCS-yes += common/mbpitch.c
80 VP8_COMMON_SRCS-yes += common/modecont.c
81 VP8_COMMON_SRCS-yes += common/modecontext.c
82 VP8_COMMON_SRCS-yes += common/predictdc.c
83 VP8_COMMON_SRCS-yes += common/quant_common.c
84 VP8_COMMON_SRCS-yes += common/recon.c
85 VP8_COMMON_SRCS-yes += common/reconinter.c
86 VP8_COMMON_SRCS-yes += common/reconintra.c
87 VP8_COMMON_SRCS-yes += common/reconintra4x4.c
88 VP8_COMMON_SRCS-yes += common/setupintrarecon.c
89 VP8_COMMON_SRCS-yes += common/swapyv12buffer.c
90 VP8_COMMON_SRCS-yes += common/textblit.c
91 VP8_COMMON_SRCS-yes += common/treecoder.c
92
93 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/idct_x86.h
94 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/subpixel_x86.h
95 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/recon_x86.h
96 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.h
97 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/postproc_x86.h
98 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/x86_systemdependent.c
99 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp8_asm_stubs.c
100 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.c
101 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.h
102 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.c
103 VP8_COMMON_SRCS-$(CONFIG_VP8_ENCODER) += common/postproc.h
104 VP8_COMMON_SRCS-$(CONFIG_VP8_ENCODER) += common/postproc.c
105 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/idctllm_mmx.asm
106 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/iwalsh_mmx.asm
107 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/recon_mmx.asm
108 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/subpixel_mmx.asm
109 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/loopfilter_mmx.asm
110 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_sse2.asm
111 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/subpixel_sse2.asm
112 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_sse2.asm
113 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/iwalsh_sse2.asm
114 ifeq ($(CONFIG_POSTPROC),yes)
115 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/postproc_mmx.asm
116 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/postproc_sse2.asm
117 endif
118
119 # common (c)
120 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/bilinearfilter_arm.c
121 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/filter_arm.c
122 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/loopfilter_arm.c
123 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/recon_arm.c
124 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/reconintra4x4_arm.c
125 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/reconintra_arm.c
126 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/systemdependent.c
127 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/vpx_asm_offsets.c
128
129 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6)  += common/filter_c.c
130 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6)  += common/recon.c
131 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6)  += common/reconintra4x4.c
132 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6)  += common/generic/systemdependent.c
133
134 # common (armv6)
135 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/bilinearfilter_v6$(ASM)
136 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x4_v6$(ASM)
137 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x8_v6$(ASM)
138 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem16x16_v6$(ASM)
139 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/iwalsh_v6$(ASM)
140 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/filter_v6$(ASM)
141 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/idct_v6$(ASM)
142 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/loopfilter_v6$(ASM)
143 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/recon_v6$(ASM)
144 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/simpleloopfilter_v6$(ASM)
145 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/sixtappredict8x4_v6$(ASM)
146
147 # common (neon)
148 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict4x4_neon$(ASM)
149 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x4_neon$(ASM)
150 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x8_neon$(ASM)
151 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict16x16_neon$(ASM)
152 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x4_neon$(ASM)
153 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x8_neon$(ASM)
154 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem16x16_neon$(ASM)
155 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/iwalsh_neon$(ASM)
156 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimplehorizontaledge_neon$(ASM)
157 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimpleverticaledge_neon$(ASM)
158 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilterhorizontaledge_uv_neon$(ASM)
159 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilterhorizontaledge_y_neon$(ASM)
160 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilterverticaledge_uv_neon$(ASM)
161 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilterverticaledge_y_neon$(ASM)
162 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilterhorizontaledge_uv_neon$(ASM)
163 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilterhorizontaledge_y_neon$(ASM)
164 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilterverticaledge_uv_neon$(ASM)
165 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilterverticaledge_y_neon$(ASM)
166 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon2b_neon$(ASM)
167 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon4b_neon$(ASM)
168 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/reconb_neon$(ASM)
169 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_1_neon$(ASM)
170 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_neon$(ASM)
171 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict4x4_neon$(ASM)
172 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x4_neon$(ASM)
173 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x8_neon$(ASM)
174 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict16x16_neon$(ASM)
175 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon16x16mb_neon$(ASM)
176 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/buildintrapredictorsmby_neon$(ASM)
177 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/save_neon_reg$(ASM)
178
179
180 #
181 # Rule to extract assembly constants from C sources
182 #
183 ifeq ($(ARCH_ARM),yes)
184 vpx_asm_offsets.asm: obj_int_extract
185 vpx_asm_offsets.asm: $(VP8_PREFIX)common/arm/vpx_asm_offsets.c.o
186         ./obj_int_extract rvds $< $(ADS2GAS) > $@
187 OBJS-yes += $(VP8_PREFIX)common/arm/vpx_asm_offsets.c.o
188 CLEAN-OBJS += vpx_asm_offsets.asm
189 $(filter %$(ASM).o,$(OBJS-yes)): vpx_asm_offsets.asm
190 endif