Commit 818e42a7 authored by Debargha Mukherjee's avatar Debargha Mukherjee
Browse files

Disable filtering for Cb and Cr components

The parameters are optimized only on Y, so disable chrominance
filtering for now. Later we can extend the syntax to have
separate parameters for the chrominance, or optimize the
parameters jointly over luminance and chrominance components.

lowres: -0.676% (from -0.759%) becomes a little worse
midres: -1.837% (from -1.520%) substantial improvement
hdres: pending

Change-Id: I98d71f48de98394b05fd9036de259cb43d007614
parent 840b2be4
......@@ -22,6 +22,9 @@
static int domaintxfmrf_vtable[DOMAINTXFMRF_ITERS][DOMAINTXFMRF_PARAMS][256];
// Whether to filter only y or not
static const int override_y_only[RESTORE_TYPES] = { 1, 1, 1, 1, 1 };
static const int domaintxfmrf_params[DOMAINTXFMRF_PARAMS] = {
48, 52, 56, 60, 64, 68, 72, 76, 80, 82, 84, 86, 88,
90, 92, 94, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
......@@ -1023,6 +1026,9 @@ void av1_loop_restoration_rows(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm,
aom_internal_error(&cm->error, AOM_CODEC_MEM_ERROR,
"Failed to allocate tmp restoration buffer");
if (y_only == 0)
y_only = override_y_only[cm->rst_internal.rsi->frame_restoration_type];
#if CONFIG_AOM_HIGHBITDEPTH
if (cm->use_highbitdepth)
restore_func_highbd(frame->y_buffer + ystart * ystride, ywidth,
......
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