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
11VP9_CX_EXPORTS += exports_enc
12
13VP9_CX_SRCS-yes += $(VP9_COMMON_SRCS-yes)
14VP9_CX_SRCS-no  += $(VP9_COMMON_SRCS-no)
15VP9_CX_SRCS_REMOVE-yes += $(VP9_COMMON_SRCS_REMOVE-yes)
16VP9_CX_SRCS_REMOVE-no  += $(VP9_COMMON_SRCS_REMOVE-no)
17
18VP9_CX_SRCS-yes += vp9_cx_iface.c
19
20VP9_CX_SRCS-yes += encoder/vp9_bitstream.c
21VP9_CX_SRCS-yes += encoder/vp9_cost.h
22VP9_CX_SRCS-yes += encoder/vp9_cost.c
23VP9_CX_SRCS-yes += encoder/vp9_dct.c
24VP9_CX_SRCS-yes += encoder/vp9_encodeframe.c
25VP9_CX_SRCS-yes += encoder/vp9_encodeframe.h
26VP9_CX_SRCS-yes += encoder/vp9_encodemb.c
27VP9_CX_SRCS-yes += encoder/vp9_encodemv.c
28VP9_CX_SRCS-yes += encoder/vp9_extend.c
29VP9_CX_SRCS-yes += encoder/vp9_firstpass.c
30VP9_CX_SRCS-yes += encoder/vp9_block.h
31VP9_CX_SRCS-yes += encoder/vp9_writer.h
32VP9_CX_SRCS-yes += encoder/vp9_writer.c
33VP9_CX_SRCS-yes += encoder/vp9_write_bit_buffer.c
34VP9_CX_SRCS-yes += encoder/vp9_write_bit_buffer.h
35VP9_CX_SRCS-yes += encoder/vp9_bitstream.h
36VP9_CX_SRCS-yes += encoder/vp9_encodemb.h
37VP9_CX_SRCS-yes += encoder/vp9_encodemv.h
38VP9_CX_SRCS-yes += encoder/vp9_extend.h
39VP9_CX_SRCS-yes += encoder/vp9_firstpass.h
40VP9_CX_SRCS-yes += encoder/vp9_lookahead.c
41VP9_CX_SRCS-yes += encoder/vp9_lookahead.h
42VP9_CX_SRCS-yes += encoder/vp9_mcomp.h
43VP9_CX_SRCS-yes += encoder/vp9_onyx_int.h
44VP9_CX_SRCS-yes += encoder/vp9_quantize.h
45VP9_CX_SRCS-yes += encoder/vp9_ratectrl.h
46VP9_CX_SRCS-yes += encoder/vp9_rdopt.h
47VP9_CX_SRCS-yes += encoder/vp9_pickmode.h
48VP9_CX_SRCS-yes += encoder/vp9_svc_layercontext.h
49VP9_CX_SRCS-yes += encoder/vp9_tokenize.h
50VP9_CX_SRCS-yes += encoder/vp9_treewriter.h
51VP9_CX_SRCS-yes += encoder/vp9_variance.h
52VP9_CX_SRCS-yes += encoder/vp9_mcomp.c
53VP9_CX_SRCS-yes += encoder/vp9_onyx_if.c
54VP9_CX_SRCS-yes += encoder/vp9_picklpf.c
55VP9_CX_SRCS-yes += encoder/vp9_picklpf.h
56VP9_CX_SRCS-yes += encoder/vp9_quantize.c
57VP9_CX_SRCS-yes += encoder/vp9_ratectrl.c
58VP9_CX_SRCS-yes += encoder/vp9_rdopt.c
59VP9_CX_SRCS-yes += encoder/vp9_pickmode.c
60VP9_CX_SRCS-yes += encoder/vp9_sad.c
61VP9_CX_SRCS-yes += encoder/vp9_segmentation.c
62VP9_CX_SRCS-yes += encoder/vp9_segmentation.h
63VP9_CX_SRCS-yes += encoder/vp9_speed_features.c
64VP9_CX_SRCS-yes += encoder/vp9_speed_features.h
65VP9_CX_SRCS-yes += encoder/vp9_subexp.c
66VP9_CX_SRCS-yes += encoder/vp9_subexp.h
67VP9_CX_SRCS-yes += encoder/vp9_svc_layercontext.c
68VP9_CX_SRCS-yes += encoder/vp9_resize.c
69VP9_CX_SRCS-yes += encoder/vp9_resize.h
70VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += encoder/vp9_ssim.c
71VP9_CX_SRCS-yes += encoder/vp9_tokenize.c
72VP9_CX_SRCS-yes += encoder/vp9_treewriter.c
73VP9_CX_SRCS-yes += encoder/vp9_variance.c
74VP9_CX_SRCS-yes += encoder/vp9_aq_variance.c
75VP9_CX_SRCS-yes += encoder/vp9_aq_variance.h
76VP9_CX_SRCS-yes += encoder/vp9_aq_cyclicrefresh.c
77VP9_CX_SRCS-yes += encoder/vp9_aq_cyclicrefresh.h
78VP9_CX_SRCS-yes += encoder/vp9_aq_complexity.c
79VP9_CX_SRCS-yes += encoder/vp9_aq_complexity.h
80ifeq ($(CONFIG_VP9_POSTPROC),yes)
81VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/vp9_postproc.h
82VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/vp9_postproc.c
83endif
84VP9_CX_SRCS-yes += encoder/vp9_temporal_filter.c
85VP9_CX_SRCS-yes += encoder/vp9_temporal_filter.h
86VP9_CX_SRCS-yes += encoder/vp9_mbgraph.c
87VP9_CX_SRCS-yes += encoder/vp9_mbgraph.h
88
89
90VP9_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/vp9_mcomp_x86.h
91VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/vp9_variance_mmx.c
92VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/vp9_variance_impl_mmx.asm
93VP9_CX_SRCS-$(HAVE_MMX) += encoder/x86/vp9_sad_mmx.asm
94VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_variance_impl_sse2.asm
95VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_variance_impl_intrin_avx2.c
96VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_sad4d_sse2.asm
97VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_sad4d_intrin_avx2.c
98VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_subpel_variance_impl_sse2.asm
99VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_subpel_variance_impl_intrin_avx2.c
100VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_temporal_filter_apply_sse2.asm
101VP9_CX_SRCS-$(HAVE_SSE3) += encoder/x86/vp9_sad_sse3.asm
102
103ifeq ($(CONFIG_USE_X86INC),yes)
104VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_error_sse2.asm
105VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_sad_sse2.asm
106VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_subtract_sse2.asm
107VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_variance_sse2.c
108VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_variance_avx2.c
109VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_subpel_variance.asm
110endif
111
112ifeq ($(ARCH_X86_64),yes)
113VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/vp9_quantize_ssse3.asm
114endif
115VP9_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/vp9_sad_ssse3.asm
116VP9_CX_SRCS-$(HAVE_SSE4_1) += encoder/x86/vp9_sad_sse4.asm
117VP9_CX_SRCS-$(ARCH_X86_64) += encoder/x86/vp9_ssim_opt.asm
118
119VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_dct_sse2.c
120VP9_CX_SRCS-$(HAVE_SSE2) += encoder/x86/vp9_dct32x32_sse2.c
121
122VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_dct_avx2.c
123VP9_CX_SRCS-$(HAVE_AVX2) += encoder/x86/vp9_dct32x32_avx2.c
124
125VP9_CX_SRCS-yes := $(filter-out $(VP9_CX_SRCS_REMOVE-yes),$(VP9_CX_SRCS-yes))
126