libhevc-mirror/tests/common
Narayan Kalaburgi 9886db71d3 libhevcdec: Unify itrans_res family and remove redundant HBD implementation
Currently, libhevc maintains two separate implementations for inverse
transform residual functions: ihevc_itrans_res_* and ihevc_hbd_itrans_res_*.

Since both 8-bit and HBD inverse transform residual routines output signed
16-bit residuals (WORD16 *pi2_dst), the only algorithmic difference between
8-bit and HBD variants is the 2nd stage shift:

    Stage 1 shift: IT_SHIFT_STAGE_1 = 7 (fixed across all bit depths)
    Stage 2 shift: shift = 20 - bit_depth
        - 8-bit:  20 - 8  = 12 (IT_SHIFT_STAGE_2)
        - 10-bit: 20 - 10 = 10

This commit cleans up the entire itrans_res family (4x4_ttype1, 4x4, dc, 8x8,
16x16, 32x32) as follows:

1. common/ihevc_itrans_res.h & common/ihevc_itrans_res.c:
   - Add 'UWORD8 bit_depth' parameter to ihevc_itrans_res_* function
     signatures and typedefs.
   - Replace hardcoded 'shift = IT_SHIFT_STAGE_2;' with 'shift = 20 - bit_depth;'.
   - Remove obsolete ihevc_hbd_itrans_res_* prototypes and typedefs.

2. common/ihevc_hbd_itrans_res.c:
   - Delete file (~2,335 redundant lines removed).

3. Update tests/common/ihevc_itrans_res_test.cc to test bit depths 8 and 10
2026-09-10 11:21:07 -07:00
..
Android.bp Few more updates in tests to build in Android 2026-08-02 20:17:13 +00:00
BitsBuf.cpp Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
BitsBuf.h Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
BitsFile.cpp Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
BitsFile.h Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
common.cmake Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
func_selector.cc Add few function selectors in common for modules defined in common. 2026-07-29 16:29:43 -07:00
func_selector.h Add few function selectors in common for modules defined in common. 2026-07-29 16:29:43 -07:00
helpers.cmake Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
ihevc_chroma_inter_pred_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_chroma_intra_pred_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_chroma_itrans_recon_test.cc Few more updates in tests to build in Android 2026-08-02 20:17:13 +00:00
ihevc_chroma_recon_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_deblk_test.cc Re-enable chroma deblock tests for arm 2026-09-03 15:29:00 -07:00
ihevc_itrans_recon_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_itrans_res_test.cc libhevcdec: Unify itrans_res family and remove redundant HBD implementation 2026-09-10 11:21:07 -07:00
ihevc_itrans_test.cc Few more updates in tests to build in Android 2026-08-02 20:17:13 +00:00
ihevc_luma_inter_pred_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_luma_intra_pred_test.cc libhevc: Update intrinsic for implicit RDPCM 2026-08-05 14:37:42 +00:00
ihevc_mem_fns_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_padding_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_recon_test.cc Few more updates in tests to build in Android 2026-08-02 20:17:13 +00:00
ihevc_sao_test.cc Update tests to run with atest 2026-07-31 17:05:23 +00:00
ihevc_weighted_pred_test.cc Few more updates in tests to build in Android 2026-08-02 20:17:13 +00:00
Md5Wrapper.cpp Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
Md5Wrapper.h Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
RawBuf.cpp Rename elementSize as pixelSize for consistency 2026-09-04 13:04:12 -07:00
RawBuf.h Updated decoder tests to enable HBD 2026-08-22 02:22:06 +00:00
RawFile.cpp Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
RawFile.h Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00
TestCommon.cc Added support for 420 10-bit decoding. 2026-08-07 03:21:32 +00:00
TestCommon.h Update tests to run with atest 2026-07-31 17:05:23 +00:00
TestEnums.h Add initial tests for decoder and encoder 2026-07-27 13:15:45 -07:00