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:
6e5cb12
)
Invert SB probability.
author
Ronald S. Bultje
<rbultje@google.com>
Mon, 22 Oct 2012 18:05:56 +0000
(11:05 -0700)
committer
Ronald S. Bultje
<rbultje@google.com>
Mon, 22 Oct 2012 18:05:56 +0000
(11:05 -0700)
It currently counts the probability that the branch is true, but it
should count the probability that the branch is false.
Change-Id: I963825da2e7a7ed3a613eb23ffd085e427dc36e5
vp8/encoder/bitstream.c
patch
|
blob
|
history
diff --git
a/vp8/encoder/bitstream.c
b/vp8/encoder/bitstream.c
index
70cdb6a
..
f74f85f
100644
(file)
--- a/
vp8/encoder/bitstream.c
+++ b/
vp8/encoder/bitstream.c
@@
-2561,7
+2561,7
@@
void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
/* sb mode probability */
const int sb_max = (((pc->mb_rows + 1) >> 1) * ((pc->mb_cols + 1) >> 1));
- pc->sb_coded = get_prob(cpi->sb_count, sb_max);
+ pc->sb_coded = get_prob(
sb_max -
cpi->sb_count, sb_max);
vp8_write_literal(&header_bc, pc->sb_coded, 8);
}
#endif