// inverse transform row vectors, and transpose
for (i = 0; i < 8; ++i) {
HIGH_IHT_4x8[tx_type].rows(input, outtmp, bd);
- for (j = 0; j < 4; ++j)
- out[j][i] = (tran_low_t)highbd_dct_const_round_shift(outtmp[j] * Sqrt2,
- bd);
+ for (j = 0; j < 4; ++j) {
+ out[j][i] = HIGHBD_WRAPLOW(
+ highbd_dct_const_round_shift(outtmp[j] * Sqrt2), bd);
+ }
input += 4;
}
// inverse transform row vectors, and transpose
for (i = 0; i < 4; ++i) {
HIGH_IHT_8x4[tx_type].rows(input, outtmp, bd);
- for (j = 0; j < 8; ++j)
- out[j][i] = (tran_low_t)highbd_dct_const_round_shift(outtmp[j] * Sqrt2,
- bd);
+ for (j = 0; j < 8; ++j) {
+ out[j][i] = HIGHBD_WRAPLOW(
+ highbd_dct_const_round_shift(outtmp[j] * Sqrt2), bd);
+ }
input += 8;
}