ref: ef77ce4407455c4db0c19076bf418ac2141a45c5
parent: 0b769b292929cb38055fa7f6d4aebd1b171a17d1
parent: 53a11656cd4f38c8d005f18ff7e00ca64c4d004b
author: Yaowu Xu <[email protected]>
date: Mon Jan 4 21:29:05 EST 2016
Merge "vp10: only assume ONLY_4X4 if segmentation is disabled."
--- a/vp10/decoder/decodeframe.c
+++ b/vp10/decoder/decodeframe.c
@@ -2109,8 +2109,8 @@
setup_segmentation_dequant(cm);
#if CONFIG_MISC_FIXES
- cm->tx_mode = (xd->lossless[0]) ? ONLY_4X4
- : read_tx_mode(rb);
+ cm->tx_mode = (!cm->seg.enabled && xd->lossless[0]) ? ONLY_4X4
+ : read_tx_mode(rb);
cm->reference_mode = read_frame_reference_mode(cm, rb);
#endif
--- a/vp10/encoder/bitstream.c
+++ b/vp10/encoder/bitstream.c
@@ -1261,7 +1261,7 @@
encode_quantization(cm, wb);
encode_segmentation(cm, xd, wb);
#if CONFIG_MISC_FIXES
- if (xd->lossless[0])
+ if (!cm->seg.enabled && xd->lossless[0])
cm->tx_mode = TX_4X4;
else
write_txfm_mode(cm->tx_mode, wb);