Add psnr/ssim tuning option
[profile/ivi/libvpx.git] / vp8 / vp8_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
12 #add this file to the installed sources list
13 VP8_COMMON_SRCS-yes += vp8_common.mk
14
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
18
19 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
20 VP8_COMMON_SRCS-yes += common/vpxerrors.h
21
22 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
23 VP8_COMMON_SRCS-yes += common/ppflags.h
24 VP8_COMMON_SRCS-yes += common/onyx.h
25 VP8_COMMON_SRCS-yes += common/onyxd.h
26
27 CFLAGS+=-I$(SRC_PATH_BARE)/$(VP8_PREFIX)common
28
29 VP8_COMMON_SRCS-yes += common/alloccommon.c
30 VP8_COMMON_SRCS-yes += common/blockd.c
31 VP8_COMMON_SRCS-yes += common/coefupdateprobs.h
32 VP8_COMMON_SRCS-yes += common/debugmodes.c
33 VP8_COMMON_SRCS-yes += common/defaultcoefcounts.h
34 VP8_COMMON_SRCS-yes += common/entropy.c
35 VP8_COMMON_SRCS-yes += common/entropymode.c
36 VP8_COMMON_SRCS-yes += common/entropymv.c
37 VP8_COMMON_SRCS-yes += common/extend.c
38 VP8_COMMON_SRCS-yes += common/filter_c.c
39 VP8_COMMON_SRCS-yes += common/findnearmv.c
40 VP8_COMMON_SRCS-yes += common/generic/systemdependent.c
41 VP8_COMMON_SRCS-yes += common/idctllm.c
42 VP8_COMMON_SRCS-yes += common/alloccommon.h
43 VP8_COMMON_SRCS-yes += common/blockd.h
44 VP8_COMMON_SRCS-yes += common/common.h
45 VP8_COMMON_SRCS-yes += common/common_types.h
46 VP8_COMMON_SRCS-yes += common/entropy.h
47 VP8_COMMON_SRCS-yes += common/entropymode.h
48 VP8_COMMON_SRCS-yes += common/entropymv.h
49 VP8_COMMON_SRCS-yes += common/extend.h
50 VP8_COMMON_SRCS-yes += common/findnearmv.h
51 VP8_COMMON_SRCS-yes += common/g_common.h
52 VP8_COMMON_SRCS-yes += common/header.h
53 VP8_COMMON_SRCS-yes += common/idct.h
54 VP8_COMMON_SRCS-yes += common/invtrans.h
55 VP8_COMMON_SRCS-yes += common/loopfilter.h
56 VP8_COMMON_SRCS-yes += common/modecont.h
57 VP8_COMMON_SRCS-yes += common/mv.h
58 VP8_COMMON_SRCS-yes += common/onyxc_int.h
59 VP8_COMMON_SRCS-yes += common/predictdc.h
60 VP8_COMMON_SRCS-yes += common/quant_common.h
61 VP8_COMMON_SRCS-yes += common/recon.h
62 VP8_COMMON_SRCS-yes += common/reconinter.h
63 VP8_COMMON_SRCS-yes += common/reconintra.h
64 VP8_COMMON_SRCS-yes += common/reconintra4x4.h
65 VP8_COMMON_SRCS-yes += common/setupintrarecon.h
66 VP8_COMMON_SRCS-yes += common/subpixel.h
67 VP8_COMMON_SRCS-yes += common/swapyv12buffer.h
68 VP8_COMMON_SRCS-yes += common/systemdependent.h
69 VP8_COMMON_SRCS-yes += common/threading.h
70 VP8_COMMON_SRCS-yes += common/treecoder.h
71 VP8_COMMON_SRCS-yes += common/invtrans.c
72 VP8_COMMON_SRCS-yes += common/loopfilter.c
73 VP8_COMMON_SRCS-yes += common/loopfilter_filters.c
74 VP8_COMMON_SRCS-yes += common/mbpitch.c
75 VP8_COMMON_SRCS-yes += common/modecont.c
76 VP8_COMMON_SRCS-yes += common/modecontext.c
77 VP8_COMMON_SRCS-yes += common/predictdc.c
78 VP8_COMMON_SRCS-yes += common/quant_common.c
79 VP8_COMMON_SRCS-yes += common/recon.c
80 VP8_COMMON_SRCS-yes += common/reconinter.c
81 VP8_COMMON_SRCS-yes += common/reconintra.c
82 VP8_COMMON_SRCS-yes += common/reconintra4x4.c
83 VP8_COMMON_SRCS-yes += common/setupintrarecon.c
84 VP8_COMMON_SRCS-yes += common/swapyv12buffer.c
85 VP8_COMMON_SRCS-yes += common/textblit.c
86 VP8_COMMON_SRCS-yes += common/treecoder.c
87
88 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/idct_x86.h
89 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/subpixel_x86.h
90 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/recon_x86.h
91 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.h
92 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/postproc_x86.h
93 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/x86_systemdependent.c
94 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp8_asm_stubs.c
95 VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.c
96 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.h
97 VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.c
98 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/idctllm_mmx.asm
99 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/iwalsh_mmx.asm
100 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/recon_mmx.asm
101 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/subpixel_mmx.asm
102 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/loopfilter_mmx.asm
103 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/idctllm_sse2.asm
104 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_sse2.asm
105 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/subpixel_sse2.asm
106 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_sse2.asm
107 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/iwalsh_sse2.asm
108 VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/subpixel_ssse3.asm
109 ifeq ($(CONFIG_POSTPROC),yes)
110 VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/postproc_mmx.asm
111 VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/postproc_sse2.asm
112 endif
113
114 VP8_COMMON_SRCS-$(ARCH_ARM)  += common/arm/arm_systemdependent.c
115
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/reconintra_arm.c
121 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/vpx_asm_offsets.c
122
123 # common (armv6)
124 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/bilinearfilter_v6$(ASM)
125 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x4_v6$(ASM)
126 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem8x8_v6$(ASM)
127 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/copymem16x16_v6$(ASM)
128 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/dc_only_idct_add_v6$(ASM)
129 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/iwalsh_v6$(ASM)
130 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/filter_v6$(ASM)
131 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/idct_v6$(ASM)
132 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/loopfilter_v6$(ASM)
133 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/recon_v6$(ASM)
134 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/simpleloopfilter_v6$(ASM)
135 VP8_COMMON_SRCS-$(HAVE_ARMV6)  += common/arm/armv6/sixtappredict8x4_v6$(ASM)
136
137 # common (neon)
138 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict4x4_neon$(ASM)
139 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x4_neon$(ASM)
140 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict8x8_neon$(ASM)
141 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/bilinearpredict16x16_neon$(ASM)
142 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x4_neon$(ASM)
143 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem8x8_neon$(ASM)
144 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/copymem16x16_neon$(ASM)
145 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/dc_only_idct_add_neon$(ASM)
146 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/iwalsh_neon$(ASM)
147 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfilter_neon$(ASM)
148 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimplehorizontaledge_neon$(ASM)
149 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/loopfiltersimpleverticaledge_neon$(ASM)
150 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/mbloopfilter_neon$(ASM)
151 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon2b_neon$(ASM)
152 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon4b_neon$(ASM)
153 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/reconb_neon$(ASM)
154 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_1_neon$(ASM)
155 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/shortidct4x4llm_neon$(ASM)
156 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict4x4_neon$(ASM)
157 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x4_neon$(ASM)
158 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict8x8_neon$(ASM)
159 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/sixtappredict16x16_neon$(ASM)
160 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon16x16mb_neon$(ASM)
161 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/buildintrapredictorsmby_neon$(ASM)
162 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/save_neon_reg$(ASM)
163 VP8_COMMON_SRCS-$(HAVE_ARMV7)  += common/arm/neon/recon_neon.c
164
165
166 #
167 # Rule to extract assembly constants from C sources
168 #
169 ifeq ($(ARCH_ARM),yes)
170 vpx_asm_offsets.asm: obj_int_extract
171 vpx_asm_offsets.asm: $(VP8_PREFIX)common/arm/vpx_asm_offsets.c.o
172         ./obj_int_extract rvds $< $(ADS2GAS) > $@
173 OBJS-yes += $(VP8_PREFIX)common/arm/vpx_asm_offsets.c.o
174 CLEAN-OBJS += vpx_asm_offsets.asm
175 $(filter %$(ASM).o,$(OBJS-yes)): vpx_asm_offsets.asm
176 endif