| package { | |
| default_applicable_licenses: ["external_libavc_license"], | |
| } | |
| // Added automatically by a large-scale-change | |
| // See: http://go/android-license-faq | |
| license { | |
| name: "external_libavc_license", | |
| visibility: [":__subpackages__"], | |
| license_kinds: [ | |
| "SPDX-license-identifier-Apache-2.0", | |
| ], | |
| license_text: [ | |
| "NOTICE", | |
| ], | |
| } | |
| cc_library_headers { | |
| name: "libavcdec_headers", | |
| export_include_dirs: [ | |
| "common", | |
| "decoder", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_headers { | |
| name: "libmvcdec_headers", | |
| export_include_dirs: [ | |
| "common", | |
| "common/mvc", | |
| "decoder", | |
| "decoder/mvc", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_headers { | |
| name: "libsvcenc_headers", | |
| export_include_dirs: [ | |
| "common", | |
| "common/svc", | |
| "encoder", | |
| "encoder/svc", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_headers { | |
| name: "libsvcdec_headers", | |
| export_include_dirs: [ | |
| "common", | |
| "common/svc", | |
| "decoder", | |
| "decoder/svc", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_headers { | |
| name: "libavcenc_headers", | |
| export_include_dirs: [ | |
| "common", | |
| "encoder", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_defaults { | |
| name: "libavc_enc_defaults", | |
| vendor_available: true, | |
| host_supported: true, | |
| shared_libs: [ | |
| "liblog", | |
| "libcutils", | |
| ], | |
| cflags: [ | |
| "-DNDEBUG", | |
| "-UHP_PL", | |
| "-DN_MB_ENABLE", | |
| "-fPIC", | |
| "-O3", | |
| "-Wall", | |
| "-Werror", | |
| "-Wno-error=constant-conversion", | |
| ], | |
| arch: { | |
| arm: { | |
| local_include_dirs: [ | |
| "common/arm", | |
| "encoder/arm", | |
| ], | |
| cflags: [ | |
| "-DARM", | |
| ], | |
| }, | |
| arm64: { | |
| cflags: [ | |
| "-DARMV8", | |
| "-DARM", | |
| ], | |
| local_include_dirs: [ | |
| "common/arm", | |
| "common/armv8", | |
| "encoder/arm", | |
| "encoder/armv8", | |
| ], | |
| }, | |
| riscv64: { | |
| local_include_dirs: [ | |
| "common/riscv", | |
| "encoder/riscv", | |
| ], | |
| }, | |
| x86: { | |
| cflags: [ | |
| "-DX86", | |
| "-msse4.2", | |
| ], | |
| local_include_dirs: [ | |
| "common/x86", | |
| "encoder/x86", | |
| ], | |
| }, | |
| x86_64: { | |
| cflags: [ | |
| "-DX86", | |
| "-msse4.2", | |
| ], | |
| local_include_dirs: [ | |
| "common/x86", | |
| "encoder/x86", | |
| ], | |
| }, | |
| }, | |
| sanitize: { | |
| integer_overflow: true, | |
| misc_undefined: ["bounds"], | |
| cfi: true, | |
| config: { | |
| cfi_assembly_support: true, | |
| }, | |
| blocklist: "libavc_blocklist.txt", | |
| }, | |
| } | |
| cc_defaults { | |
| name: "libavc_dec_defaults", | |
| cflags: [ | |
| "-fPIC", | |
| "-O3", | |
| "-Wall", | |
| "-Werror", | |
| "-Wno-unused-variable", | |
| "-Wno-null-pointer-arithmetic", | |
| ], | |
| vendor_available: true, | |
| host_supported: true, | |
| shared_libs: [ | |
| "liblog", | |
| "libcutils", | |
| ], | |
| arch: { | |
| arm: { | |
| local_include_dirs: [ | |
| "common/arm", | |
| "decoder/arm", | |
| ], | |
| cflags: [ | |
| "-DARM", | |
| "-DDEFAULT_ARCH=D_ARCH_ARM_A9Q", | |
| ], | |
| }, | |
| arm64: { | |
| cflags: [ | |
| "-DARMV8", | |
| "-DARM", | |
| "-DDEFAULT_ARCH=D_ARCH_ARMV8_GENERIC", | |
| ], | |
| local_include_dirs: [ | |
| "common/armv8", | |
| "decoder/arm", | |
| ], | |
| }, | |
| riscv64: { | |
| local_include_dirs: [ | |
| "common/riscv", | |
| ], | |
| }, | |
| x86: { | |
| cflags: [ | |
| "-DX86", | |
| "-msse4.2", | |
| "-DDEFAULT_ARCH=D_ARCH_X86_SSE42", | |
| ], | |
| local_include_dirs: [ | |
| "common/x86", | |
| "decoder/x86", | |
| ], | |
| }, | |
| x86_64: { | |
| cflags: [ | |
| "-DX86", | |
| "-msse4.2", | |
| "-DDEFAULT_ARCH=D_ARCH_X86_SSE42", | |
| ], | |
| local_include_dirs: [ | |
| "common/x86", | |
| "decoder/x86", | |
| ], | |
| }, | |
| }, | |
| sanitize: { | |
| integer_overflow: true, | |
| misc_undefined: ["bounds"], | |
| cfi: true, | |
| config: { | |
| cfi_assembly_support: true, | |
| }, | |
| }, | |
| } | |
| cc_library_static { | |
| name: "libavc_avx2", | |
| defaults: ["libavc_dec_defaults"], | |
| visibility: ["//visibility:private"], | |
| export_include_dirs: [ | |
| "common", | |
| "decoder", | |
| ], | |
| arch: { | |
| x86: { | |
| cflags: [ | |
| "-mavx2", | |
| "-mfma", | |
| ], | |
| srcs: [ | |
| "common/x86/ih264_ihadamard_scaling_avx2.c", | |
| "common/x86/ih264_deblk_chroma_avx2.c", | |
| "common/x86/ih264_deblk_luma_avx2.c", | |
| "common/x86/ih264_iquant_itrans_recon_avx2.c", | |
| "common/x86/ih264_weighted_pred_avx2.c", | |
| "common/x86/ih264_inter_pred_filters_avx2.c", | |
| "decoder/x86/ih264d_function_selector_avx2.c", | |
| ], | |
| }, | |
| x86_64: { | |
| cflags: [ | |
| "-mavx2", | |
| "-mfma", | |
| ], | |
| srcs: [ | |
| "common/x86/ih264_ihadamard_scaling_avx2.c", | |
| "common/x86/ih264_deblk_chroma_avx2.c", | |
| "common/x86/ih264_deblk_luma_avx2.c", | |
| "common/x86/ih264_iquant_itrans_recon_avx2.c", | |
| "common/x86/ih264_weighted_pred_avx2.c", | |
| "common/x86/ih264_inter_pred_filters_avx2.c", | |
| "decoder/x86/ih264d_function_selector_avx2.c", | |
| ], | |
| }, | |
| }, | |
| sanitize: { | |
| blocklist: "libavc_blocklist.txt", | |
| }, | |
| apex_available: [ | |
| "//apex_available:platform", // used by libstagefright_soft_avcdec | |
| "com.android.media.swcodec", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_static { | |
| name: "libavcdec", | |
| defaults: [ | |
| "libavc_dec_defaults", | |
| "no_bti", | |
| ], | |
| export_include_dirs: [ | |
| "common", | |
| "decoder", | |
| ], | |
| srcs: [ | |
| "common/ih264_buf_mgr.c", | |
| "common/ih264_chroma_intra_pred_filters.c", | |
| "common/ih264_deblk_edge_filters.c", | |
| "common/ih264_disp_mgr.c", | |
| "common/ih264_ihadamard_scaling.c", | |
| "common/ih264_inter_pred_filters.c", | |
| "common/ih264_iquant_itrans_recon.c", | |
| "common/ih264_luma_intra_pred_filters.c", | |
| "common/ih264_mem_fns.c", | |
| "common/ih264_padding.c", | |
| "common/ih264_weighted_pred.c", | |
| "common/ithread.c", | |
| "decoder/ih264d_api.c", | |
| "decoder/ih264d_bitstrm.c", | |
| "decoder/ih264d_cabac.c", | |
| "decoder/ih264d_cabac_init_tables.c", | |
| "decoder/ih264d_compute_bs.c", | |
| "decoder/ih264d_deblocking.c", | |
| "decoder/ih264d_dpb_mgr.c", | |
| "decoder/ih264d_format_conv.c", | |
| "decoder/ih264d_function_selector_generic.c", | |
| "decoder/ih264d_inter_pred.c", | |
| "decoder/ih264d_mb_utils.c", | |
| "decoder/ih264d_mvpred.c", | |
| "decoder/ih264d_nal.c", | |
| "decoder/ih264d_parse_bslice.c", | |
| "decoder/ih264d_parse_cabac.c", | |
| "decoder/ih264d_parse_cavlc.c", | |
| "decoder/ih264d_parse_headers.c", | |
| "decoder/ih264d_parse_islice.c", | |
| "decoder/ih264d_parse_mb_header.c", | |
| "decoder/ih264d_parse_pslice.c", | |
| "decoder/ih264d_parse_slice.c", | |
| "decoder/ih264d_process_bslice.c", | |
| "decoder/ih264d_process_intra_mb.c", | |
| "decoder/ih264d_process_pslice.c", | |
| "decoder/ih264d_quant_scaling.c", | |
| "decoder/ih264d_sei.c", | |
| "decoder/ih264d_tables.c", | |
| "decoder/ih264d_thread_compute_bs.c", | |
| "decoder/ih264d_thread_parse_decode.c", | |
| "decoder/ih264d_utils.c", | |
| "decoder/ih264d_vui.c", | |
| ], | |
| arch: { | |
| arm: { | |
| srcs: [ | |
| "common/arm/ih264_arm_memory_barrier.s", | |
| "decoder/arm/ih264d_function_selector.c", | |
| "common/arm/ih264_deblk_chroma_a9.s", | |
| "common/arm/ih264_deblk_luma_a9.s", | |
| "common/arm/ih264_default_weighted_pred_a9q.s", | |
| "common/arm/ih264_ihadamard_scaling_a9.s", | |
| "common/arm/ih264_inter_pred_chroma_a9q.s", | |
| "common/arm/ih264_inter_pred_filters_luma_horz_a9q.s", | |
| "common/arm/ih264_inter_pred_filters_luma_vert_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_copy_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_horz_hpel_vert_hpel_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_horz_hpel_vert_qpel_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_horz_qpel_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_horz_qpel_vert_hpel_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_horz_qpel_vert_qpel_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_vert_qpel_a9q.s", | |
| "common/arm/ih264_intra_pred_chroma_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_16x16_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_4x4_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_8x8_a9q.s", | |
| "common/arm/ih264_iquant_itrans_recon_a9.s", | |
| "common/arm/ih264_iquant_itrans_recon_dc_a9.s", | |
| "common/arm/ih264_padding_neon.s", | |
| "common/arm/ih264_weighted_bi_pred_a9q.s", | |
| "common/arm/ih264_weighted_pred_a9q.s", | |
| "decoder/arm/ih264d_function_selector_a9q.c", | |
| ], | |
| }, | |
| arm64: { | |
| srcs: [ | |
| "common/armv8/ih264_deblk_chroma_av8.s", | |
| "common/armv8/ih264_deblk_luma_av8.s", | |
| "common/armv8/ih264_default_weighted_pred_av8.s", | |
| "common/armv8/ih264_ihadamard_scaling_av8.s", | |
| "common/armv8/ih264_inter_pred_chroma_av8.s", | |
| "common/armv8/ih264_inter_pred_filters_luma_horz_av8.s", | |
| "common/armv8/ih264_inter_pred_filters_luma_vert_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_copy_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_horz_hpel_vert_hpel_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_horz_hpel_vert_qpel_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_horz_qpel_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_horz_qpel_vert_hpel_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_horz_qpel_vert_qpel_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_vert_qpel_av8.s", | |
| "common/armv8/ih264_intra_pred_chroma_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_16x16_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_4x4_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_8x8_av8.s", | |
| "common/armv8/ih264_iquant_itrans_recon_av8.s", | |
| "common/armv8/ih264_iquant_itrans_recon_dc_av8.s", | |
| "common/armv8/ih264_padding_neon_av8.s", | |
| "common/armv8/ih264_weighted_bi_pred_av8.s", | |
| "common/armv8/ih264_weighted_pred_av8.s", | |
| "decoder/arm/ih264d_function_selector.c", | |
| "decoder/arm/ih264d_function_selector_av8.c", | |
| ], | |
| }, | |
| riscv64: { | |
| local_include_dirs: [ | |
| "common/riscv", | |
| ], | |
| srcs: [ | |
| "decoder/riscv/ih264d_function_selector.c", | |
| ], | |
| }, | |
| x86: { | |
| srcs: [ | |
| "common/x86/ih264_chroma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_deblk_chroma_ssse3.c", | |
| "common/x86/ih264_deblk_luma_ssse3.c", | |
| "common/x86/ih264_ihadamard_scaling_sse42.c", | |
| "common/x86/ih264_inter_pred_filters_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_sse42.c", | |
| "common/x86/ih264_iquant_itrans_recon_ssse3.c", | |
| "common/x86/ih264_luma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_mem_fns_ssse3.c", | |
| "common/x86/ih264_padding_ssse3.c", | |
| "common/x86/ih264_weighted_pred_sse42.c", | |
| "decoder/x86/ih264d_function_selector.c", | |
| "decoder/x86/ih264d_function_selector_sse42.c", | |
| "decoder/x86/ih264d_function_selector_ssse3.c", | |
| ], | |
| whole_static_libs: [ | |
| "libavc_avx2", | |
| ], | |
| }, | |
| x86_64: { | |
| srcs: [ | |
| "common/x86/ih264_chroma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_deblk_chroma_ssse3.c", | |
| "common/x86/ih264_deblk_luma_ssse3.c", | |
| "common/x86/ih264_ihadamard_scaling_sse42.c", | |
| "common/x86/ih264_inter_pred_filters_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_sse42.c", | |
| "common/x86/ih264_iquant_itrans_recon_ssse3.c", | |
| "common/x86/ih264_luma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_mem_fns_ssse3.c", | |
| "common/x86/ih264_padding_ssse3.c", | |
| "common/x86/ih264_weighted_pred_sse42.c", | |
| "decoder/x86/ih264d_function_selector.c", | |
| "decoder/x86/ih264d_function_selector_sse42.c", | |
| "decoder/x86/ih264d_function_selector_ssse3.c", | |
| ], | |
| whole_static_libs: [ | |
| "libavc_avx2", | |
| ], | |
| }, | |
| }, | |
| sanitize: { | |
| blocklist: "libavc_blocklist.txt", | |
| }, | |
| apex_available: [ | |
| "//apex_available:platform", // used by libstagefright_soft_avcdec | |
| "com.android.media.swcodec", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_static { | |
| name: "libmvcdec", | |
| defaults: ["libavc_dec_defaults"], | |
| whole_static_libs: [ | |
| "libavcdec", | |
| ], | |
| export_include_dirs: [ | |
| "common", | |
| "common/mvc", | |
| "decoder", | |
| "decoder/mvc", | |
| ], | |
| srcs: [ | |
| "decoder/mvc/imvcd_api.c", | |
| "decoder/mvc/imvcd_api_utils.c", | |
| "decoder/mvc/imvcd_dpb_manager.c", | |
| "decoder/mvc/imvcd_error_handler.c", | |
| "decoder/mvc/imvcd_nalu_parser.c", | |
| "decoder/mvc/imvcd_slice_functions.c", | |
| "decoder/mvc/imvcd_utils.c", | |
| ], | |
| } | |
| cc_library_static { | |
| name: "libavcenc", | |
| defaults: ["libavc_enc_defaults"], | |
| export_include_dirs: [ | |
| "common", | |
| "encoder", | |
| ], | |
| srcs: [ //Rate Control | |
| "common/ih264_buf_mgr.c", | |
| "common/ih264_cabac_tables.c", | |
| "common/ih264_cavlc_tables.c", | |
| "common/ih264_chroma_intra_pred_filters.c", | |
| "common/ih264_common_tables.c", | |
| "common/ih264_deblk_edge_filters.c", | |
| "common/ih264_deblk_tables.c", | |
| "common/ih264_dpb_mgr.c", | |
| "common/ih264_ihadamard_scaling.c", | |
| "common/ih264_inter_pred_filters.c", | |
| "common/ih264_iquant_itrans_recon.c", | |
| "common/ih264_list.c", | |
| "common/ih264_luma_intra_pred_filters.c", | |
| "common/ih264_mem_fns.c", | |
| "common/ih264_padding.c", | |
| "common/ih264_resi_trans_quant.c", | |
| "common/ih264_trans_data.c", | |
| "common/ithread.c", | |
| "encoder/ih264e_api.c", | |
| "encoder/ih264e_bitstream.c", | |
| "encoder/ih264e_cabac.c", | |
| "encoder/ih264e_cabac_encode.c", | |
| "encoder/ih264e_cabac_init.c", | |
| "encoder/ih264e_cavlc.c", | |
| "encoder/ih264e_core_coding.c", | |
| "encoder/ih264e_deblk.c", | |
| "encoder/ih264e_encode.c", | |
| "encoder/ih264e_encode_header.c", | |
| "encoder/ih264e_fmt_conv.c", | |
| "encoder/ih264e_function_selector_generic.c", | |
| "encoder/ih264e_globals.c", | |
| "encoder/ih264e_half_pel.c", | |
| "encoder/ih264e_intra_modes_eval.c", | |
| "encoder/ih264e_mc.c", | |
| "encoder/ih264e_me.c", | |
| "encoder/ih264e_modify_frm_rate.c", | |
| "encoder/ih264e_process.c", | |
| "encoder/ih264e_rate_control.c", | |
| "encoder/ih264e_rc_mem_interface.c", | |
| "encoder/ih264e_sei.c", | |
| "encoder/ih264e_time_stamp.c", | |
| "encoder/ih264e_utils.c", | |
| "encoder/ih264e_version.c", | |
| "encoder/ime.c", | |
| "encoder/ime_distortion_metrics.c", | |
| "encoder/irc_bit_allocation.c", | |
| "encoder/irc_cbr_buffer_control.c", | |
| "encoder/irc_est_sad.c", | |
| "encoder/irc_fixed_point_error_bits.c", | |
| "encoder/irc_frame_info_collector.c", | |
| "encoder/irc_mb_model_based.c", | |
| "encoder/irc_picture_type.c", | |
| "encoder/irc_rate_control_api.c", | |
| "encoder/irc_rd_model.c", | |
| "encoder/irc_vbr_storage_vbv.c", | |
| "encoder/irc_vbr_str_prms.c", | |
| "encoder/psnr.c", | |
| ], | |
| arch: { | |
| arm: { | |
| srcs: [ | |
| "common/arm/ih264_arm_memory_barrier.s", | |
| "encoder/arm/ih264e_function_selector.c", | |
| "common/arm/ih264_deblk_chroma_a9.s", | |
| "common/arm/ih264_deblk_luma_a9.s", | |
| "common/arm/ih264_ihadamard_scaling_a9.s", | |
| "common/arm/ih264_inter_pred_chroma_a9q.s", | |
| "common/arm/ih264_inter_pred_filters_luma_horz_a9q.s", | |
| "common/arm/ih264_inter_pred_filters_luma_vert_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_bilinear_a9q.s", | |
| "common/arm/ih264_inter_pred_luma_copy_a9q.s", | |
| "common/arm/ih264_intra_pred_chroma_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_16x16_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_4x4_a9q.s", | |
| "common/arm/ih264_intra_pred_luma_8x8_a9q.s", | |
| "common/arm/ih264_iquant_itrans_recon_a9.s", | |
| "common/arm/ih264_iquant_itrans_recon_dc_a9.s", | |
| "common/arm/ih264_mem_fns_neon.s", | |
| "common/arm/ih264_padding_neon.s", | |
| "common/arm/ih264_resi_trans_quant_a9.s", | |
| "encoder/arm/ih264e_evaluate_intra16x16_modes_a9q.s", | |
| "encoder/arm/ih264e_evaluate_intra4x4_modes_a9q.s", | |
| "encoder/arm/ih264e_evaluate_intra_chroma_modes_a9q.s", | |
| "encoder/arm/ih264e_fmt_conv.s", | |
| "encoder/arm/ih264e_function_selector_a9q.c", | |
| "encoder/arm/ih264e_half_pel.s", | |
| "encoder/arm/ime_distortion_metrics_a9q.s", | |
| ], | |
| }, | |
| arm64: { | |
| srcs: [ | |
| "common/armv8/ih264_deblk_chroma_av8.s", | |
| "common/armv8/ih264_deblk_luma_av8.s", | |
| "common/armv8/ih264_ihadamard_scaling_av8.s", | |
| "common/armv8/ih264_inter_pred_chroma_av8.s", | |
| "common/armv8/ih264_inter_pred_filters_luma_horz_av8.s", | |
| "common/armv8/ih264_inter_pred_filters_luma_vert_av8.s", | |
| "common/armv8/ih264_inter_pred_luma_copy_av8.s", | |
| "common/armv8/ih264_intra_pred_chroma_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_16x16_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_4x4_av8.s", | |
| "common/armv8/ih264_intra_pred_luma_8x8_av8.s", | |
| "common/armv8/ih264_iquant_itrans_recon_av8.s", | |
| "common/armv8/ih264_iquant_itrans_recon_dc_av8.s", | |
| "common/armv8/ih264_mem_fns_neon_av8.s", | |
| "common/armv8/ih264_padding_neon_av8.s", | |
| "common/armv8/ih264_resi_trans_quant_av8.s", | |
| "encoder/arm/ih264e_function_selector.c", | |
| "encoder/arm/ih264e_function_selector_av8.c", | |
| "encoder/armv8/ih264e_evaluate_intra16x16_modes_av8.s", | |
| "encoder/armv8/ih264e_evaluate_intra_chroma_modes_av8.s", | |
| "encoder/armv8/ih264e_half_pel_av8.s", | |
| "encoder/armv8/ime_distortion_metrics_av8.s", | |
| ], | |
| }, | |
| riscv64: { | |
| srcs: [ | |
| "encoder/riscv/ih264e_function_selector.c", | |
| ], | |
| }, | |
| x86: { | |
| srcs: [ | |
| "common/x86/ih264_chroma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_deblk_chroma_ssse3.c", | |
| "common/x86/ih264_deblk_luma_ssse3.c", | |
| "common/x86/ih264_ihadamard_scaling_sse42.c", | |
| "common/x86/ih264_ihadamard_scaling_ssse3.c", | |
| "common/x86/ih264_inter_pred_filters_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_sse42.c", | |
| "common/x86/ih264_iquant_itrans_recon_ssse3.c", | |
| "common/x86/ih264_luma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_mem_fns_ssse3.c", | |
| "common/x86/ih264_padding_ssse3.c", | |
| "common/x86/ih264_resi_trans_quant_sse42.c", | |
| "common/x86/ih264_weighted_pred_sse42.c", | |
| "encoder/x86/ih264e_function_selector.c", | |
| "encoder/x86/ih264e_function_selector_sse42.c", | |
| "encoder/x86/ih264e_function_selector_ssse3.c", | |
| "encoder/x86/ih264e_half_pel_ssse3.c", | |
| "encoder/x86/ih264e_intra_modes_eval_ssse3.c", | |
| "encoder/x86/ime_distortion_metrics_sse42.c", | |
| ], | |
| }, | |
| x86_64: { | |
| srcs: [ | |
| "common/x86/ih264_chroma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_deblk_chroma_ssse3.c", | |
| "common/x86/ih264_deblk_luma_ssse3.c", | |
| "common/x86/ih264_ihadamard_scaling_sse42.c", | |
| "common/x86/ih264_ihadamard_scaling_ssse3.c", | |
| "common/x86/ih264_inter_pred_filters_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/ih264_iquant_itrans_recon_sse42.c", | |
| "common/x86/ih264_iquant_itrans_recon_ssse3.c", | |
| "common/x86/ih264_luma_intra_pred_filters_ssse3.c", | |
| "common/x86/ih264_mem_fns_ssse3.c", | |
| "common/x86/ih264_padding_ssse3.c", | |
| "common/x86/ih264_resi_trans_quant_sse42.c", | |
| "common/x86/ih264_weighted_pred_sse42.c", | |
| "encoder/x86/ih264e_function_selector.c", | |
| "encoder/x86/ih264e_function_selector_sse42.c", | |
| "encoder/x86/ih264e_function_selector_ssse3.c", | |
| "encoder/x86/ih264e_half_pel_ssse3.c", | |
| "encoder/x86/ih264e_intra_modes_eval_ssse3.c", | |
| "encoder/x86/ime_distortion_metrics_sse42.c", | |
| ], | |
| }, | |
| }, | |
| apex_available: [ | |
| "//apex_available:platform", //due to libstagefright_soft_avcenc | |
| "com.android.media.swcodec", | |
| ], | |
| min_sdk_version: "29", | |
| } | |
| cc_library_static { | |
| name: "libsvcenc", | |
| defaults: ["libavc_enc_defaults"], | |
| whole_static_libs: [ | |
| "libavcenc", | |
| ], | |
| export_include_dirs: [ | |
| "common", | |
| "common/svc", | |
| "encoder", | |
| "encoder/svc", | |
| ], | |
| srcs: [ | |
| "common/svc/isvc_cabac_tables.c", | |
| "common/svc/isvc_common_tables.c", | |
| "common/svc/isvc_intra_resample.c", | |
| "common/svc/isvc_iquant_itrans_recon.c", | |
| "common/svc/isvc_mem_fns.c", | |
| "common/svc/isvc_resi_trans_quant.c", | |
| "encoder/svc/irc_svc_rate_control_api.c", | |
| "encoder/svc/isvce_api.c", | |
| "encoder/svc/isvce_cabac.c", | |
| "encoder/svc/isvce_cabac_encode.c", | |
| "encoder/svc/isvce_cabac_init.c", | |
| "encoder/svc/isvce_cavlc.c", | |
| "encoder/svc/isvce_core_coding.c", | |
| "encoder/svc/isvce_deblk.c", | |
| "encoder/svc/isvce_downscaler.c", | |
| "encoder/svc/isvce_encode.c", | |
| "encoder/svc/isvce_encode_header.c", | |
| "encoder/svc/isvce_fmt_conv.c", | |
| "encoder/svc/isvce_function_selector_generic.c", | |
| "encoder/svc/isvce_globals.c", | |
| "encoder/svc/isvce_ibl_eval.c", | |
| "encoder/svc/isvce_ilp_mv.c", | |
| "encoder/svc/isvce_intra_modes_eval.c", | |
| "encoder/svc/isvce_mc.c", | |
| "encoder/svc/isvce_me.c", | |
| "encoder/svc/isvce_mode_stat_visualiser.c", | |
| "encoder/svc/isvce_nalu_stat_aggregator.c", | |
| "encoder/svc/isvce_process.c", | |
| "encoder/svc/isvce_rate_control.c", | |
| "encoder/svc/isvce_rc_mem_interface.c", | |
| "encoder/svc/isvce_rc_utils.c", | |
| "encoder/svc/isvce_residual_pred.c", | |
| "encoder/svc/isvce_sub_pic_rc.c", | |
| "encoder/svc/isvce_utils.c", | |
| ], | |
| arch: { | |
| arm: { | |
| local_include_dirs: [ | |
| "common/arm/svc", | |
| "encoder/arm/svc", | |
| ], | |
| srcs: [ | |
| "encoder/arm/svc/isvce_function_selector.c", | |
| "common/arm/svc/isvc_intra_sampling_neon.c", | |
| "common/arm/svc/isvc_iquant_itrans_recon_neon.c", | |
| "common/arm/svc/isvc_mem_fns_neon.c", | |
| "common/arm/svc/isvc_resi_trans_quant_neon.c", | |
| "encoder/arm/svc/isvce_downscaler_neon.c", | |
| "encoder/arm/svc/isvce_function_selector_a9q.c", | |
| "encoder/arm/svc/isvce_rc_utils_neon.c", | |
| "encoder/arm/svc/isvce_residual_pred_neon.c", | |
| ], | |
| }, | |
| arm64: { | |
| local_include_dirs: [ | |
| "encoder/arm/svc", | |
| "common/arm/svc", | |
| ], | |
| srcs: [ | |
| "common/arm/svc/isvc_intra_sampling_neon.c", | |
| "common/arm/svc/isvc_iquant_itrans_recon_neon.c", | |
| "common/arm/svc/isvc_mem_fns_neon.c", | |
| "common/arm/svc/isvc_resi_trans_quant_neon.c", | |
| "encoder/arm/svc/isvce_downscaler_neon.c", | |
| "encoder/arm/svc/isvce_function_selector.c", | |
| "encoder/arm/svc/isvce_function_selector_av8.c", | |
| "encoder/arm/svc/isvce_rc_utils_neon.c", | |
| "encoder/arm/svc/isvce_residual_pred_neon.c", | |
| ], | |
| }, | |
| riscv64: { | |
| local_include_dirs: [ | |
| "encoder/riscv/svc", | |
| ], | |
| srcs: [ | |
| "encoder/riscv/svc/isvce_function_selector.c", | |
| ], | |
| }, | |
| x86: { | |
| local_include_dirs: [ | |
| "common/x86/svc", | |
| "encoder/x86/svc", | |
| ], | |
| srcs: [ | |
| "common/x86/svc/isvc_intra_resample_sse42.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_sse42.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_ssse3.c", | |
| "common/x86/svc/isvc_mem_fns_sse42.c", | |
| "common/x86/svc/isvc_mem_fns_ssse3.c", | |
| "common/x86/svc/isvc_padding_ssse3.c", | |
| "common/x86/svc/isvc_resi_trans_quant_sse42.c", | |
| "encoder/x86/svc/isvce_downscaler_sse42.c", | |
| "encoder/x86/svc/isvce_function_selector.c", | |
| "encoder/x86/svc/isvce_function_selector_sse42.c", | |
| "encoder/x86/svc/isvce_function_selector_ssse3.c", | |
| "encoder/x86/svc/isvce_rc_utils_sse42.c", | |
| "encoder/x86/svc/isvce_residual_pred_sse42.c", | |
| ], | |
| }, | |
| x86_64: { | |
| local_include_dirs: [ | |
| "common/x86/svc", | |
| "encoder/x86/svc", | |
| ], | |
| srcs: [ | |
| "common/x86/svc/isvc_intra_resample_sse42.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_dc_ssse3.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_sse42.c", | |
| "common/x86/svc/isvc_iquant_itrans_recon_ssse3.c", | |
| "common/x86/svc/isvc_mem_fns_sse42.c", | |
| "common/x86/svc/isvc_mem_fns_ssse3.c", | |
| "common/x86/svc/isvc_padding_ssse3.c", | |
| "common/x86/svc/isvc_resi_trans_quant_sse42.c", | |
| "encoder/x86/svc/isvce_downscaler_sse42.c", | |
| "encoder/x86/svc/isvce_function_selector.c", | |
| "encoder/x86/svc/isvce_function_selector_sse42.c", | |
| "encoder/x86/svc/isvce_function_selector_ssse3.c", | |
| "encoder/x86/svc/isvce_rc_utils_sse42.c", | |
| "encoder/x86/svc/isvce_residual_pred_sse42.c", | |
| ], | |
| }, | |
| }, | |
| } | |
| cc_library_static { | |
| name: "libsvcdec", | |
| defaults: ["libavc_dec_defaults"], | |
| cflags: [ | |
| "-UKEEP_THREADS_ACTIVE", | |
| ], | |
| whole_static_libs: [ | |
| "libavcdec", | |
| ], | |
| export_include_dirs: [ | |
| "common", | |
| "common/svc", | |
| "decoder", | |
| "decoder/svc", | |
| ], | |
| srcs: [ | |
| "decoder/svc/isvcd_api.c", | |
| "decoder/svc/isvcd_cabac.c", | |
| "decoder/svc/isvcd_cabac_init_tables.c", | |
| "decoder/svc/isvcd_compute_bs.c", | |
| "decoder/svc/isvcd_function_selector_generic.c", | |
| "decoder/svc/isvcd_ii_pred.c", | |
| "decoder/svc/isvcd_intra_resamp.c", | |
| "decoder/svc/isvcd_iquant_itrans.c", | |
| "decoder/svc/isvcd_iquant_itrans_residual.c", | |
| "decoder/svc/isvcd_iquant_itrans_residual_recon.c", | |
| "decoder/svc/isvcd_mb_utils.c", | |
| "decoder/svc/isvcd_mode_mv_resamp.c", | |
| "decoder/svc/isvcd_nal.c", | |
| "decoder/svc/isvcd_nal_parse.c", | |
| "decoder/svc/isvcd_parse_cavlc.c", | |
| "decoder/svc/isvcd_parse_ebslice.c", | |
| "decoder/svc/isvcd_parse_eislice.c", | |
| "decoder/svc/isvcd_parse_epslice.c", | |
| "decoder/svc/isvcd_parse_headers.c", | |
| "decoder/svc/isvcd_parse_slice.c", | |
| "decoder/svc/isvcd_pred_residual_recon.c", | |
| "decoder/svc/isvcd_process_ebslice.c", | |
| "decoder/svc/isvcd_process_epslice.c", | |
| "decoder/svc/isvcd_residual_resamp.c", | |
| "decoder/svc/isvcd_thread_compute_bs.c", | |
| "decoder/svc/isvcd_thread_parse_decode.c", | |
| "decoder/svc/isvcd_utils.c", | |
| "decoder/svc/isvcd_vui.c", | |
| ], | |
| arch: { | |
| arm: { | |
| srcs: [ | |
| "decoder/arm/svc/isvcd_function_selector.c", | |
| "decoder/arm/svc/isvcd_function_selector_neon.c", | |
| "decoder/arm/svc/isvcd_intra_resamp_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_residual_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_residual_recon_neon.c", | |
| "decoder/arm/svc/isvcd_pred_residual_recon_neon.c", | |
| "decoder/arm/svc/isvcd_residual_resamp_neon.c", | |
| ], | |
| }, | |
| arm64: { | |
| srcs: [ | |
| "decoder/arm/svc/isvcd_function_selector.c", | |
| "decoder/arm/svc/isvcd_function_selector_neon.c", | |
| "decoder/arm/svc/isvcd_intra_resamp_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_residual_neon.c", | |
| "decoder/arm/svc/isvcd_iquant_itrans_residual_recon_neon.c", | |
| "decoder/arm/svc/isvcd_pred_residual_recon_neon.c", | |
| "decoder/arm/svc/isvcd_residual_resamp_neon.c", | |
| ], | |
| }, | |
| riscv64: { | |
| local_include_dirs: [ | |
| "decoder/riscv/svc", | |
| ], | |
| srcs: [ | |
| "decoder/riscv/svc/isvcd_function_selector.c", | |
| ], | |
| }, | |
| x86: { | |
| srcs: [ | |
| "decoder/x86/svc/isvcd_function_selector.c", | |
| "decoder/x86/svc/isvcd_function_selector_sse42.c", | |
| "decoder/x86/svc/isvcd_intra_resamp_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_residual_recon_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_residual_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_sse42.c", | |
| "decoder/x86/svc/isvcd_pred_residual_recon_sse42.c", | |
| "decoder/x86/svc/isvcd_residual_resamp_sse42.c", | |
| ], | |
| }, | |
| x86_64: { | |
| srcs: [ | |
| "decoder/x86/svc/isvcd_function_selector.c", | |
| "decoder/x86/svc/isvcd_function_selector_sse42.c", | |
| "decoder/x86/svc/isvcd_intra_resamp_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_residual_recon_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_residual_sse42.c", | |
| "decoder/x86/svc/isvcd_iquant_itrans_sse42.c", | |
| "decoder/x86/svc/isvcd_pred_residual_recon_sse42.c", | |
| "decoder/x86/svc/isvcd_residual_resamp_sse42.c", | |
| ], | |
| }, | |
| }, | |
| } |