Commit 09fb253b authored by Ronald S. Bultje's avatar Ronald S. Bultje Committed by Gerrit Code Review
Browse files

Merge "Invert SB probability." into experimental

parents 8fc5774f ef50e483
...@@ -2561,7 +2561,7 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size) ...@@ -2561,7 +2561,7 @@ void vp8_pack_bitstream(VP8_COMP *cpi, unsigned char *dest, unsigned long *size)
/* sb mode probability */ /* sb mode probability */
const int sb_max = (((pc->mb_rows + 1) >> 1) * ((pc->mb_cols + 1) >> 1)); 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); vp8_write_literal(&header_bc, pc->sb_coded, 8);
} }
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment