The following defines aren't referenced anywhere in the code base: _LIB MULTICORE APPLY_CONCEALMENT THREAD_QUAD_CORE DISABLE_NEONINTR ARMGCC The DEFAULT_ARCH define isn't used within the encoder at all. The ANDROID define isn't referenced anywhere either, and if necessary, the automatically enabled define __ANDROID__ can be used instead. The defines INSERT_LOGO and LOGO_EN were undefined in the makefiles, but that is unnecessary since nothing actually defines them. The decoder x86_64 makefile also undefined LOGO_EN; an architecture specific makefile shouldn't touch such feature settings, otherwise there's a risk that different builds for different architectures behave significantly differently. Change-Id: I13b86c8bf2feb3a381d904a13f18c3b35f40a575
49 lines
2.5 KiB
Makefile
49 lines
2.5 KiB
Makefile
libavcd_inc_dir_arm += $(LOCAL_PATH)/decoder/arm
|
|
libavcd_inc_dir_arm += $(LOCAL_PATH)/common/arm
|
|
|
|
libavcd_srcs_c_arm += decoder/arm/ih264d_function_selector.c
|
|
libavcd_cflags_arm += -DARM
|
|
|
|
#LOCAL_ARM_MODE := arm
|
|
|
|
ifeq ($(ARCH_ARM_HAVE_NEON),true)
|
|
libavcd_srcs_c_arm += decoder/arm/ih264d_function_selector_a9q.c
|
|
|
|
libavcd_srcs_asm_arm += common/arm/ih264_intra_pred_chroma_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_intra_pred_luma_16x16_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_intra_pred_luma_4x4_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_intra_pred_luma_8x8_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_chroma_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_filters_luma_horz_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_filters_luma_vert_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_copy_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_horz_qpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_vert_qpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_default_weighted_pred_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_weighted_pred_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_weighted_bi_pred_a9q.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_deblk_chroma_a9.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_deblk_luma_a9.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_padding_neon.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_iquant_itrans_recon_a9.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_iquant_itrans_recon_dc_a9.s
|
|
libavcd_srcs_asm_arm += common/arm/ih264_ihadamard_scaling_a9.s
|
|
|
|
libavcd_cflags_arm += -DDEFAULT_ARCH=D_ARCH_ARM_A9Q
|
|
else
|
|
libavcd_cflags_arm += -DDISABLE_NEON -DDEFAULT_ARCH=D_ARCH_ARM_NONEON
|
|
endif
|
|
|
|
libavcd_srcs_asm_arm += common/arm/ih264_arm_memory_barrier.s
|
|
|
|
LOCAL_SRC_FILES_arm += $(libavcd_srcs_c_arm) $(libavcd_srcs_asm_arm)
|
|
LOCAL_C_INCLUDES_arm += $(libavcd_inc_dir_arm)
|
|
LOCAL_CFLAGS_arm += $(libavcd_cflags_arm)
|
|
|
|
# CLANG WORKAROUNDS
|
|
LOCAL_CLANG_ASFLAGS_arm += -no-integrated-as
|
|
LOCAL_CLANG_ASFLAGS_arm += $(addprefix -Wa$(comma)-I,$(libavcd_inc_dir_arm))
|