projects
/
profile
/
ivi
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
315e3c2
)
correct cost for implicit bit in mvs
author
John Koleszar
<jkoleszar@google.com>
Wed, 9 Feb 2011 17:50:17 +0000
(12:50 -0500)
committer
John Koleszar
<jkoleszar@google.com>
Wed, 9 Feb 2011 17:50:17 +0000
(12:50 -0500)
Use 0xFFF0 vice 240 (0xF0) for determining whether the sometimes
implicit bit 3 will be transmitted. This is consistent with the decoder
and encode_mvcomponent().
Change-Id: Ic1304d0ab56844bed8236edd1c5243a6767fc6b1
vp8/encoder/encodemv.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/encodemv.c
b/vp8/encoder/encodemv.c
index
cce7530
..
4cb4c6e
100644
(file)
--- a/
vp8/encoder/encodemv.c
+++ b/
vp8/encoder/encodemv.c
@@
-128,7
+128,7
@@
static unsigned int cost_mvcomponent(const int v, const struct mv_context *mvc)
while (--i > 3);
- if (x &
24
0)
+ if (x &
0xFFF
0)
cost += vp8_cost_bit(p [MVPbits + 3], (x >> 3) & 1);
}