Commit efa76d7e authored by Rupert Swarbrick's avatar Rupert Swarbrick Committed by Debargha Mukherjee

Correct a loop restoration buffer size

On subsampled planes, the frame is narrower but the padding by
RESTORATION_EXTRA_HORZ on each side is the same width as usual.

Change-Id: Id68c0dd674efaa769412825b119ae5ebe56548ad
parent 0edbdcde
......@@ -150,7 +150,7 @@ void av1_alloc_restoration_buffers(AV1_COMMON *cm) {
const int is_uv = p > 0;
const int ss_x = is_uv && cm->subsampling_x;
const int plane_w = (frame_w + 2 * RESTORATION_EXTRA_HORZ + ss_x) >> ss_x;
const int plane_w = ((frame_w + ss_x) >> ss_x) + 2 * RESTORATION_EXTRA_HORZ;
const int align_bits = 5; // align for efficiency
const int stride = ALIGN_POWER_OF_TWO(plane_w, align_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