diff options
author | Ronald S. Bultje <rbultje@google.com> | 2012-10-22 11:05:56 -0700 |
---|---|---|
committer | Ronald S. Bultje <rbultje@google.com> | 2012-10-22 11:05:56 -0700 |
commit | ef50e48323078c823e993aedd087fe25e0afb7f1 (patch) | |
tree | d75a50c9f9ce889d3a25ef0c07ed567669d18a33 | |
parent | 6e5cb12886e464c7f744bb905ebccfde5bf378b9 (diff) | |
download | libvpx-ef50e48323078c823e993aedd087fe25e0afb7f1.tar libvpx-ef50e48323078c823e993aedd087fe25e0afb7f1.tar.gz libvpx-ef50e48323078c823e993aedd087fe25e0afb7f1.tar.bz2 libvpx-ef50e48323078c823e993aedd087fe25e0afb7f1.zip |
Invert SB probability.
It currently counts the probability that the branch is true, but it
should count the probability that the branch is false.
Change-Id: I963825da2e7a7ed3a613eb23ffd085e427dc36e5
-rw-r--r-- | vp8/encoder/bitstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c index 70cdb6aaf..f74f85fad 100644 --- 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 |