Commit 35e53713 authored by Steinar Midtskogen's avatar Steinar Midtskogen

Make CDEF only do luma if monochrome

Change-Id: I499fe2be873944e73334f681a0e8138cfccbea29
parent d16d8ee2
......@@ -167,7 +167,7 @@ void av1_cdef_frame(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm,
int xdec[3];
int ydec[3];
int coeff_shift = AOMMAX(cm->bit_depth - 8, 0);
int nplanes = MAX_MB_PLANE;
int nplanes = av1_num_planes(cm);
int chroma_cdef = xd->plane[1].subsampling_x == xd->plane[1].subsampling_y &&
xd->plane[2].subsampling_x == xd->plane[2].subsampling_y;
const int nvfb = (cm->mi_rows + MI_SIZE_64X64 - 1) / MI_SIZE_64X64;
......
......@@ -325,7 +325,7 @@ void av1_cdef_search(YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref,
int nb_strength_bits;
int quantizer;
double lambda;
int nplanes = 3;
int nplanes = av1_num_planes(cm);
const int total_strengths = fast ? REDUCED_TOTAL_STRENGTHS : TOTAL_STRENGTHS;
DECLARE_ALIGNED(32, uint16_t, inbuf[CDEF_INBUF_SIZE]);
uint16_t *in;
......
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