Commit bf0e9b65 authored by Xiang Li's avatar Xiang Li

Merge branch 'L0392_L0664' into 'master'

minor encoder fix for filter RD cost related to JVET_L0664_ALF_REMOVE_LUMA_5x5

See merge request !23
parents 59693f36 6a274714
Pipeline #162 passed with stage
......@@ -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
+ 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