Commit 5f7f3677 authored by Debargha Mukherjee's avatar Debargha Mukherjee

Change tilesize to 256x256 for >CIF resolutions

An improvement in coding efficiency for higher resolution
sources. Plus having this on by default will guard against
256x256 LRU support not being inadvertently broken.

Change-Id: I171b3c310eab72e27390e9ad0aa9c362f7fbb508
parent 6eb9da2c
......@@ -4813,7 +4813,10 @@ static void set_restoration_unit_size(int width, int height, int sx, int sy,
int s = 0;
#endif // !COUPLED_CHROMA_FROM_LUMA_RESTORATION
rst[0].restoration_unit_size = (RESTORATION_TILESIZE_MAX >> 1);
if (width * height > 352 * 288)
rst[0].restoration_unit_size = RESTORATION_TILESIZE_MAX;
else
rst[0].restoration_unit_size = (RESTORATION_TILESIZE_MAX >> 1);
rst[1].restoration_unit_size = rst[0].restoration_unit_size >> s;
rst[2].restoration_unit_size = rst[1].restoration_unit_size;
}
......
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