Commit 6a274714 authored by Nan Hu's avatar Nan Hu

minor encoder fix for filter RD cost under JVET_L0664_ALF_REMOVE_LUMA_5x5

parent 59693f36
......@@ -738,8 +738,12 @@ double EncAdaptiveLoopFilter::mergeFiltersAndCost( AlfSliceParam& alfSliceParam,
int EncAdaptiveLoopFilter::getNonFilterCoeffRate( AlfSliceParam& alfSliceParam )
{
#if JVET_L0664_ALF_REMOVE_LUMA_5x5
int len = 1 // alf_coefficients_delta_flag
#else
int len = 1 // filter_type
+ 1 // alf_coefficients_delta_flag
#endif
+ lengthTruncatedUnary( 0, 3 ) // chroma_idc = 0, it is signalled when ALF is enabled for luma
+ getTBlength( alfSliceParam.numLumaFilters - 1, MAX_NUM_ALF_CLASSES ); //numLumaFilters
......
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