Add an assertion to av1_nonrd_pick_intra_mode()
In this CL, an assert is added in av1_nonrd_pick_intra_mode()
to check that mi->tx_size=TX_4X4 when
xd->lossless[mi->segment_id] is set.
Change-Id: I2436ba30c6525a00b930abc6624ed4a142fc31c3
diff --git a/av1/encoder/nonrd_pickmode.c b/av1/encoder/nonrd_pickmode.c
index 0b30aa8..fc57ff1 100644
--- a/av1/encoder/nonrd_pickmode.c
+++ b/av1/encoder/nonrd_pickmode.c
@@ -2277,6 +2277,7 @@
mi->tx_size =
AOMMIN(max_txsize_lookup[bsize],
tx_mode_to_biggest_tx_size[txfm_params->tx_mode_search_type]);
+ assert(IMPLIES(xd->lossless[mi->segment_id], mi->tx_size == TX_4X4));
const BLOCK_SIZE tx_bsize = txsize_to_bsize[mi->tx_size];
// If the current block size is the same as the transform block size, enable