2013-12-10 09:19:42 +01:00
|
|
|
ENCODER_SRCDIR=codec/encoder
|
|
|
|
ENCODER_CPP_SRCS=\
|
2014-01-24 13:35:38 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/src/au_set.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/deblocking.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/decode_mb_aux.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/encode_mb_aux.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/encoder.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/encoder_data_tables.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/encoder_ext.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/get_intra_predictor.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/mc.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/md.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/memory_align.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/mv_pred.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/nal_encap.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/picture_handle.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/property.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/ratectl.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/ref_list_mgr_svc.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/sample.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/set_mb_syn_cavlc.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/slice_multi_threading.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_base_layer_md.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_enc_slice_segment.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_encode_mb.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_encode_slice.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_mode_decision.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_motion_estimate.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/svc_set_mb_syn_cavlc.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/utils.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/core/src/wels_preprocess.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/plus/src/welsCodecTrace.cpp\
|
|
|
|
$(ENCODER_SRCDIR)/plus/src/welsEncoderExt.cpp\
|
2013-12-10 09:19:42 +01:00
|
|
|
|
2014-03-18 10:21:46 +01:00
|
|
|
ENCODER_OBJS += $(ENCODER_CPP_SRCS:.cpp=.$(OBJ))
|
2014-02-12 21:11:05 +01:00
|
|
|
|
2014-02-25 22:52:36 +01:00
|
|
|
ifeq ($(ASM_ARCH), x86)
|
2013-12-10 09:19:42 +01:00
|
|
|
ENCODER_ASM_SRCS=\
|
2014-03-18 14:59:42 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/x86/coeff.asm\
|
|
|
|
$(ENCODER_SRCDIR)/core/x86/dct.asm\
|
|
|
|
$(ENCODER_SRCDIR)/core/x86/intra_pred.asm\
|
2014-03-28 03:22:11 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/x86/matrix_transpose.asm\
|
2014-03-18 14:59:42 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/x86/memzero.asm\
|
|
|
|
$(ENCODER_SRCDIR)/core/x86/quant.asm\
|
2014-03-28 03:22:11 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/x86/sample_sc.asm\
|
2014-03-18 14:59:42 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/x86/score.asm\
|
2013-12-10 09:19:42 +01:00
|
|
|
|
2014-03-18 10:21:46 +01:00
|
|
|
ENCODER_OBJS += $(ENCODER_ASM_SRCS:.asm=.$(OBJ))
|
2013-12-10 09:19:42 +01:00
|
|
|
endif
|
|
|
|
|
2014-03-05 10:16:36 +01:00
|
|
|
ifeq ($(ASM_ARCH), arm)
|
2014-04-23 09:44:44 +02:00
|
|
|
ENCODER_ASM_ARM_SRCS=\
|
2014-03-05 10:16:36 +01:00
|
|
|
$(ENCODER_SRCDIR)/core/arm/intra_pred_neon.S\
|
|
|
|
$(ENCODER_SRCDIR)/core/arm/intra_pred_sad_3_opt_neon.S\
|
|
|
|
$(ENCODER_SRCDIR)/core/arm/memory_neon.S\
|
|
|
|
$(ENCODER_SRCDIR)/core/arm/pixel_neon.S\
|
|
|
|
$(ENCODER_SRCDIR)/core/arm/reconstruct_neon.S\
|
|
|
|
|
2014-04-23 09:44:44 +02:00
|
|
|
ENCODER_OBJS += $(ENCODER_ASM_ARM_SRCS:.S=.$(OBJ))
|
2014-03-05 10:16:36 +01:00
|
|
|
endif
|
|
|
|
|
2014-05-14 11:06:48 +02:00
|
|
|
ifeq ($(ASM_ARCH), arm64)
|
|
|
|
ENCODER_ASM_ARM64_SRCS=\
|
|
|
|
$(ENCODER_SRCDIR)/core/arm64/pixel_neon_aarch64.S\
|
|
|
|
|
|
|
|
ENCODER_OBJS += $(ENCODER_ASM_ARM64_SRCS:.S=.$(OBJ))
|
|
|
|
endif
|
|
|
|
|
2013-12-10 09:19:42 +01:00
|
|
|
OBJS += $(ENCODER_OBJS)
|
2014-03-18 10:21:46 +01:00
|
|
|
$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.cpp
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_CXX)$(CXX) $(CFLAGS) $(CXXFLAGS) $(INCLUDES) $(ENCODER_CFLAGS) $(ENCODER_INCLUDES) -c $(CXX_O) $<
|
2013-12-10 09:19:42 +01:00
|
|
|
|
2014-03-18 10:21:46 +01:00
|
|
|
$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.asm
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET_ASM)$(ASM) $(ASMFLAGS) $(ASM_INCLUDES) $(ENCODER_ASMFLAGS) $(ENCODER_ASM_INCLUDES) -o $@ $<
|
2013-12-10 11:57:32 +01:00
|
|
|
|
2014-03-18 10:21:46 +01:00
|
|
|
$(ENCODER_SRCDIR)/%.$(OBJ): $(ENCODER_SRCDIR)/%.S
|
2014-05-08 13:02:53 +02:00
|
|
|
$(QUIET_CCAS)$(CCAS) $(CCASFLAGS) $(ASMFLAGS) $(INCLUDES) $(ENCODER_CFLAGS) $(ENCODER_INCLUDES) -c -o $@ $<
|
2014-03-05 10:16:36 +01:00
|
|
|
|
2013-12-10 09:19:42 +01:00
|
|
|
$(LIBPREFIX)encoder.$(LIBSUFFIX): $(ENCODER_OBJS)
|
2014-01-30 10:32:51 +01:00
|
|
|
$(QUIET)rm -f $@
|
|
|
|
$(QUIET_AR)$(AR) $(AR_OPTS) $+
|
2013-12-10 09:19:42 +01:00
|
|
|
|
|
|
|
libraries: $(LIBPREFIX)encoder.$(LIBSUFFIX)
|
|
|
|
LIBRARIES += $(LIBPREFIX)encoder.$(LIBSUFFIX)
|