Commit af7846ec authored by U-AMR\zlei3's avatar U-AMR\zlei3 Committed by Ryan Lei
Browse files

fix a bug in update_boundary info function

the existing code in update_boundary info function always set tile
boundary. However, the cdef filter only check tile boundary info but
not the loopfilter_across_tile_boundary_enabled flag. so it always
disable filtering at the tile boundary no matter what the
loopfilter_across_tile_boundary_enabled is.

with this fix, tile boundary info is only set when
the loopfilter_across_tile_boundary_enabled is set to 0. otherwise
it should be ignored.

Change-Id: I67bda08b217dd862bbeef2fd38b7a444b2edf59b
parent 2e6cb7e7
......@@ -97,8 +97,16 @@ void av1_update_boundary_info(const struct AV1Common *cm,
// Loop filtering operation is done based on the
// loopfilter_across_tiles_enabled flag for both tile boundary and tile
// group boundary.
// the tile boundary flag is updated only when
// loopfilter_across_tiles_enabled value is 0.
if (cm->tile_cols * cm->tile_rows > 1) {
int lpf_across_tiles_enabled = 1;
lpf_across_tiles_enabled = cm->loop_filter_across_tiles_enabled;
if ((cm->tile_cols * cm->tile_rows > 1) && (!lpf_across_tiles_enabled)) {
if (row == tile_info->mi_row_start &&
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