Commit e3b604d6 authored by Angie Chiang's avatar Angie Chiang
Browse files

Fix conflict between txmg exp and hbd mode

Change-Id: I5558e18c8c706474df28e51e6ac9f598e0e2ab48
parent 482551b1
......@@ -2247,7 +2247,11 @@ void av1_inverse_transform_block(const MACROBLOCKD *xd,
txfm_param.mode = mode;
#endif
const int is_hbd = get_bitdepth_data_path_index(xd);
#if CONFIG_TXMG
if (is_hbd) {
av1_highbd_inv_txfm_add(dqcoeff, dst, stride, &txfm_param);
} else {
DECLARE_ALIGNED(16, uint16_t, tmp[MAX_TX_SQUARE]);
int tmp_stride = MAX_TX_SIZE;
int w = tx_size_wide[tx_size];
......@@ -2266,8 +2270,8 @@ void av1_inverse_transform_block(const MACROBLOCKD *xd,
dst[r * stride + c] = tmp[r * tmp_stride + c];
}
}
}
#else // CONFIG_TXMG
const int is_hbd = get_bitdepth_data_path_index(xd);
inv_txfm_func[is_hbd](dqcoeff, dst, stride, &txfm_param);
#endif // CONFIG_TXMG
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment