Rough merge of master into experimental
[platform/upstream/libvpx.git] / vp9 / vp9cx.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_CX_EXPORTS += exports_enc
12
13 VP9_CX_SRCS-yes += $(VP9_COMMON_SRCS-yes)
14 VP9_CX_SRCS-no  += $(VP9_COMMON_SRCS-no)
15 VP9_CX_SRCS_REMOVE-yes += $(VP9_COMMON_SRCS_REMOVE-yes)
16 VP9_CX_SRCS_REMOVE-no  += $(VP9_COMMON_SRCS_REMOVE-no)
17
18 ifeq ($(ARCH_ARM),yes)
19   include $(SRC_PATH_BARE)/$(VP9_PREFIX)vp9cx_arm.mk
20 endif
21
22 VP9_CX_SRCS-yes += vp9_cx_iface.c
23
24 # encoder
25 #INCLUDES += algo/vpx_common/vpx_mem/include
26 #INCLUDES += common
27 #INCLUDES += common
28 #INCLUDES += common
29 #INCLUDES += algo/vpx_ref/cpu_id/include
30 #INCLUDES += common
31 #INCLUDES += encoder
32
33 VP9_CX_SRCS-yes += encoder/asm_enc_offsets.c
34 VP9_CX_SRCS-yes += encoder/bitstream.c
35 VP9_CX_SRCS-yes += encoder/boolhuff.c
36 VP9_CX_SRCS-yes += encoder/dct.c
37 VP9_CX_SRCS-yes += encoder/encodeframe.c
38 VP9_CX_SRCS-yes += encoder/encodeintra.c
39 VP9_CX_SRCS-yes += encoder/encodemb.c
40 VP9_CX_SRCS-yes += encoder/encodemv.c
41 VP9_CX_SRCS-yes += encoder/firstpass.c
42 VP9_CX_SRCS-yes += encoder/generic/csystemdependent.c
43 VP9_CX_SRCS-yes += encoder/block.h
44 VP9_CX_SRCS-yes += encoder/boolhuff.h
45 VP9_CX_SRCS-yes += encoder/bitstream.h
46 VP9_CX_SRCS-yes += encoder/encodeintra.h
47 VP9_CX_SRCS-yes += encoder/encodemb.h
48 VP9_CX_SRCS-yes += encoder/encodemv.h
49 VP9_CX_SRCS-yes += encoder/firstpass.h
50 VP9_CX_SRCS-yes += encoder/lookahead.c
51 VP9_CX_SRCS-yes += encoder/lookahead.h
52 VP9_CX_SRCS-yes += encoder/mcomp.h
53 VP9_CX_SRCS-yes += encoder/modecosts.h
54 VP9_CX_SRCS-yes += encoder/onyx_int.h
55 VP9_CX_SRCS-yes += encoder/psnr.h
56 VP9_CX_SRCS-yes += encoder/quantize.h
57 VP9_CX_SRCS-yes += encoder/ratectrl.h
58 VP9_CX_SRCS-yes += encoder/rdopt.h
59 VP9_CX_SRCS-yes += encoder/tokenize.h
60 VP9_CX_SRCS-yes += encoder/treewriter.h
61 VP9_CX_SRCS-yes += encoder/variance.h
62 VP9_CX_SRCS-yes += encoder/mcomp.c
63 VP9_CX_SRCS-yes += encoder/modecosts.c
64 VP9_CX_SRCS-yes += encoder/onyx_if.c
65 VP9_CX_SRCS-yes += encoder/picklpf.c
66 VP9_CX_SRCS-yes += encoder/psnr.c
67 VP9_CX_SRCS-yes += encoder/quantize.c
68 VP9_CX_SRCS-yes += encoder/ratectrl.c
69 VP9_CX_SRCS-yes += encoder/rdopt.c
70 VP9_CX_SRCS-yes += encoder/sad_c.c
71 VP9_CX_SRCS-yes += encoder/satd_c.c
72 VP9_CX_SRCS-yes += encoder/segmentation.c
73 VP9_CX_SRCS-yes += encoder/segmentation.h
74 VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += encoder/ssim.c
75 VP9_CX_SRCS-yes += encoder/tokenize.c
76 VP9_CX_SRCS-yes += encoder/treewriter.c
77 VP9_CX_SRCS-yes += encoder/variance_c.c
78 ifeq ($(CONFIG_POSTPROC),yes)
79 VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.h
80 VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.c
81 endif
82 VP9_CX_SRCS-yes += encoder/temporal_filter.c
83 VP9_CX_SRCS-yes += encoder/temporal_filter.h
84 VP9_CX_SRCS-yes += encoder/mbgraph.c
85 VP9_CX_SRCS-yes += encoder/mbgraph.h
86
87
88 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/mcomp_x86.h
89 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/quantize_x86.h
90 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/temporal_filter_x86.h
91 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/x86_csystemdependent.c
92 VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/variance_mmx.c
93 VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/variance_impl_mmx.asm
94 VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/sad_mmx.asm
95 VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/dct_mmx.asm
96 VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/subtract_mmx.asm
97 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/dct_sse2.asm
98 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/variance_sse2.c
99 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/variance_impl_sse2.asm
100 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/sad_sse2.asm
101 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/fwalsh_sse2.asm
102 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/quantize_sse2.asm
103 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/subtract_sse2.asm
104 VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/temporal_filter_apply_sse2.asm
105 VP9_CX_SRCS-$(HAVE_SSE3) += encoder/x86/sad_sse3.asm
106 VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/sad_ssse3.asm
107 VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/variance_ssse3.c
108 VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/variance_impl_ssse3.asm
109 VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/quantize_ssse3.asm
110 VP9_CX_SRCS-$(HAVE_SSE4_1) += encoder/x86/sad_sse4.asm
111 VP9_CX_SRCS-$(HAVE_SSE4_1) += encoder/x86/quantize_sse4.asm
112 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/quantize_mmx.asm
113 VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/encodeopt.asm
114 VP9_CX_SRCS-$(ARCH_X86_64) += encoder/x86/ssim_opt.asm
115
116
117 VP9_CX_SRCS-yes := $(filter-out $(VP9_CX_SRCS_REMOVE-yes),$(VP9_CX_SRCS-yes))
118
119 $(eval $(call asm_offsets_template,\
120          vp9_asm_enc_offsets.asm, $(VP9_PREFIX)encoder/asm_enc_offsets.c))