From e39de8d40483f4a00930d9565ae6996142fb4fed Mon Sep 17 00:00:00 2001 From: Licai Guo Date: Tue, 18 Mar 2014 19:41:32 -0700 Subject: [PATCH 1/2] reoranize common to inc/src/x86/arm --- codec/build/android/dec/jni/welsdecdemo.mk | 4 +- codec/build/android/enc/jni/welsencdemo.mk | 4 +- codec/build/win32/dec/WelsDecCore.vcproj | 118 ++++++------- codec/build/win32/dec/WelsDecPlus.vcproj | 8 +- codec/build/win32/dec/decConsole.vcproj | 10 +- codec/build/win32/enc/WelsEncCore.vcproj | 164 +++++++++--------- codec/build/win32/enc/WelsEncPlus.vcproj | 8 +- codec/build/win32/enc/encConsole.vcproj | 10 +- .../common/{ => arm}/arm_arch_common_macro.S | 0 codec/common/{ => arm}/deblocking_neon.S | 0 codec/common/{ => arm}/expand_picture_neon.S | 0 codec/common/{ => arm}/mc_neon.S | 0 codec/common/{ => inc}/WelsThreadLib.h | 0 codec/common/{ => inc}/cpu.h | 0 codec/common/{ => inc}/cpu_core.h | 0 codec/common/{ => inc}/crt_util_safe_x.h | 0 codec/common/{ => inc}/deblocking_common.h | 0 .../common/{ => inc}/expand_picture_common.h | 0 codec/common/{ => inc}/logging.h | 0 codec/common/{ => inc}/ls_defines.h | 0 codec/common/{ => inc}/macros.h | 0 codec/common/{ => inc}/mc_common.h | 0 codec/common/{ => inc}/measure_time.h | 0 codec/common/{ => inc}/typedefs.h | 0 codec/common/{ => src}/WelsThreadLib.cpp | 0 codec/common/{ => src}/cpu.cpp | 0 codec/common/{ => src}/crt_util_safe_x.cpp | 0 codec/common/{ => src}/deblocking_common.cpp | 0 codec/common/{ => src}/logging.cpp | 0 codec/common/targets.mk | 32 ++-- codec/common/{ => x86}/asm_inc.asm | 0 codec/common/{ => x86}/cpuid.asm | 0 codec/common/{ => x86}/deblock.asm | 0 codec/common/{ => x86}/expand_picture.asm | 0 codec/common/{ => x86}/mb_copy.asm | 0 codec/common/{ => x86}/mc_chroma.asm | 0 codec/common/{ => x86}/mc_luma.asm | 0 codec/common/{ => x86}/satd_sad.asm | 0 codec/common/{ => x86}/vaa.asm | 0 .../processing/build/win32/WelsVP_2008.vcproj | 56 +++--- 40 files changed, 207 insertions(+), 207 deletions(-) rename codec/common/{ => arm}/arm_arch_common_macro.S (100%) rename codec/common/{ => arm}/deblocking_neon.S (100%) rename codec/common/{ => arm}/expand_picture_neon.S (100%) rename codec/common/{ => arm}/mc_neon.S (100%) rename codec/common/{ => inc}/WelsThreadLib.h (100%) rename codec/common/{ => inc}/cpu.h (100%) rename codec/common/{ => inc}/cpu_core.h (100%) rename codec/common/{ => inc}/crt_util_safe_x.h (100%) rename codec/common/{ => inc}/deblocking_common.h (100%) rename codec/common/{ => inc}/expand_picture_common.h (100%) rename codec/common/{ => inc}/logging.h (100%) rename codec/common/{ => inc}/ls_defines.h (100%) rename codec/common/{ => inc}/macros.h (100%) rename codec/common/{ => inc}/mc_common.h (100%) rename codec/common/{ => inc}/measure_time.h (100%) rename codec/common/{ => inc}/typedefs.h (100%) rename codec/common/{ => src}/WelsThreadLib.cpp (100%) rename codec/common/{ => src}/cpu.cpp (100%) rename codec/common/{ => src}/crt_util_safe_x.cpp (100%) rename codec/common/{ => src}/deblocking_common.cpp (100%) rename codec/common/{ => src}/logging.cpp (100%) rename codec/common/{ => x86}/asm_inc.asm (100%) rename codec/common/{ => x86}/cpuid.asm (100%) rename codec/common/{ => x86}/deblock.asm (100%) rename codec/common/{ => x86}/expand_picture.asm (100%) rename codec/common/{ => x86}/mb_copy.asm (100%) rename codec/common/{ => x86}/mc_chroma.asm (100%) rename codec/common/{ => x86}/mc_luma.asm (100%) rename codec/common/{ => x86}/satd_sad.asm (100%) rename codec/common/{ => x86}/vaa.asm (100%) diff --git a/codec/build/android/dec/jni/welsdecdemo.mk b/codec/build/android/dec/jni/welsdecdemo.mk index a57b1cc8..aed94b10 100644 --- a/codec/build/android/dec/jni/welsdecdemo.mk +++ b/codec/build/android/dec/jni/welsdecdemo.mk @@ -24,7 +24,7 @@ LOCAL_SRC_FILES := \ $(CONSOLE_DEC_PATH)/src/h264dec.cpp \ $(CONSOLE_DEC_PATH)/src/read_config.cpp \ $(CONSOLE_DEC_PATH)/src/d3d9_utils.cpp \ - $(CODEC_PATH)/common/logging.cpp \ + $(CODEC_PATH)/common/src/logging.cpp \ myjni.cpp # # Header Includes @@ -32,7 +32,7 @@ LOCAL_SRC_FILES := \ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../../../../api/svc \ $(LOCAL_PATH)/../../../../console/dec/inc \ - $(LOCAL_PATH)/../../../../common + $(LOCAL_PATH)/../../../../common/inc # # Compile Flags and Link Libraries # diff --git a/codec/build/android/enc/jni/welsencdemo.mk b/codec/build/android/enc/jni/welsencdemo.mk index 6d228bed..6d82817b 100644 --- a/codec/build/android/enc/jni/welsencdemo.mk +++ b/codec/build/android/enc/jni/welsencdemo.mk @@ -23,7 +23,7 @@ CONSOLE_ENC_PATH := ../../../../console/enc LOCAL_SRC_FILES := \ $(CONSOLE_ENC_PATH)/src/welsenc.cpp \ $(CONSOLE_ENC_PATH)/src/read_config.cpp \ - $(CODEC_PATH)/common/logging.cpp \ + $(CODEC_PATH)/common/src/logging.cpp \ myjni.cpp # @@ -34,7 +34,7 @@ LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/../../../../console/enc/inc \ $(LOCAL_PATH)/../../../../encoder/core/inc \ $(LOCAL_PATH)/../../../../processing/interface \ - $(LOCAL_PATH)/../../../../common + $(LOCAL_PATH)/../../../../common/inc # diff --git a/codec/build/win32/dec/WelsDecCore.vcproj b/codec/build/win32/dec/WelsDecCore.vcproj index 0cb87ab6..e6a2d39c 100644 --- a/codec/build/win32/dec/WelsDecCore.vcproj +++ b/codec/build/win32/dec/WelsDecCore.vcproj @@ -53,7 +53,7 @@ Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" - AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" + AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" PreprocessorDefinitions="WIN32;NDEBUG;_LIB;X86_ASM;HAVE_CACHE_LINE_ALIGN" StringPooling="true" RuntimeLibrary="2" @@ -133,7 +133,7 @@ Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" - AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" + AdditionalIncludeDirectories="..\..\..\decoder\core\inc;..\..\..\common\inc;..\..\..\api\svc;..\..\..\hwDecoder\core\inc;..\..\..\hwDecoder\dxva\inc" PreprocessorDefinitions="WIN64;NDEBUG;_LIB;HAVE_CACHE_LINE_ALIGN;X86_ASM" StringPooling="true" RuntimeLibrary="2" @@ -211,7 +211,7 @@ @@ -365,7 +365,7 @@ > @@ -374,7 +374,7 @@ > @@ -383,20 +383,20 @@ > @@ -405,7 +405,7 @@ > @@ -414,7 +414,7 @@ > @@ -423,7 +423,7 @@ > @@ -436,7 +436,7 @@ > @@ -445,7 +445,7 @@ > @@ -454,7 +454,7 @@ > @@ -463,20 +463,20 @@ > @@ -485,7 +485,7 @@ > @@ -494,7 +494,7 @@ > @@ -503,20 +503,20 @@ > @@ -525,7 +525,7 @@ > @@ -534,7 +534,7 @@ > @@ -543,7 +543,7 @@ > @@ -556,7 +556,7 @@ > @@ -565,7 +565,7 @@ > @@ -574,7 +574,7 @@ > @@ -583,20 +583,20 @@ > @@ -605,7 +605,7 @@ > @@ -614,7 +614,7 @@ > @@ -623,20 +623,20 @@ > @@ -645,7 +645,7 @@ > @@ -654,7 +654,7 @@ > @@ -663,20 +663,20 @@ > @@ -685,7 +685,7 @@ > @@ -694,7 +694,7 @@ > @@ -703,7 +703,7 @@ > @@ -726,11 +726,11 @@ > @@ -1445,11 +1445,11 @@ > @@ -1677,7 +1677,7 @@ > @@ -1686,7 +1686,7 @@ > @@ -1695,7 +1695,7 @@ > @@ -1704,13 +1704,13 @@ > @@ -1735,7 +1735,7 @@ > @@ -1744,7 +1744,7 @@ > @@ -1757,7 +1757,7 @@ > @@ -1766,7 +1766,7 @@ > @@ -1775,7 +1775,7 @@ > @@ -1784,20 +1784,20 @@ > @@ -1806,7 +1806,7 @@ > @@ -1815,7 +1815,7 @@ > @@ -1824,20 +1824,20 @@ > @@ -1846,7 +1846,7 @@ > @@ -1855,7 +1855,7 @@ > @@ -1864,7 +1864,7 @@ > @@ -1877,7 +1877,7 @@ > @@ -1886,7 +1886,7 @@ > @@ -1895,7 +1895,7 @@ > @@ -1904,20 +1904,20 @@ > @@ -1926,7 +1926,7 @@ > @@ -1935,7 +1935,7 @@ > @@ -1944,20 +1944,20 @@ > @@ -1966,7 +1966,7 @@ > @@ -1975,7 +1975,7 @@ > @@ -1984,20 +1984,20 @@ > @@ -2006,7 +2006,7 @@ > @@ -2015,7 +2015,7 @@ > @@ -2024,7 +2024,7 @@ > @@ -2037,7 +2037,7 @@ > @@ -2046,7 +2046,7 @@ > @@ -2055,7 +2055,7 @@ > @@ -2064,7 +2064,7 @@ > @@ -2077,7 +2077,7 @@ > @@ -2086,7 +2086,7 @@ > @@ -2095,7 +2095,7 @@ > @@ -2104,20 +2104,20 @@ > @@ -2126,7 +2126,7 @@ > @@ -2135,7 +2135,7 @@ > @@ -2144,7 +2144,7 @@ > @@ -2157,7 +2157,7 @@ > @@ -2166,7 +2166,7 @@ > @@ -2175,7 +2175,7 @@ > @@ -2184,20 +2184,20 @@ > @@ -2206,7 +2206,7 @@ > @@ -2215,7 +2215,7 @@ > @@ -2224,7 +2224,7 @@ > diff --git a/codec/build/win32/enc/WelsEncPlus.vcproj b/codec/build/win32/enc/WelsEncPlus.vcproj index 3e4fdd24..4799ba4c 100644 --- a/codec/build/win32/enc/WelsEncPlus.vcproj +++ b/codec/build/win32/enc/WelsEncPlus.vcproj @@ -52,7 +52,7 @@ @@ -508,7 +508,7 @@ > @@ -521,7 +521,7 @@ > @@ -530,7 +530,7 @@ > @@ -539,7 +539,7 @@ > @@ -548,7 +548,7 @@ > @@ -561,7 +561,7 @@ > @@ -570,7 +570,7 @@ > @@ -579,7 +579,7 @@ > @@ -588,20 +588,20 @@ > @@ -610,7 +610,7 @@ > @@ -619,7 +619,7 @@ > @@ -628,7 +628,7 @@ > @@ -641,7 +641,7 @@ > @@ -650,7 +650,7 @@ > @@ -659,7 +659,7 @@ > @@ -668,7 +668,7 @@ > From 31a93de513674bb1a166490ec8d824cadc0c4a97 Mon Sep 17 00:00:00 2001 From: Licai Guo Date: Tue, 18 Mar 2014 19:47:26 -0700 Subject: [PATCH 2/2] add missing build files --- Makefile | 6 ++---- build/platform-arch.mk | 1 + build/platform-x86-common.mk | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b7583ddd..6b058396 100644 --- a/Makefile +++ b/Makefile @@ -57,9 +57,7 @@ ifneq ($(V),Yes) endif -INCLUDES = -Icodec/api/svc -Icodec/common -#ASM_INCLUDES = -Iprocessing/src/asm/ -ASM_INCLUDES = -Icodec/common/ +INCLUDES = -Icodec/api/svc -Icodec/common/inc DECODER_INCLUDES = \ -Icodec/decoder/core/inc \ @@ -81,7 +79,7 @@ GTEST_INCLUDES += \ CODEC_UNITTEST_INCLUDES += \ -Igtest/include \ -Icodec/processing/interface \ - -Icodec/common \ + -Icodec/common/inc \ -Icodec/encoder/core/inc H264DEC_INCLUDES = $(DECODER_INCLUDES) -Icodec/console/dec/inc diff --git a/build/platform-arch.mk b/build/platform-arch.mk index ae50b485..82dc0d33 100644 --- a/build/platform-arch.mk +++ b/build/platform-arch.mk @@ -4,6 +4,7 @@ endif ifneq ($(filter-out arm64, $(filter arm%, $(ARCH))),) ifeq ($(USE_ASM), Yes) ASM_ARCH = arm +ASMFLAGS += -Icodec/common/arm/ CFLAGS += -DHAVE_NEON endif endif diff --git a/build/platform-x86-common.mk b/build/platform-x86-common.mk index 49eca4a5..b5730459 100644 --- a/build/platform-x86-common.mk +++ b/build/platform-x86-common.mk @@ -1,5 +1,6 @@ CFLAGS_M32=-m32 CFLAGS_M64=-m64 +ASM_INCLUDES = -Icodec/common/x86/ ifeq (, $(ENABLE64BIT)) ifeq ($(ARCH), x86_64) ENABLE64BIT=Yes