mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-13 22:32:34 +07:00
Some checks failed
CMake / build (cmake, aarch64-linux-gnu-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch64_toolchain.cmake, aarch64-linux-gnu-g++, ubuntu-latest-cross-aarch64-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, arm-linux-gnueabihf-gcc, -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/aarch32_toolchain.cmake, arm-linux-gnueabihf-g++, ubuntu-latest-cross-aarch32-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, macos-latest-clang-cmake, macos-latest) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-24.04-arm-clang-cmake, ubuntu-24.04-arm) (push) Has been cancelled
CMake / build (cmake, clang, , clang++, ubuntu-latest-clang-cmake, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -DSANITIZE=fuzzer-no-link,address, clang++, ubuntu-latest-clang-cmake-asan-fuzzer, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, clang, -G Ninja, clang++, ubuntu-latest-clang-cmake-ninja, ubuntu-latest) (push) Has been cancelled
CMake / build (cmake, gcc, , g++, ubuntu-latest-gcc-cmake, ubuntu-latest) (push) Has been cancelled
Added Android.bp for the tests and updated them to ensure they run with atest.
319 lines
13 KiB
Text
319 lines
13 KiB
Text
package {
|
|
default_applicable_licenses: ["external_libhevc_license"],
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "libhevccommon",
|
|
host_supported: true,
|
|
|
|
cflags: [
|
|
"-D_LIB",
|
|
"-fPIC",
|
|
"-DANDROID",
|
|
// common/x86/ihevc_sao_ssse3_intr.c: implicit conversion from
|
|
// 'int' to 'char' changes value from 128 to -128
|
|
"-Wno-error=constant-conversion",
|
|
],
|
|
|
|
export_include_dirs: [
|
|
".",
|
|
],
|
|
|
|
srcs: [
|
|
"ihevc_buf_mgr.c",
|
|
"ihevc_cabac_tables.c",
|
|
"ihevc_chroma_intra_pred_filters.c",
|
|
"ihevc_chroma_iquant_itrans_recon.c",
|
|
"ihevc_chroma_iquant_recon.c",
|
|
"ihevc_chroma_itrans_recon.c",
|
|
"ihevc_chroma_itrans_recon_32x32.c",
|
|
"ihevc_chroma_itrans_recon_16x16.c",
|
|
"ihevc_chroma_itrans_recon_8x8.c",
|
|
"ihevc_chroma_recon.c",
|
|
"ihevc_common_tables.c",
|
|
"ihevc_deblk_edge_filter.c",
|
|
"ihevc_deblk_tables.c",
|
|
"ihevc_disp_mgr.c",
|
|
"ihevc_dpb_mgr.c",
|
|
"ihevc_function_selector_generic.c",
|
|
"ihevc_hbd_deblk_edge_filter.c",
|
|
"ihevc_inter_pred_filters.c",
|
|
"ihevc_intra_pred_filters.c",
|
|
"ihevc_iquant_itrans_recon.c",
|
|
"ihevc_iquant_recon.c",
|
|
"ihevc_itrans.c",
|
|
"ihevc_itrans_res.c",
|
|
"ihevc_itrans_recon.c",
|
|
"ihevc_itrans_recon_16x16.c",
|
|
"ihevc_itrans_recon_32x32.c",
|
|
"ihevc_itrans_recon_8x8.c",
|
|
"ihevc_mem_fns.c",
|
|
"ihevc_padding.c",
|
|
"ihevc_quant_tables.c",
|
|
"ihevc_recon.c",
|
|
"ihevc_sao.c",
|
|
"ihevc_trans_tables.c",
|
|
"ihevc_weighted_pred.c",
|
|
"ithread.c",
|
|
],
|
|
|
|
arch: {
|
|
arm64: {
|
|
cflags: [
|
|
"-DARMV8",
|
|
"-DDISABLE_NEONINTR",
|
|
"-DARM",
|
|
"-DARMGCC",
|
|
],
|
|
export_include_dirs: [
|
|
"arm",
|
|
"arm64",
|
|
],
|
|
|
|
srcs: [
|
|
"arm/ihevc_intra_pred_filters_neon_intr.c",
|
|
"arm/ihevc_weighted_pred_neon_intr.c",
|
|
"arm64/ihevc_deblk_chroma_horz.s",
|
|
"arm64/ihevc_deblk_chroma_vert.s",
|
|
"arm64/ihevc_deblk_luma_horz.s",
|
|
"arm64/ihevc_deblk_luma_vert.s",
|
|
"arm64/ihevc_function_selector_av8.c",
|
|
"arm64/ihevc_inter_pred_chroma_copy.s",
|
|
"arm64/ihevc_inter_pred_chroma_copy_w16out.s",
|
|
"arm64/ihevc_inter_pred_chroma_horz.s",
|
|
"arm64/ihevc_inter_pred_chroma_horz_w16out.s",
|
|
"arm64/ihevc_inter_pred_chroma_vert.s",
|
|
"arm64/ihevc_inter_pred_chroma_vert_w16inp.s",
|
|
"arm64/ihevc_inter_pred_chroma_vert_w16inp_w16out.s",
|
|
"arm64/ihevc_inter_pred_chroma_vert_w16out.s",
|
|
"arm64/ihevc_inter_pred_filters_luma_horz.s",
|
|
"arm64/ihevc_inter_pred_filters_luma_vert.s",
|
|
"arm64/ihevc_inter_pred_filters_luma_vert_w16inp.s",
|
|
"arm64/ihevc_inter_pred_filters_luma_vert_w16out.s",
|
|
"arm64/ihevc_inter_pred_luma_copy.s",
|
|
"arm64/ihevc_inter_pred_luma_copy_w16out.s",
|
|
"arm64/ihevc_inter_pred_luma_horz_w16out.s",
|
|
"arm64/ihevc_inter_pred_luma_vert_w16inp_w16out.s",
|
|
"arm64/ihevc_intra_pred_chroma_dc.s",
|
|
"arm64/ihevc_intra_pred_chroma_horz.s",
|
|
"arm64/ihevc_intra_pred_chroma_mode2.s",
|
|
"arm64/ihevc_intra_pred_chroma_mode_18_34.s",
|
|
"arm64/ihevc_intra_pred_chroma_mode_27_to_33.s",
|
|
"arm64/ihevc_intra_pred_chroma_mode_3_to_9.s",
|
|
"arm64/ihevc_intra_pred_chroma_planar.s",
|
|
"arm64/ihevc_intra_pred_chroma_ver.s",
|
|
"arm64/ihevc_intra_pred_filters_chroma_mode_11_to_17.s",
|
|
"arm64/ihevc_intra_pred_filters_chroma_mode_19_to_25.s",
|
|
"arm64/ihevc_intra_pred_filters_luma_mode_11_to_17.s",
|
|
"arm64/ihevc_intra_pred_filters_luma_mode_19_to_25.s",
|
|
"arm64/ihevc_intra_pred_luma_dc.s",
|
|
"arm64/ihevc_intra_pred_luma_horz.s",
|
|
"arm64/ihevc_intra_pred_luma_mode2.s",
|
|
"arm64/ihevc_intra_pred_luma_mode_18_34.s",
|
|
"arm64/ihevc_intra_pred_luma_mode_27_to_33.s",
|
|
"arm64/ihevc_intra_pred_luma_mode_3_to_9.s",
|
|
"arm64/ihevc_intra_pred_luma_planar.s",
|
|
"arm64/ihevc_intra_pred_luma_vert.s",
|
|
"arm64/ihevc_itrans_recon_16x16.s",
|
|
"arm64/ihevc_itrans_recon_32x32.s",
|
|
"arm64/ihevc_itrans_recon_4x4.s",
|
|
"arm64/ihevc_itrans_recon_4x4_ttype1.s",
|
|
"arm64/ihevc_itrans_recon_8x8.s",
|
|
"arm64/ihevc_mem_fns.s",
|
|
"arm64/ihevc_padding.s",
|
|
"arm64/ihevc_sao_band_offset_chroma.s",
|
|
"arm64/ihevc_sao_band_offset_luma.s",
|
|
"arm64/ihevc_sao_edge_offset_class0.s",
|
|
"arm64/ihevc_sao_edge_offset_class0_chroma.s",
|
|
"arm64/ihevc_sao_edge_offset_class1.s",
|
|
"arm64/ihevc_sao_edge_offset_class1_chroma.s",
|
|
"arm64/ihevc_sao_edge_offset_class2.s",
|
|
"arm64/ihevc_sao_edge_offset_class2_chroma.s",
|
|
"arm64/ihevc_sao_edge_offset_class3.s",
|
|
"arm64/ihevc_sao_edge_offset_class3_chroma.s",
|
|
"arm64/ihevc_weighted_pred_bi.s",
|
|
"arm64/ihevc_weighted_pred_bi_default.s",
|
|
"arm64/ihevc_weighted_pred_uni.s",
|
|
],
|
|
},
|
|
|
|
arm: {
|
|
export_include_dirs: [
|
|
"arm",
|
|
],
|
|
|
|
srcs: [
|
|
"arm/ihevc_deblk_chroma_horz.s",
|
|
"arm/ihevc_deblk_chroma_vert.s",
|
|
"arm/ihevc_deblk_luma_horz.s",
|
|
"arm/ihevc_deblk_luma_vert.s",
|
|
"arm/ihevc_function_selector_a9q.c",
|
|
"arm/ihevc_inter_pred_chroma_copy.s",
|
|
"arm/ihevc_inter_pred_chroma_copy_w16out.s",
|
|
"arm/ihevc_inter_pred_chroma_horz.s",
|
|
"arm/ihevc_inter_pred_chroma_horz_w16out.s",
|
|
"arm/ihevc_inter_pred_chroma_vert.s",
|
|
"arm/ihevc_inter_pred_chroma_vert_w16inp.s",
|
|
"arm/ihevc_inter_pred_chroma_vert_w16inp_w16out.s",
|
|
"arm/ihevc_inter_pred_chroma_vert_w16out.s",
|
|
"arm/ihevc_inter_pred_filters_luma_horz.s",
|
|
"arm/ihevc_inter_pred_filters_luma_vert.s",
|
|
"arm/ihevc_inter_pred_filters_luma_vert_w16inp.s",
|
|
"arm/ihevc_inter_pred_luma_copy.s",
|
|
"arm/ihevc_inter_pred_luma_copy_w16out.s",
|
|
"arm/ihevc_inter_pred_luma_horz_w16out.s",
|
|
"arm/ihevc_inter_pred_luma_vert_w16inp_w16out.s",
|
|
"arm/ihevc_intra_pred_chroma_dc.s",
|
|
"arm/ihevc_intra_pred_chroma_horz.s",
|
|
"arm/ihevc_intra_pred_chroma_mode2.s",
|
|
"arm/ihevc_intra_pred_chroma_mode_18_34.s",
|
|
"arm/ihevc_intra_pred_chroma_mode_27_to_33.s",
|
|
"arm/ihevc_intra_pred_chroma_mode_3_to_9.s",
|
|
"arm/ihevc_intra_pred_chroma_planar.s",
|
|
"arm/ihevc_intra_pred_chroma_ver.s",
|
|
"arm/ihevc_intra_pred_filters_chroma_mode_11_to_17.s",
|
|
"arm/ihevc_intra_pred_filters_chroma_mode_19_to_25.s",
|
|
"arm/ihevc_intra_pred_filters_luma_mode_11_to_17.s",
|
|
"arm/ihevc_intra_pred_filters_luma_mode_19_to_25.s",
|
|
"arm/ihevc_intra_pred_filters_neon_intr.c",
|
|
"arm/ihevc_intra_pred_luma_dc.s",
|
|
"arm/ihevc_intra_pred_luma_horz.s",
|
|
"arm/ihevc_intra_pred_luma_mode2.s",
|
|
"arm/ihevc_intra_pred_luma_mode_18_34.s",
|
|
"arm/ihevc_intra_pred_luma_mode_27_to_33.s",
|
|
"arm/ihevc_intra_pred_luma_mode_3_to_9.s",
|
|
"arm/ihevc_intra_pred_luma_planar.s",
|
|
"arm/ihevc_intra_pred_luma_vert.s",
|
|
"arm/ihevc_intra_ref_substitution_a9q.c",
|
|
"arm/ihevc_itrans_recon_16x16.s",
|
|
"arm/ihevc_itrans_recon_32x32.s",
|
|
"arm/ihevc_itrans_recon_4x4.s",
|
|
"arm/ihevc_itrans_recon_4x4_ttype1.s",
|
|
"arm/ihevc_itrans_recon_8x8.s",
|
|
"arm/ihevc_mem_fns.s",
|
|
"arm/ihevc_padding.s",
|
|
"arm/ihevc_sao_band_offset_chroma.s",
|
|
"arm/ihevc_sao_band_offset_luma.s",
|
|
"arm/ihevc_sao_edge_offset_class0.s",
|
|
"arm/ihevc_sao_edge_offset_class0_chroma.s",
|
|
"arm/ihevc_sao_edge_offset_class1.s",
|
|
"arm/ihevc_sao_edge_offset_class1_chroma.s",
|
|
"arm/ihevc_sao_edge_offset_class2.s",
|
|
"arm/ihevc_sao_edge_offset_class2_chroma.s",
|
|
"arm/ihevc_sao_edge_offset_class3.s",
|
|
"arm/ihevc_sao_edge_offset_class3_chroma.s",
|
|
"arm/ihevc_weighted_pred_bi.s",
|
|
"arm/ihevc_weighted_pred_bi_default.s",
|
|
"arm/ihevc_weighted_pred_neon_intr.c",
|
|
"arm/ihevc_weighted_pred_uni.s",
|
|
],
|
|
|
|
cflags: [
|
|
// Modules coded with neon intrinsics are not not included in Android Build.
|
|
"-DDISABLE_NEONINTR",
|
|
"-DARM",
|
|
"-DARMGCC",
|
|
"-fno-tree-vectorize",
|
|
],
|
|
|
|
instruction_set: "arm",
|
|
},
|
|
|
|
x86_64: {
|
|
cflags: [
|
|
"-DX86",
|
|
"-DDISABLE_AVX2",
|
|
"-msse4.2",
|
|
"-mno-avx",
|
|
"-DDEFAULT_ARCH=D_ARCH_X86_SSE42",
|
|
],
|
|
|
|
export_include_dirs: [
|
|
"x86",
|
|
],
|
|
|
|
srcs: [
|
|
"x86/ihevc_16x16_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_32x32_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_function_selector_ssse3.c",
|
|
"x86/ihevc_function_selector_sse42.c",
|
|
"x86/ihevc_chroma_intra_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_chroma_intra_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_deblk_ssse3_intr.c",
|
|
"x86/ihevc_inter_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_inter_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_intra_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_intra_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_16x16_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_32x32_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_itrans_recon_ssse3_intr.c",
|
|
"x86/ihevc_mem_fns_ssse3_intr.c",
|
|
"x86/ihevc_padding_ssse3_intr.c",
|
|
"x86/ihevc_sao_ssse3_intr.c",
|
|
"x86/ihevc_tables_x86_intr.c",
|
|
"x86/ihevc_weighted_pred_sse42_intr.c",
|
|
"x86/ihevc_weighted_pred_ssse3_intr.c",
|
|
],
|
|
},
|
|
|
|
x86: {
|
|
cflags: [
|
|
"-DX86",
|
|
"-DDISABLE_AVX2",
|
|
"-msse4.2",
|
|
"-mno-avx",
|
|
"-DDEFAULT_ARCH=D_ARCH_X86_SSE42",
|
|
],
|
|
|
|
export_include_dirs: [
|
|
"x86",
|
|
],
|
|
|
|
srcs: [
|
|
"x86/ihevc_16x16_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_32x32_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_function_selector_ssse3.c",
|
|
"x86/ihevc_function_selector_sse42.c",
|
|
"x86/ihevc_chroma_intra_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_chroma_intra_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_deblk_ssse3_intr.c",
|
|
"x86/ihevc_inter_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_inter_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_intra_pred_filters_sse42_intr.c",
|
|
"x86/ihevc_intra_pred_filters_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_16x16_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_32x32_ssse3_intr.c",
|
|
"x86/ihevc_itrans_recon_sse42_intr.c",
|
|
"x86/ihevc_itrans_recon_ssse3_intr.c",
|
|
"x86/ihevc_mem_fns_ssse3_intr.c",
|
|
"x86/ihevc_padding_ssse3_intr.c",
|
|
"x86/ihevc_sao_ssse3_intr.c",
|
|
"x86/ihevc_tables_x86_intr.c",
|
|
"x86/ihevc_weighted_pred_sse42_intr.c",
|
|
"x86/ihevc_weighted_pred_ssse3_intr.c",
|
|
],
|
|
},
|
|
riscv64: {
|
|
export_include_dirs: [
|
|
"riscv64",
|
|
],
|
|
},
|
|
},
|
|
|
|
sanitize: {
|
|
integer_overflow: true,
|
|
misc_undefined: ["bounds"],
|
|
// Enable CFI if this becomes a shared library.
|
|
cfi: true,
|
|
config: {
|
|
cfi_assembly_support: true,
|
|
},
|
|
},
|
|
|
|
apex_available: [
|
|
"//apex_available:platform",
|
|
"com.android.media.swcodec",
|
|
],
|
|
min_sdk_version: "29",
|
|
}
|