move segmentation_common to encoder
[libvpx.git] / vp8 / vp8_common.mk
blobdea237377f0c6e97decf09eca7215fe8b8bd251c
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
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 ##
12 #add this file to the installed sources list
13 VP8_COMMON_SRCS-yes += vp8_common.mk
15 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
16 VP8_COMMON_SRCS-yes += common/type_aliases.h
17 VP8_COMMON_SRCS-yes += common/pragmas.h
19 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
20 VP8_COMMON_SRCS-yes += common/preproc.h
21 VP8_COMMON_SRCS-yes += common/vpxerrors.h
23 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
24 VP8_COMMON_SRCS-yes += common/ppflags.h
25 VP8_COMMON_SRCS-yes += common/onyx.h
26 VP8_COMMON_SRCS-yes += common/onyxd.h
28 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
30 VP8_COMMON_SRCS-yes += common/alloccommon.c
31 VP8_COMMON_SRCS-yes += common/blockd.c
32 VP8_COMMON_SRCS-yes += common/coefupdateprobs.h
33 VP8_COMMON_SRCS-yes += common/debugmodes.c
34 VP8_COMMON_SRCS-yes += common/defaultcoefcounts.h
35 VP8_COMMON_SRCS-yes += common/entropy.c
36 VP8_COMMON_SRCS-yes += common/entropymode.c
37 VP8_COMMON_SRCS-yes += common/entropymv.c
38 VP8_COMMON_SRCS-yes += common/extend.c
39 VP8_COMMON_SRCS-yes += common/filter_c.c
40 VP8_COMMON_SRCS-yes += common/findnearmv.c
41 VP8_COMMON_SRCS-yes += common/generic/systemdependent.c
42 VP8_COMMON_SRCS-yes += common/idctllm.c
43 VP8_COMMON_SRCS-yes += common/alloccommon.h
44 VP8_COMMON_SRCS-yes += common/blockd.h
45 VP8_COMMON_SRCS-yes += common/common.h
46 VP8_COMMON_SRCS-yes += common/common_types.h
47 VP8_COMMON_SRCS-yes += common/entropy.h
48 VP8_COMMON_SRCS-yes += common/entropymode.h
49 VP8_COMMON_SRCS-yes += common/entropymv.h
50 VP8_COMMON_SRCS-yes += common/extend.h
51 VP8_COMMON_SRCS-yes += common/findnearmv.h
52 VP8_COMMON_SRCS-yes += common/g_common.h
53 VP8_COMMON_SRCS-yes += common/header.h
54 VP8_COMMON_SRCS-yes += common/idct.h
55 VP8_COMMON_SRCS-yes += common/invtrans.h
56 VP8_COMMON_SRCS-yes += common/loopfilter.h
57 VP8_COMMON_SRCS-yes += common/modecont.h
58 VP8_COMMON_SRCS-yes += common/mv.h
59 VP8_COMMON_SRCS-yes += common/onyxc_int.h
60 VP8_COMMON_SRCS-yes += common/predictdc.h
61 VP8_COMMON_SRCS-yes += common/quant_common.h
62 VP8_COMMON_SRCS-yes += common/recon.h
63 VP8_COMMON_SRCS-yes += common/reconinter.h
64 VP8_COMMON_SRCS-yes += common/reconintra.h
65 VP8_COMMON_SRCS-yes += common/reconintra4x4.h
66 VP8_COMMON_SRCS-yes += common/setupintrarecon.h
67 VP8_COMMON_SRCS-yes += common/subpixel.h
68 VP8_COMMON_SRCS-yes += common/swapyv12buffer.h
69 VP8_COMMON_SRCS-yes += common/systemdependent.h
70 VP8_COMMON_SRCS-yes += common/threading.h
71 VP8_COMMON_SRCS-yes += common/treecoder.h
72 VP8_COMMON_SRCS-yes += common/invtrans.c
73 VP8_COMMON_SRCS-yes += common/loopfilter.c
74 VP8_COMMON_SRCS-yes += common/loopfilter_filters.c
75 VP8_COMMON_SRCS-yes += common/mbpitch.c
76 VP8_COMMON_SRCS-yes += common/modecont.c
77 VP8_COMMON_SRCS-yes += common/modecontext.c
78 VP8_COMMON_SRCS-yes += common/predictdc.c
79 VP8_COMMON_SRCS-yes += common/quant_common.c
80 VP8_COMMON_SRCS-yes += common/recon.c
81 VP8_COMMON_SRCS-yes += common/reconinter.c
82 VP8_COMMON_SRCS-yes += common/reconintra.c
83 VP8_COMMON_SRCS-yes += common/reconintra4x4.c
84 VP8_COMMON_SRCS-yes += common/setupintrarecon.c
85 VP8_COMMON_SRCS-yes += common/swapyv12buffer.c
86 VP8_COMMON_SRCS-yes += common/textblit.c
87 VP8_COMMON_SRCS-yes += common/treecoder.c
89 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/idct_x86.h
90 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/subpixel_x86.h
91 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/recon_x86.h
92 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.h
93 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/postproc_x86.h
94 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/x86_systemdependent.c
95 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp8_asm_stubs.c
96 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.c
97 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.h
98 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.c
99 VP8_COMMON_SRCS-$(CONFIG_VP8_ENCODER) += common/postproc.h
100 VP8_COMMON_SRCS-$(CONFIG_VP8_ENCODER) += common/postproc.c
101 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/idctllm_mmx.asm
102 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/iwalsh_mmx.asm
103 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/recon_mmx.asm
104 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/subpixel_mmx.asm
105 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/loopfilter_mmx.asm
106 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_sse2.asm
107 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/subpixel_sse2.asm
108 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_sse2.asm
109 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/iwalsh_sse2.asm
110 VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/subpixel_ssse3.asm
111 ifeq ($(CONFIG_POSTPROC),yes)
112 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/postproc_mmx.asm
113 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/postproc_sse2.asm
114 endif
116 # common (c)
117 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/bilinearfilter_arm.c
118 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/filter_arm.c
119 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/loopfilter_arm.c
120 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/recon_arm.c
121 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/reconintra4x4_arm.c
122 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/reconintra_arm.c
123 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/systemdependent.c
124 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/vpx_asm_offsets.c
126 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6) += common/filter_c.c
127 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6) += common/idctllm.c
128 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6) += common/recon.c
129 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6) += common/reconintra4x4.c
130 VP8_COMMON_SRCS_REMOVE-$(HAVE_ARMV6) += common/generic/systemdependent.c
132 # common (armv6)
133 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/bilinearfilter_v6$(ASM)
134 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/copymem8x4_v6$(ASM)
135 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/copymem8x8_v6$(ASM)
136 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/copymem16x16_v6$(ASM)
137 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/dc_only_idct_add_v6$(ASM)
138 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/iwalsh_v6$(ASM)
139 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/filter_v6$(ASM)
140 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/idct_v6$(ASM)
141 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/loopfilter_v6$(ASM)
142 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/recon_v6$(ASM)
143 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/simpleloopfilter_v6$(ASM)
144 VP8_COMMON_SRCS-$(HAVE_ARMV6) += common/arm/armv6/sixtappredict8x4_v6$(ASM)
146 # common (neon)
147 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/bilinearpredict4x4_neon$(ASM)
148 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/bilinearpredict8x4_neon$(ASM)
149 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/bilinearpredict8x8_neon$(ASM)
150 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/bilinearpredict16x16_neon$(ASM)
151 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/copymem8x4_neon$(ASM)
152 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/copymem8x8_neon$(ASM)
153 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/copymem16x16_neon$(ASM)
154 VP8_COMMON_SRCS-$(HAVE_ARMV7) += common/arm/neon/dc_only_idct_add_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)
181 # Rule to extract assembly constants from C sources
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