Commit 8c2b913b authored by Hui Su's avatar Hui Su
Browse files

TX block hash: record the eob value

BUG=aomedia:1093

Change-Id: I0871c67d9a2ddc6aa9d3084f645305f6b74a999f
parent 4ae3e415
......@@ -144,7 +144,7 @@ typedef struct {
typedef struct {
int64_t dist;
int rate;
uint8_t skip;
uint16_t eob;
uint8_t entropy_context;
uint8_t valid;
uint8_t fast;
......
......@@ -3687,7 +3687,8 @@ void av1_tx_block_rd_b(const AV1_COMP *cpi, MACROBLOCK *x, TX_SIZE tx_size,
rd_info_array[tx_type].fast == fast) {
rd_stats->dist += rd_info_array[tx_type].dist;
rd_stats->rate += rd_info_array[tx_type].rate;
rd_stats->skip &= rd_info_array[tx_type].skip;
rd_stats->skip &= rd_info_array[tx_type].eob == 0;
p->eobs[block] = rd_info_array[tx_type].eob;
return;
}
......@@ -3817,7 +3818,7 @@ void av1_tx_block_rd_b(const AV1_COMP *cpi, MACROBLOCK *x, TX_SIZE tx_size,
rd_info_array[tx_type].fast = fast;
rd_info_array[tx_type].dist = cur_dist;
rd_info_array[tx_type].rate = cur_rate;
rd_info_array[tx_type].skip = cur_skip;
rd_info_array[tx_type].eob = eob;
}
rd_stats->dist += cur_dist;
......
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