Reset dqcoeff[0] only if eob is 1
If only the first dequantized coefficient is non-zero, reset dqcoeff[0] to zero directly. Change-Id: I0197ba72028a8ec436f0b1b9abcc1c0ae5d70abe
This commit is contained in:
parent
97d1f1aaae
commit
76ccba9ec8
@ -277,7 +277,7 @@ static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block,
|
|||||||
#endif // CONFIG_VP9_HIGHBITDEPTH
|
#endif // CONFIG_VP9_HIGHBITDEPTH
|
||||||
|
|
||||||
if (eob == 1) {
|
if (eob == 1) {
|
||||||
memset(dqcoeff, 0, 2 * sizeof(dqcoeff[0]));
|
dqcoeff[0] = 0;
|
||||||
} else {
|
} else {
|
||||||
if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10)
|
if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10)
|
||||||
memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0]));
|
memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0]));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user