projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d1f1a
)
Reset dqcoeff[0] only if eob is 1
author
Jingning Han
<jingning@google.com>
Tue, 7 Jul 2015 22:18:30 +0000
(15:18 -0700)
committer
Jingning Han
<jingning@google.com>
Tue, 7 Jul 2015 22:20:34 +0000
(15:20 -0700)
If only the first dequantized coefficient is non-zero, reset
dqcoeff[0] to zero directly.
Change-Id: I0197ba72028a8ec436f0b1b9abcc1c0ae5d70abe
vp9/decoder/vp9_decodeframe.c
patch
|
blob
|
history
diff --git
a/vp9/decoder/vp9_decodeframe.c
b/vp9/decoder/vp9_decodeframe.c
index
6c64540
..
699f187
100644
(file)
--- a/
vp9/decoder/vp9_decodeframe.c
+++ b/
vp9/decoder/vp9_decodeframe.c
@@
-277,7
+277,7
@@
static void inverse_transform_block(MACROBLOCKD* xd, int plane, int block,
#endif // CONFIG_VP9_HIGHBITDEPTH
if (eob == 1) {
-
memset(dqcoeff, 0, 2 * sizeof(dqcoeff[0]))
;
+
dqcoeff[0] = 0
;
} else {
if (tx_type == DCT_DCT && tx_size <= TX_16X16 && eob <= 10)
memset(dqcoeff, 0, 4 * (4 << tx_size) * sizeof(dqcoeff[0]));