2014-01-03 14:49:45 +08:00
|
|
|
PROCESSING_SRCDIR=codec/processing
|
2013-12-10 16:19:42 +08:00
|
|
|
PROCESSING_CPP_SRCS=\
|
2014-01-24 14:35:38 +02:00
|
|
|
$(PROCESSING_SRCDIR)/src/adaptivequantization/AdaptiveQuantization.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/backgrounddetection/BackgroundDetection.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/common/memory.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/common/WelsFrameWork.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/common/WelsFrameWorkEx.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/complexityanalysis/ComplexityAnalysis.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/denoise/denoise.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/denoise/denoise_filter.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/downsample/downsample.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/downsample/downsamplefuncs.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/imagerotate/imagerotate.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/imagerotate/imagerotatefuncs.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/scenechangedetection/SceneChangeDetection.cpp\
|
2014-04-04 16:03:58 +08:00
|
|
|
$(PROCESSING_SRCDIR)/src/scrolldetection/ScrollDetection.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/scrolldetection/ScrollDetectionFuncs.cpp\
|
2014-01-24 14:35:38 +02:00
|
|
|
$(PROCESSING_SRCDIR)/src/vaacalc/vaacalcfuncs.cpp\
|
|
|
|
$(PROCESSING_SRCDIR)/src/vaacalc/vaacalculation.cpp\
|
2013-12-10 16:19:42 +08:00
|
|
|
|
2014-03-18 11:21:46 +02:00
|
|
|
PROCESSING_OBJS += $(PROCESSING_CPP_SRCS:.cpp=.$(OBJ))
|
2014-02-12 22:11:05 +02:00
|
|
|
|
2013-12-10 16:19:42 +08:00
|
|
|
PROCESSING_ASM_SRCS=\
|
2014-03-18 15:59:42 +02:00
|
|
|
$(PROCESSING_SRCDIR)/src/x86/denoisefilter.asm\
|
|
|
|
$(PROCESSING_SRCDIR)/src/x86/downsample_bilinear.asm\
|
|
|
|
$(PROCESSING_SRCDIR)/src/x86/vaa.asm\
|
2013-12-10 16:19:42 +08:00
|
|
|
|
2014-09-12 10:25:46 +08:00
|
|
|
PROCESSING_OBJSASM += $(PROCESSING_ASM_SRCS:.asm=.$(OBJ))
|
|
|
|
ifeq ($(ASM_ARCH), x86)
|
|
|
|
PROCESSING_OBJS += $(PROCESSING_OBJSASM)
|
2013-12-10 16:19:42 +08:00
|
|
|
endif
|
2014-09-12 10:25:46 +08:00
|
|
|
OBJS += $(PROCESSING_OBJSASM)
|
2013-12-10 16:19:42 +08:00
|
|
|
|
2014-04-23 10:44:44 +03:00
|
|
|
PROCESSING_ASM_ARM_SRCS=\
|
2014-03-05 11:16:36 +02:00
|
|
|
$(PROCESSING_SRCDIR)/src/arm/adaptive_quantization.S\
|
|
|
|
$(PROCESSING_SRCDIR)/src/arm/down_sample_neon.S\
|
|
|
|
$(PROCESSING_SRCDIR)/src/arm/pixel_sad_neon.S\
|
|
|
|
$(PROCESSING_SRCDIR)/src/arm/vaa_calc_neon.S\
|
|
|
|
|
2014-09-12 10:25:46 +08:00
|
|
|
PROCESSING_OBJSARM += $(PROCESSING_ASM_ARM_SRCS:.S=.$(OBJ))
|
|
|
|
ifeq ($(ASM_ARCH), arm)
|
|
|
|
PROCESSING_OBJS += $(PROCESSING_OBJSARM)
|
2014-03-05 11:16:36 +02:00
|
|
|
endif
|
2014-09-12 10:25:46 +08:00
|
|
|
OBJS += $(PROCESSING_OBJSARM)
|
2014-03-05 11:16:36 +02:00
|
|
|
|
2014-07-07 10:25:23 +08:00
|
|
|
PROCESSING_ASM_ARM64_SRCS=\
|
2014-07-22 13:06:34 +08:00
|
|
|
$(PROCESSING_SRCDIR)/src/arm64/adaptive_quantization_aarch64_neon.S\
|
2014-07-07 10:25:23 +08:00
|
|
|
$(PROCESSING_SRCDIR)/src/arm64/down_sample_aarch64_neon.S\
|
2014-08-05 11:23:38 +08:00
|
|
|
$(PROCESSING_SRCDIR)/src/arm64/pixel_sad_aarch64_neon.S\
|
2014-07-24 16:06:46 +08:00
|
|
|
$(PROCESSING_SRCDIR)/src/arm64/vaa_calc_aarch64_neon.S\
|
2014-07-07 10:25:23 +08:00
|
|
|
|
2014-09-12 10:25:46 +08:00
|
|
|
PROCESSING_OBJSARM64 += $(PROCESSING_ASM_ARM64_SRCS:.S=.$(OBJ))
|
|
|
|
ifeq ($(ASM_ARCH), arm64)
|
|
|
|
PROCESSING_OBJS += $(PROCESSING_OBJSARM64)
|
2014-07-07 10:25:23 +08:00
|
|
|
endif
|
2014-09-12 10:25:46 +08:00
|
|
|
OBJS += $(PROCESSING_OBJSARM64)
|
2014-07-07 10:25:23 +08:00
|
|
|
|
2013-12-10 16:19:42 +08:00
|
|
|
OBJS += $(PROCESSING_OBJS)
|
2014-09-12 10:25:46 +08:00
|
|
|
|
2014-03-18 11:21:46 +02:00
|
|
|
$(PROCESSING_SRCDIR)/%.$(OBJ): $(PROCESSING_SRCDIR)/%.cpp
|
2014-01-30 11:32:51 +02:00
|
|
|
$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(PROCESSING_CFLAGS) $(PROCESSING_INCLUDES) -c $(CXX_O) $<
|
2013-12-10 16:19:42 +08:00
|
|
|
|
2014-03-18 11:21:46 +02:00
|
|
|
$(PROCESSING_SRCDIR)/%.$(OBJ): $(PROCESSING_SRCDIR)/%.asm
|
2014-01-30 11:32:51 +02:00
|
|
|
$(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(PROCESSING_ASMFLAGS) $(PROCESSING_ASM_INCLUDES) -o $@ $<
|
2013-12-10 18:57:32 +08:00
|
|
|
|
2014-03-18 11:21:46 +02:00
|
|
|
$(PROCESSING_SRCDIR)/%.$(OBJ): $(PROCESSING_SRCDIR)/%.S
|
2014-05-08 14:02:53 +03:00
|
|
|
$(QUIET_CCAS)$(CCAS) $(CCASFLAGS) $(ASMFLAGS) $(INCLUDES) $(PROCESSING_CFLAGS) $(PROCESSING_INCLUDES) -c -o $@ $<
|
2014-03-05 11:16:36 +02:00
|
|
|
|
2013-12-10 16:19:42 +08:00
|
|
|
$(LIBPREFIX)processing.$(LIBSUFFIX): $(PROCESSING_OBJS)
|
2014-01-30 11:32:51 +02:00
|
|
|
$(QUIET)rm -f $@
|
|
|
|
$(QUIET_AR)$(AR) $(AR_OPTS) $+
|
2013-12-10 16:19:42 +08:00
|
|
|
|
|
|
|
libraries: $(LIBPREFIX)processing.$(LIBSUFFIX)
|
|
|
|
LIBRARIES += $(LIBPREFIX)processing.$(LIBSUFFIX)
|