1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 4 libavce_source_dir := $(LOCAL_PATH) 5 6 ## Arch-common settings 7 LOCAL_MODULE := libavcenc 8 #LOCAL_32_BIT_ONLY := true 9 10 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 11 12 LOCAL_CFLAGS += -DNDEBUG -UHP_PL -DN_MB_ENABLE -fPIC 13 LOCAL_CFLAGS += -O3 14 15 LOCAL_C_INCLUDES := $(LOCAL_PATH)/encoder $(LOCAL_PATH)/common 16 17 libavce_srcs_c += common/ih264_resi_trans_quant.c 18 libavce_srcs_c += common/ih264_iquant_itrans_recon.c 19 libavce_srcs_c += common/ih264_ihadamard_scaling.c 20 libavce_srcs_c += common/ih264_inter_pred_filters.c 21 libavce_srcs_c += common/ih264_luma_intra_pred_filters.c 22 libavce_srcs_c += common/ih264_chroma_intra_pred_filters.c 23 libavce_srcs_c += common/ih264_padding.c 24 libavce_srcs_c += common/ih264_mem_fns.c 25 libavce_srcs_c += common/ih264_deblk_edge_filters.c 26 libavce_srcs_c += common/ih264_deblk_tables.c 27 libavce_srcs_c += common/ih264_cavlc_tables.c 28 libavce_srcs_c += common/ih264_cabac_tables.c 29 libavce_srcs_c += common/ih264_common_tables.c 30 libavce_srcs_c += common/ih264_trans_data.c 31 libavce_srcs_c += common/ih264_buf_mgr.c 32 libavce_srcs_c += common/ih264_dpb_mgr.c 33 libavce_srcs_c += common/ih264_list.c 34 35 36 libavce_srcs_c += common/ithread.c 37 38 libavce_srcs_c += encoder/ih264e_globals.c 39 libavce_srcs_c += encoder/ih264e_intra_modes_eval.c 40 libavce_srcs_c += encoder/ih264e_half_pel.c 41 libavce_srcs_c += encoder/ih264e_mc.c 42 libavce_srcs_c += encoder/ih264e_me.c 43 libavce_srcs_c += encoder/ih264e_rc_mem_interface.c 44 libavce_srcs_c += encoder/ih264e_time_stamp.c 45 libavce_srcs_c += encoder/ih264e_modify_frm_rate.c 46 libavce_srcs_c += encoder/ih264e_rate_control.c 47 libavce_srcs_c += encoder/ih264e_core_coding.c 48 libavce_srcs_c += encoder/ih264e_deblk.c 49 libavce_srcs_c += encoder/ih264e_api.c 50 libavce_srcs_c += encoder/ih264e_process.c 51 libavce_srcs_c += encoder/ih264e_encode.c 52 libavce_srcs_c += encoder/ih264e_utils.c 53 libavce_srcs_c += encoder/ih264e_version.c 54 libavce_srcs_c += encoder/ih264e_bitstream.c 55 libavce_srcs_c += encoder/ih264e_cavlc.c 56 libavce_srcs_c += encoder/ih264e_cabac_init.c 57 libavce_srcs_c += encoder/ih264e_cabac.c 58 libavce_srcs_c += encoder/ih264e_cabac_encode.c 59 libavce_srcs_c += encoder/ih264e_encode_header.c 60 libavce_srcs_c += encoder/ih264e_function_selector_generic.c 61 libavce_srcs_c += encoder/ih264e_fmt_conv.c 62 63 #Rate Control 64 libavce_srcs_c += encoder/irc_rate_control_api.c 65 libavce_srcs_c += encoder/irc_bit_allocation.c 66 libavce_srcs_c += encoder/irc_cbr_buffer_control.c 67 libavce_srcs_c += encoder/irc_est_sad.c 68 libavce_srcs_c += encoder/irc_fixed_point_error_bits.c 69 libavce_srcs_c += encoder/irc_frame_info_collector.c 70 libavce_srcs_c += encoder/irc_mb_model_based.c 71 libavce_srcs_c += encoder/irc_picture_type.c 72 libavce_srcs_c += encoder/irc_rd_model.c 73 libavce_srcs_c += encoder/irc_vbr_storage_vbv.c 74 libavce_srcs_c += encoder/irc_vbr_str_prms.c 75 76 #ME files 77 libavce_srcs_c += encoder/ime.c 78 libavce_srcs_c += encoder/ime_distortion_metrics.c 79 80 81 82 LOCAL_SRC_FILES := $(libavce_srcs_c) $(libavce_srcs_asm) 83 84 85 # Load the arch-specific settings 86 include $(LOCAL_PATH)/encoder.arm.mk 87 include $(LOCAL_PATH)/encoder.arm64.mk 88 include $(LOCAL_PATH)/encoder.x86.mk 89 include $(LOCAL_PATH)/encoder.x86_64.mk 90 include $(LOCAL_PATH)/encoder.mips.mk 91 include $(LOCAL_PATH)/encoder.mips64.mk 92 93 include $(BUILD_STATIC_LIBRARY) 94