blob: d46d99df6626188f2ff2956d52a8f48232db6915 [file] [log] [blame]
John Koleszar0ea50ce2010-05-18 11:58:33 -04001##
John Koleszarc2140b82010-09-09 08:16:39 -04002## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar0ea50ce2010-05-18 11:58:33 -04003##
John Koleszar94c52e42010-06-18 12:39:21 -04004## Use of this source code is governed by a BSD-style license
John Koleszar09202d82010-06-04 16:19:40 -04005## 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
John Koleszar94c52e42010-06-18 12:39:21 -04007## in the file PATENTS. All contributing project authors may
John Koleszar09202d82010-06-04 16:19:40 -04008## be found in the AUTHORS file in the root of the source tree.
John Koleszar0ea50ce2010-05-18 11:58:33 -04009##
10
11
12include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8_common.mk
John Koleszar7aa97a32010-06-03 10:29:04 -040013
14VP8_CX_EXPORTS += exports_enc
15
John Koleszar0ea50ce2010-05-18 11:58:33 -040016VP8_CX_SRCS-yes += $(VP8_COMMON_SRCS-yes)
17VP8_CX_SRCS-no += $(VP8_COMMON_SRCS-no)
18VP8_CX_SRCS_REMOVE-yes += $(VP8_COMMON_SRCS_REMOVE-yes)
19VP8_CX_SRCS_REMOVE-no += $(VP8_COMMON_SRCS_REMOVE-no)
20
21ifeq ($(ARCH_ARM),yes)
22 include $(SRC_PATH_BARE)/$(VP8_PREFIX)vp8cx_arm.mk
23endif
24
John Koleszarb7492342010-05-24 11:39:59 -040025VP8_CX_SRCS-yes += vp8_cx_iface.c
John Koleszar0ea50ce2010-05-18 11:58:33 -040026
27# encoder
28#INCLUDES += algo/vpx_common/vpx_mem/include
29#INCLUDES += common
30#INCLUDES += common
31#INCLUDES += common
32#INCLUDES += algo/vpx_ref/cpu_id/include
33#INCLUDES += common
34#INCLUDES += encoder
35
Johann4be062b2011-03-24 18:12:21 -040036VP8_CX_SRCS-yes += encoder/asm_enc_offsets.c
John Koleszar0ea50ce2010-05-18 11:58:33 -040037VP8_CX_SRCS-yes += encoder/bitstream.c
38VP8_CX_SRCS-yes += encoder/boolhuff.c
39VP8_CX_SRCS-yes += encoder/dct.c
40VP8_CX_SRCS-yes += encoder/encodeframe.c
41VP8_CX_SRCS-yes += encoder/encodeintra.c
42VP8_CX_SRCS-yes += encoder/encodemb.c
43VP8_CX_SRCS-yes += encoder/encodemv.c
Gaute Strokkenes315e3c22011-02-05 05:29:25 +000044VP8_CX_SRCS-$(CONFIG_MULTITHREAD) += encoder/ethreading.c
John Koleszar0ea50ce2010-05-18 11:58:33 -040045VP8_CX_SRCS-yes += encoder/firstpass.c
46VP8_CX_SRCS-yes += encoder/generic/csystemdependent.c
47VP8_CX_SRCS-yes += encoder/block.h
48VP8_CX_SRCS-yes += encoder/boolhuff.h
49VP8_CX_SRCS-yes += encoder/bitstream.h
50VP8_CX_SRCS-yes += encoder/dct.h
51VP8_CX_SRCS-yes += encoder/encodeintra.h
52VP8_CX_SRCS-yes += encoder/encodemb.h
53VP8_CX_SRCS-yes += encoder/encodemv.h
54VP8_CX_SRCS-yes += encoder/firstpass.h
John Koleszar88841f12011-04-13 14:00:18 -040055VP8_CX_SRCS-yes += encoder/lookahead.c
56VP8_CX_SRCS-yes += encoder/lookahead.h
John Koleszar0ea50ce2010-05-18 11:58:33 -040057VP8_CX_SRCS-yes += encoder/mcomp.h
58VP8_CX_SRCS-yes += encoder/modecosts.h
59VP8_CX_SRCS-yes += encoder/onyx_int.h
60VP8_CX_SRCS-yes += encoder/pickinter.h
61VP8_CX_SRCS-yes += encoder/psnr.h
62VP8_CX_SRCS-yes += encoder/quantize.h
63VP8_CX_SRCS-yes += encoder/ratectrl.h
64VP8_CX_SRCS-yes += encoder/rdopt.h
65VP8_CX_SRCS-yes += encoder/tokenize.h
66VP8_CX_SRCS-yes += encoder/treewriter.h
67VP8_CX_SRCS-yes += encoder/variance.h
68VP8_CX_SRCS-yes += encoder/mcomp.c
69VP8_CX_SRCS-yes += encoder/modecosts.c
70VP8_CX_SRCS-yes += encoder/onyx_if.c
71VP8_CX_SRCS-yes += encoder/pickinter.c
72VP8_CX_SRCS-yes += encoder/picklpf.c
73VP8_CX_SRCS-yes += encoder/psnr.c
74VP8_CX_SRCS-yes += encoder/quantize.c
75VP8_CX_SRCS-yes += encoder/ratectrl.c
76VP8_CX_SRCS-yes += encoder/rdopt.c
77VP8_CX_SRCS-yes += encoder/sad_c.c
John Koleszar80d39232010-08-13 14:50:51 -040078VP8_CX_SRCS-yes += encoder/segmentation.c
79VP8_CX_SRCS-yes += encoder/segmentation.h
Yaowu Xu57ad1892011-04-29 09:37:59 -070080VP8_CX_SRCS-$(CONFIG_INTERNAL_STATS) += encoder/ssim.c
John Koleszar0ea50ce2010-05-18 11:58:33 -040081VP8_CX_SRCS-yes += encoder/tokenize.c
82VP8_CX_SRCS-yes += encoder/treewriter.c
83VP8_CX_SRCS-yes += encoder/variance_c.c
Yaowu Xu57ad1892011-04-29 09:37:59 -070084VP8_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.h
85VP8_CX_SRCS-$(CONFIG_INTERNAL_STATS) += common/postproc.c
Johanne81e30c2010-10-20 16:27:33 -040086VP8_CX_SRCS-yes += encoder/temporal_filter.c
87VP8_CX_SRCS-yes += encoder/temporal_filter.h
John Koleszar0ea50ce2010-05-18 11:58:33 -040088
89ifeq ($(CONFIG_REALTIME_ONLY),yes)
90VP8_CX_SRCS_REMOVE-yes += encoder/firstpass.c
Attila Nagy7af0d902011-02-22 10:29:23 +020091VP8_CX_SRCS_REMOVE-yes += encoder/temporal_filter.c
John Koleszar0ea50ce2010-05-18 11:58:33 -040092endif
93
94VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/encodemb_x86.h
95VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/dct_x86.h
96VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/mcomp_x86.h
97VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/variance_x86.h
John Koleszar4d86ef32010-06-22 08:44:48 -040098VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/quantize_x86.h
Johann8b0cf5f2010-12-22 11:23:51 -050099VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/temporal_filter_x86.h
John Koleszar0ea50ce2010-05-18 11:58:33 -0400100VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/x86_csystemdependent.c
101VP8_CX_SRCS-$(HAVE_MMX) += encoder/x86/variance_mmx.c
102VP8_CX_SRCS-$(HAVE_MMX) += encoder/x86/variance_impl_mmx.asm
103VP8_CX_SRCS-$(HAVE_MMX) += encoder/x86/sad_mmx.asm
104VP8_CX_SRCS-$(HAVE_MMX) += encoder/x86/dct_mmx.asm
105VP8_CX_SRCS-$(HAVE_MMX) += encoder/x86/subtract_mmx.asm
Scott LaVarnwayf1a3b1e2010-06-24 13:11:30 -0400106VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/dct_sse2.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400107VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/variance_sse2.c
108VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/variance_impl_sse2.asm
109VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/sad_sse2.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400110VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/fwalsh_sse2.asm
Scott LaVarnway48c84d12010-06-14 14:07:56 -0400111VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/quantize_sse2.asm
Yunqing Wang4db20762010-10-18 14:15:15 -0400112VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/subtract_sse2.asm
Johann8b0cf5f2010-12-22 11:23:51 -0500113VP8_CX_SRCS-$(HAVE_SSE2) += encoder/x86/temporal_filter_apply_sse2.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400114VP8_CX_SRCS-$(HAVE_SSE3) += encoder/x86/sad_sse3.asm
115VP8_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/sad_ssse3.asm
Yunqing Wang244e2e12011-03-03 19:02:45 -0500116VP8_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/variance_ssse3.c
117VP8_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/variance_impl_ssse3.asm
Scott LaVarnwayff4a71f2010-11-01 16:24:15 -0400118VP8_CX_SRCS-$(HAVE_SSSE3) += encoder/x86/quantize_ssse3.asm
Yunqing Wang71ecb5d2010-10-27 08:45:24 -0400119VP8_CX_SRCS-$(HAVE_SSE4_1) += encoder/x86/sad_sse4.asm
Johann508ae1b2011-04-13 16:38:02 -0400120VP8_CX_SRCS-$(HAVE_SSE4_1) += encoder/x86/quantize_sse4.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400121VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/quantize_mmx.asm
122VP8_CX_SRCS-$(ARCH_X86)$(ARCH_X86_64) += encoder/x86/encodeopt.asm
John Koleszar5db0eee2011-03-11 11:27:08 -0500123VP8_CX_SRCS-$(ARCH_X86_64) += encoder/x86/ssim_opt.asm
John Koleszar0ea50ce2010-05-18 11:58:33 -0400124
Attila Nagy7af0d902011-02-22 10:29:23 +0200125ifeq ($(CONFIG_REALTIME_ONLY),yes)
126VP8_CX_SRCS_REMOVE-$(HAVE_SSE2) += encoder/x86/temporal_filter_apply_sse2.asm
127endif
128
129
John Koleszar0ea50ce2010-05-18 11:58:33 -0400130VP8_CX_SRCS-yes := $(filter-out $(VP8_CX_SRCS_REMOVE-yes),$(VP8_CX_SRCS-yes))