libhevc-mirror/decoder/libhevcdec.cmake
Harish Mahendrakar 18947ba8fd decoder: Clean up HBD function pointers and rename to match convention
- Rename pf_hbd_ prefixed function pointers in func_selector_t to use _fptr suffix consistently.
- Update usages of renamed function pointers.
- Clean up HBD function pointer tables (remove ihevcd_hbd_func_tables.c/h).
- Implement HBD function pointer arrays in codec_t.

TAG=agy
CONV=51cc5812-336f-4b5f-990d-34fbf4d5ef08
2026-08-09 23:47:45 +00:00

76 lines
3 KiB
CMake

# src files
list(
APPEND
LIBHEVCDEC_SRCS
"${HEVC_ROOT}/decoder/ihevcd_version.c"
"${HEVC_ROOT}/decoder/ihevcd_api.c"
"${HEVC_ROOT}/decoder/ihevcd_decode.c"
"${HEVC_ROOT}/decoder/ihevcd_nal.c"
"${HEVC_ROOT}/decoder/ihevcd_bitstream.c"
"${HEVC_ROOT}/decoder/ihevcd_parse_headers.c"
"${HEVC_ROOT}/decoder/ihevcd_parse_slice_header.c"
"${HEVC_ROOT}/decoder/ihevcd_parse_slice.c"
"${HEVC_ROOT}/decoder/ihevcd_parse_residual.c"
"${HEVC_ROOT}/decoder/ihevcd_cabac.c"
"${HEVC_ROOT}/decoder/ihevcd_intra_pred_mode_prediction.c"
"${HEVC_ROOT}/decoder/ihevcd_process_slice.c"
"${HEVC_ROOT}/decoder/ihevcd_utils.c"
"${HEVC_ROOT}/decoder/ihevcd_job_queue.c"
"${HEVC_ROOT}/decoder/ihevcd_ref_list.c"
"${HEVC_ROOT}/decoder/ihevcd_get_mv.c"
"${HEVC_ROOT}/decoder/ihevcd_mv_pred.c"
"${HEVC_ROOT}/decoder/ihevcd_mv_merge.c"
"${HEVC_ROOT}/decoder/ihevcd_iquant_itrans_recon_ctb.c"
"${HEVC_ROOT}/decoder/ihevcd_itrans_recon_dc.c"
"${HEVC_ROOT}/decoder/ihevcd_common_tables.c"
"${HEVC_ROOT}/decoder/ihevcd_boundary_strength.c"
"${HEVC_ROOT}/decoder/ihevcd_deblk.c"
"${HEVC_ROOT}/decoder/ihevcd_inter_pred.c"
"${HEVC_ROOT}/decoder/ihevcd_sao.c"
"${HEVC_ROOT}/decoder/ihevcd_fmt_conv.c"
"${HEVC_ROOT}/decoder/ihevcd_function_selector_generic.c")
include_directories(${HEVC_ROOT}/decoder)
# arm/x86 sources
if("${SYSTEM_PROCESSOR}" STREQUAL "aarch64" OR "${SYSTEM_PROCESSOR}" STREQUAL "arm64")
list(
APPEND
LIBHEVCDEC_ASMS
"${HEVC_ROOT}/decoder/arm64/ihevcd_fmt_conv_420sp_to_420p.s"
"${HEVC_ROOT}/decoder/arm64/ihevcd_fmt_conv_420sp_to_420sp.s"
"${HEVC_ROOT}/decoder/arm/ihevcd_function_selector.c"
"${HEVC_ROOT}/decoder/arm64/ihevcd_function_selector_av8.c"
"${HEVC_ROOT}/decoder/arm64/ihevcd_itrans_recon_dc_chroma.s"
"${HEVC_ROOT}/decoder/arm64/ihevcd_itrans_recon_dc_luma.s")
include_directories(${HEVC_ROOT}/decoder/arm64)
elseif("${SYSTEM_PROCESSOR}" STREQUAL "aarch32")
list(
APPEND
LIBHEVCDEC_ASMS
"${HEVC_ROOT}/decoder/arm/ihevcd_fmt_conv_420sp_to_420p.s"
"${HEVC_ROOT}/decoder/arm/ihevcd_fmt_conv_420sp_to_420sp.s"
"${HEVC_ROOT}/decoder/arm/ihevcd_function_selector_a9q.c"
"${HEVC_ROOT}/decoder/arm/ihevcd_function_selector.c"
"${HEVC_ROOT}/decoder/arm/ihevcd_itrans_recon_dc_chroma.s"
"${HEVC_ROOT}/decoder/arm/ihevcd_itrans_recon_dc_luma.s")
include_directories(${HEVC_ROOT}/decoder/arm)
else()
list(
APPEND
LIBHEVCDEC_SRCS
"${HEVC_ROOT}/decoder/x86/ihevcd_function_selector.c"
"${HEVC_ROOT}/decoder/x86/ihevcd_function_selector_ssse3.c"
"${HEVC_ROOT}/decoder/x86/ihevcd_function_selector_sse42.c"
"${HEVC_ROOT}/decoder/x86/ihevcd_fmt_conv_ssse3_intr.c"
"${HEVC_ROOT}/decoder/x86/ihevcd_it_rec_dc_ssse3_intr.c"
"${HEVC_ROOT}/decoder/x86/ihevcd_it_rec_dc_sse42_intr.c")
include_directories(${HEVC_ROOT}/decoder/x86)
endif()
add_library(libhevcdec STATIC ${LIBHEVC_COMMON_SRCS} ${LIBHEVC_COMMON_ASMS}
${LIBHEVCDEC_ASMS} ${LIBHEVCDEC_SRCS})
target_compile_definitions(libhevcdec PRIVATE ENABLE_MAIN_REXT_PROFILE)