Branch dct to new implementation for bd12 Change-Id: I9281935653aacce22ac3100f79fb956c249e2bf3
diff --git a/vp10/common/idct.c b/vp10/common/idct.c index 0eec3b4..da50c03 100644 --- a/vp10/common/idct.c +++ b/vp10/common/idct.c
@@ -1302,11 +1302,8 @@ switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) - vp10_inv_txfm2d_add_4x4(input, CONVERT_TO_SHORTPTR(dest), stride, - &inv_txfm_2d_cfg_dct_dct_4, bd); - else - vp10_highbd_idct4x4_add(input, dest, stride, eob, bd); + vp10_inv_txfm2d_add_4x4(input, CONVERT_TO_SHORTPTR(dest), stride, + &inv_txfm_2d_cfg_dct_dct_4, bd); break; case ADST_DCT: case DCT_ADST: @@ -1343,13 +1340,11 @@ void vp10_highbd_inv_txfm_add_8x8(const tran_low_t *input, uint8_t *dest, int stride, int eob, int bd, TX_TYPE tx_type) { + (void)eob; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) - vp10_inv_txfm2d_add_8x8(input, CONVERT_TO_SHORTPTR(dest), stride, - &inv_txfm_2d_cfg_dct_dct_8, bd); - else - vp10_highbd_idct8x8_add(input, dest, stride, eob, bd); + vp10_inv_txfm2d_add_8x8(input, CONVERT_TO_SHORTPTR(dest), stride, + &inv_txfm_2d_cfg_dct_dct_8, bd); break; case ADST_DCT: case DCT_ADST: @@ -1386,13 +1381,11 @@ void vp10_highbd_inv_txfm_add_16x16(const tran_low_t *input, uint8_t *dest, int stride, int eob, int bd, TX_TYPE tx_type) { + (void)eob; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) - vp10_inv_txfm2d_add_16x16(input, CONVERT_TO_SHORTPTR(dest), stride, - &inv_txfm_2d_cfg_dct_dct_16, bd); - else - vp10_highbd_idct16x16_add(input, dest, stride, eob, bd); + vp10_inv_txfm2d_add_16x16(input, CONVERT_TO_SHORTPTR(dest), stride, + &inv_txfm_2d_cfg_dct_dct_16, bd); break; case ADST_DCT: case DCT_ADST: @@ -1429,13 +1422,11 @@ void vp10_highbd_inv_txfm_add_32x32(const tran_low_t *input, uint8_t *dest, int stride, int eob, int bd, TX_TYPE tx_type) { + (void)eob; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) - vp10_inv_txfm2d_add_32x32(input, CONVERT_TO_SHORTPTR(dest), stride, - &inv_txfm_2d_cfg_dct_dct_32, bd); - else - vp10_highbd_idct32x32_add(input, dest, stride, eob, bd); + vp10_inv_txfm2d_add_32x32(input, CONVERT_TO_SHORTPTR(dest), stride, + &inv_txfm_2d_cfg_dct_dct_32, bd); break; #if CONFIG_EXT_TX case ADST_DCT:
diff --git a/vp10/encoder/hybrid_fwd_txfm.c b/vp10/encoder/hybrid_fwd_txfm.c index 3ccaf39..07c6ba0 100644 --- a/vp10/encoder/hybrid_fwd_txfm.c +++ b/vp10/encoder/hybrid_fwd_txfm.c
@@ -195,12 +195,8 @@ switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) { - vp10_fwd_txfm2d_4x4(src_diff, coeff, diff_stride, - &fwd_txfm_2d_cfg_dct_dct_4, bd); - } else { - vp10_highbd_fht4x4(src_diff, coeff, diff_stride, tx_type); - } + vp10_fwd_txfm2d_4x4(src_diff, coeff, diff_stride, + &fwd_txfm_2d_cfg_dct_dct_4, bd); break; case ADST_DCT: case DCT_ADST: @@ -239,11 +235,9 @@ (void)fwd_txfm_opt; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) { - vp10_fwd_txfm2d_8x8(src_diff, coeff, diff_stride, - &fwd_txfm_2d_cfg_dct_dct_8, bd); - break; - } + vp10_fwd_txfm2d_8x8(src_diff, coeff, diff_stride, + &fwd_txfm_2d_cfg_dct_dct_8, bd); + break; case ADST_DCT: case DCT_ADST: case ADST_ADST: @@ -285,11 +279,9 @@ (void)fwd_txfm_opt; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) { - vp10_fwd_txfm2d_16x16(src_diff, coeff, diff_stride, - &fwd_txfm_2d_cfg_dct_dct_16, bd); - break; - } + vp10_fwd_txfm2d_16x16(src_diff, coeff, diff_stride, + &fwd_txfm_2d_cfg_dct_dct_16, bd); + break; case ADST_DCT: case DCT_ADST: case ADST_ADST: @@ -329,18 +321,12 @@ tran_low_t *coeff, int diff_stride, TX_TYPE tx_type, FWD_TXFM_OPT fwd_txfm_opt, const int bd) { - (void)bd; + (void)rd_transform; + (void)fwd_txfm_opt; switch (tx_type) { case DCT_DCT: - if (bd == BITDEPTH_10) { - vp10_fwd_txfm2d_32x32(src_diff, coeff, diff_stride, - &fwd_txfm_2d_cfg_dct_dct_32, bd); - } else { - if (fwd_txfm_opt == FWD_TXFM_OPT_NORMAL) - highbd_fdct32x32(rd_transform, src_diff, coeff, diff_stride); - else // FWD_TXFM_OPT_DC - vpx_highbd_fdct32x32_1(src_diff, coeff, diff_stride); - } + vp10_fwd_txfm2d_32x32(src_diff, coeff, diff_stride, + &fwd_txfm_2d_cfg_dct_dct_32, bd); break; #if CONFIG_EXT_TX case ADST_DCT: