Commit 90b305a9 authored by Nathan E. Egge's avatar Nathan E. Egge Committed by Nathan Egge
Browse files

Compute token_stats in aom_write_bit_record() function.

The RD_DEBUG experiment computes stats in the _record() functions which
 then proxy calls through to the actual bit writer.
The aom_write_bit_record() should proxy calls through to aom_write_bit()
 instead of aom_write() with probability 128.

Change-Id: I7617fad0f2c25dc05cf111c660a90068c3f4c513
parent 70669125
......@@ -116,7 +116,12 @@ static INLINE void aom_write_bit(aom_writer *w, int bit) {
static INLINE void aom_write_bit_record(aom_writer *w, int bit,
TOKEN_STATS *token_stats) {
aom_write_record(w, bit, 128, token_stats); // aom_prob_half
aom_write_bit(w, bit);
token_stats->cost += av1_cost_bit(128, bit); // aom_prob_half
static INLINE void aom_write_literal(aom_writer *w, int data, int bits) {
Markdown is supported
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