2010-05-18 19:58:33 +04:00
|
|
|
##
|
2010-09-09 16:16:39 +04:00
|
|
|
## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 19:58:33 +04:00
|
|
|
##
|
2010-06-18 20:39:21 +04:00
|
|
|
## Use of this source code is governed by a BSD-style license
|
2010-06-05 00:19:40 +04:00
|
|
|
## that can be found in the LICENSE file in the root of the source
|
|
|
|
## tree. An additional intellectual property rights grant can be found
|
2010-06-18 20:39:21 +04:00
|
|
|
## in the file PATENTS. All contributing project authors may
|
2010-06-05 00:19:40 +04:00
|
|
|
## be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 19:58:33 +04:00
|
|
|
##
|
|
|
|
|
|
|
|
VP8_COMMON_SRCS-yes += vp8_common.mk
|
|
|
|
VP8_COMMON_SRCS-yes += common/pragmas.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/ppflags.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/onyx.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/onyxd.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/alloccommon.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/blockd.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/coefupdateprobs.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/debugmodes.c
|
2011-09-22 19:08:21 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/default_coef_probs.h
|
2011-12-15 23:23:36 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/dequantize.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/entropy.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/entropymode.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/entropymv.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/extend.c
|
2011-02-08 21:54:22 +03:00
|
|
|
VP8_COMMON_SRCS-yes += common/filter.c
|
2011-03-09 21:43:31 +03:00
|
|
|
VP8_COMMON_SRCS-yes += common/filter.h
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/findnearmv.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/generic/systemdependent.c
|
2011-12-15 23:23:36 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/idct_blk.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/idctllm.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/alloccommon.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/blockd.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/common.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/entropy.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/entropymode.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/entropymv.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/extend.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/findnearmv.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/header.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/invtrans.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/loopfilter.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/modecont.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/mv.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/onyxc_int.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/quant_common.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/reconinter.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/reconintra4x4.h
|
New RTCD implementation
This is a proof of concept RTCD implementation to replace the current
system of nested includes, prototypes, INVOKE macros, etc. Currently
only the decoder specific functions are implemented in the new system.
Additional functions will be added in subsequent commits.
Overview:
RTCD "functions" are implemented as either a global function pointer
or a macro (when only one eligible specialization available).
Functions which have RTCD specializations are listed using a simple
DSL identifying the function's base name, its prototype, and the
architecture extensions that specializations are available for.
Advantages over the old system:
- No INVOKE macros. A call to an RTCD function looks like an ordinary
function call.
- No need to pass vtables around.
- If there is only one eligible function to call, the function is
called directly, rather than indirecting through a function pointer.
- Supports the notion of "required" extensions, so in combination with
the above, on x86_64 if the best function available is sse2 or lower
it will be called directly, since all x86_64 platforms implement
sse2.
- Elides all references to functions which will never be called, which
could reduce binary size. For example if sse2 is required and there
are both mmx and sse2 implementations of a certain function, the
code will have no link time references to the mmx code.
- Significantly easier to add a new function, just one file to edit.
Disadvantages:
- Requires global writable data (though this is not a new requirement)
- 1 new generated source file.
Change-Id: Iae6edab65315f79c168485c96872641c5aa09d55
2011-08-19 22:06:00 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/rtcd.c
|
2014-02-24 04:33:14 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/rtcd_defs.pl
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/setupintrarecon.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/swapyv12buffer.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/systemdependent.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/threading.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/treecoder.h
|
|
|
|
VP8_COMMON_SRCS-yes += common/loopfilter.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/loopfilter_filters.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/mbpitch.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/modecont.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/quant_common.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/reconinter.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/reconintra.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/reconintra4x4.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/sad_c.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/setupintrarecon.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/swapyv12buffer.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/variance_c.c
|
|
|
|
VP8_COMMON_SRCS-yes += common/variance.h
|
2012-04-20 01:35:20 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/vp8_entropymodedata.h
|
2011-12-15 23:23:36 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-03-18 00:07:59 +03:00
|
|
|
VP8_COMMON_SRCS-$(CONFIG_POSTPROC_VISUALIZER) += common/textblit.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-yes += common/treecoder.c
|
|
|
|
|
2011-11-18 23:50:13 +04:00
|
|
|
VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/filter_x86.c
|
|
|
|
VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/filter_x86.h
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/vp8_asm_stubs.c
|
|
|
|
VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/loopfilter_x86.c
|
2012-01-27 22:23:52 +04:00
|
|
|
VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/mfqe.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.h
|
|
|
|
VP8_COMMON_SRCS-$(CONFIG_POSTPROC) += common/postproc.c
|
2011-12-15 23:23:36 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/dequantize_mmx.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/idct_blk_mmx.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/idctllm_mmx.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/iwalsh_mmx.asm
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/loopfilter_mmx.asm
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/recon_mmx.asm
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/sad_mmx.asm
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/subpixel_mmx.asm
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/variance_mmx.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/variance_impl_mmx.asm
|
2011-12-15 23:23:36 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/idct_blk_sse2.c
|
2010-08-20 21:58:19 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/idctllm_sse2.asm
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_sse2.asm
|
2011-04-27 21:05:10 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/recon_wrapper_sse2.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/sad_sse2.asm
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/subpixel_sse2.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_sse2.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/iwalsh_sse2.asm
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/variance_sse2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/variance_impl_sse2.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE3) += common/x86/sad_sse3.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/sad_ssse3.asm
|
2010-08-19 23:50:29 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/subpixel_ssse3.asm
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/variance_ssse3.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSSE3) += common/x86/variance_impl_ssse3.asm
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE4_1) += common/x86/sad_sse4.asm
|
|
|
|
|
2010-05-18 19:58:33 +04:00
|
|
|
ifeq ($(CONFIG_POSTPROC),yes)
|
2012-02-12 08:57:13 +04:00
|
|
|
VP8_COMMON_SRCS-$(ARCH_X86)$(ARCH_X86_64) += common/x86/postproc_x86.c
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MMX) += common/x86/postproc_mmx.asm
|
2012-01-27 22:23:52 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/mfqe_sse2.asm
|
2010-05-18 19:58:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/postproc_sse2.asm
|
|
|
|
endif
|
2012-03-06 04:50:33 +04:00
|
|
|
|
2011-09-27 04:17:20 +04:00
|
|
|
ifeq ($(ARCH_X86_64),yes)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_SSE2) += common/x86/loopfilter_block_sse2.asm
|
|
|
|
endif
|
2010-05-18 19:58:33 +04:00
|
|
|
|
2012-04-11 20:53:15 +04:00
|
|
|
# common (c)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/idctllm_dspr2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/filter_dspr2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/loopfilter_filters_dspr2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/reconinter_dspr2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/idct_blk_dspr2.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_DSPR2) += common/mips/dspr2/dequantize_dspr2.c
|
|
|
|
|
2011-06-15 14:17:40 +04:00
|
|
|
# common (c)
|
|
|
|
VP8_COMMON_SRCS-$(ARCH_ARM) += common/arm/filter_arm.c
|
|
|
|
VP8_COMMON_SRCS-$(ARCH_ARM) += common/arm/loopfilter_arm.c
|
|
|
|
VP8_COMMON_SRCS-$(ARCH_ARM) += common/arm/reconintra_arm.c
|
2011-12-15 23:23:36 +04:00
|
|
|
VP8_COMMON_SRCS-$(ARCH_ARM) += common/arm/dequantize_arm.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(ARCH_ARM) += common/arm/variance_arm.c
|
2010-05-18 19:58:33 +04:00
|
|
|
|
2012-01-20 03:18:31 +04:00
|
|
|
# common (media)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/bilinearfilter_arm.c
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/bilinearfilter_arm.h
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/bilinearfilter_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/copymem8x4_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/copymem8x8_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/copymem16x16_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/dc_only_idct_add_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/iwalsh_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/filter_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/idct_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/loopfilter_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/simpleloopfilter_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/sixtappredict8x4_v6$(ASM)
|
2012-08-03 03:09:12 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/intra4x4_predict_v6$(ASM)
|
2012-01-20 03:18:31 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/dequant_idct_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/dequantize_v6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/idct_blk_v6.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_sad16x16_armv6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_variance8x8_armv6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_variance16x16_armv6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_variance_halfpixvar16x16_h_armv6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_variance_halfpixvar16x16_v_armv6$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_MEDIA) += common/arm/armv6/vp8_variance_halfpixvar16x16_hv_armv6$(ASM)
|
2010-05-18 19:58:33 +04:00
|
|
|
|
|
|
|
# common (neon)
|
2012-01-20 03:18:31 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/iwalsh_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/loopfilter_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/loopfiltersimplehorizontaledge_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/loopfiltersimpleverticaledge_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/mbloopfilter_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/shortidct4x4llm_neon$(ASM)
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sad8_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sad16_neon$(ASM)
|
2012-01-20 03:18:31 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sixtappredict4x4_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sixtappredict8x4_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sixtappredict8x8_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/sixtappredict16x16_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/buildintrapredictorsmby_neon$(ASM)
|
2012-01-26 11:42:15 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/save_reg_neon$(ASM)
|
2012-01-20 03:18:31 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/idct_dequant_full_2x_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/idct_dequant_0_2x_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/idct_blk_neon.c
|
2012-03-06 04:50:33 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/variance_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/vp8_subpixelvariance8x8_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/vp8_subpixelvariance16x16_neon$(ASM)
|
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/vp8_subpixelvariance16x16s_neon$(ASM)
|
2012-11-07 04:59:01 +04:00
|
|
|
|
2013-12-17 14:23:38 +04:00
|
|
|
# common (neon intrinsics)
|
2014-01-11 00:16:59 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/bilinearpredict_neon.c
|
2013-12-17 14:28:11 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/copymem_neon.c
|
2013-12-17 15:03:16 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/dc_only_idct_add_neon.c
|
2013-12-17 15:06:31 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/dequant_idct_neon.c
|
2013-12-17 17:18:57 +04:00
|
|
|
VP8_COMMON_SRCS-$(HAVE_NEON) += common/arm/neon/dequantizeb_neon.c
|
2013-12-17 14:23:38 +04:00
|
|
|
|
|
|
|
|
2014-02-24 04:33:14 +04:00
|
|
|
$(eval $(call rtcd_h_template,vp8_rtcd,vp8/common/rtcd_defs.pl))
|