Commit 9b468fd9 authored by Angie Chiang's avatar Angie Chiang

Correct the tx blk size for mismatch_debug

Change-Id: I4eadddf7c3e99a9a71fd858e46970c1b7d3cd713
parent 3ab64bdc
......@@ -282,8 +282,8 @@ static void decode_reconstruct_tx(AV1_COMMON *cm, MACROBLOCKD *const xd,
max_scan_line, eob, cm->reduced_tx_set_used);
#if CONFIG_MISMATCH_DEBUG
int pixel_c, pixel_r;
int blk_w = block_size_wide[plane_bsize];
int blk_h = block_size_high[plane_bsize];
int blk_w = block_size_wide[bsize];
int blk_h = block_size_high[bsize];
mi_to_pixel_loc(&pixel_c, &pixel_r, mi_col, mi_row, blk_col, blk_row,
pd->subsampling_x, pd->subsampling_y);
mismatch_check_block_tx(dst, pd->dst.stride, plane, pixel_c, pixel_r, blk_w,
......
......@@ -678,8 +678,9 @@ static void encode_block(int plane, int block, int blk_row, int blk_col,
#if CONFIG_MISMATCH_DEBUG
if (dry_run == OUTPUT_ENABLED) {
int pixel_c, pixel_r;
int blk_w = block_size_wide[plane_bsize];
int blk_h = block_size_high[plane_bsize];
BLOCK_SIZE bsize = txsize_to_bsize[tx_size];
int blk_w = block_size_wide[bsize];
int blk_h = block_size_high[bsize];
mi_to_pixel_loc(&pixel_c, &pixel_r, mi_col, mi_row, blk_col, blk_row,
pd->subsampling_x, pd->subsampling_y);
mismatch_record_block_tx(dst, pd->dst.stride, plane, pixel_c, pixel_r,
......
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