Add is_hbd field to TxfmParam
In preparation for Daala unified LBD/HBD TX, add (and use) is_hbd
field in TxfmPama structure. This field indicates whether or not
pixel data is using 8 or 16 bit reference buffers (currently ambiguous
in the case of 8 bit input).
Change-Id: I28bca792a48ffa00e208617adb072b08ff816e3c
diff --git a/av1/encoder/rdopt.c b/av1/encoder/rdopt.c
index 1ed95cb..d3090c4 100644
--- a/av1/encoder/rdopt.c
+++ b/av1/encoder/rdopt.c
@@ -4700,6 +4700,7 @@
param.tx_type = DCT_DCT;
param.tx_size = max_txsize_rect_lookup[bsize];
param.bd = xd->bd;
+ param.is_hbd = get_bitdepth_data_path_index(xd);
param.lossless = 0;
const struct macroblockd_plane *const pd = &xd->plane[0];
const BLOCK_SIZE plane_bsize =
@@ -4713,7 +4714,7 @@
#if CONFIG_TXMG
av1_highbd_fwd_txfm(p->src_diff, DCT_coefs, bw, ¶m);
#else // CONFIG_TXMG
- if (get_bitdepth_data_path_index(xd))
+ if (param.is_hbd)
av1_highbd_fwd_txfm(p->src_diff, DCT_coefs, bw, ¶m);
else
av1_fwd_txfm(p->src_diff, DCT_coefs, bw, ¶m);