﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
51	Possible bug during ERP to RVP conversion in PSNR computation	lenchik		"The current 360Lib code (360Lib-3.0rc1) with HM-16.15 while converting from ERP to RVP, we observe PSNR is not calculated properly may be due to not setting the bit depths as SPSNR_NN is disabled for RVP. We think the following might be a bug. 

Old code: At line 2119 in source\App\utils\TApp360Convert\TApp360ConvertCfg.cpp

#if SVIDEO_SPSNR_NN
    cSPSNRCalc.setSPSNREnabledFlag(m_psnrEnabled[METRIC_SPSNR_NN]);
    if(m_psnrEnabled[METRIC_SPSNR_NN])
    {
      cPSNRCalc.setOutputBitDepth(m_outputBitDepth);
      cPSNRCalc.setReferenceBitDepth(m_referenceBitDepth);
      cSPSNRCalc.setOutputBitDepth(m_outputBitDepth);
      cSPSNRCalc.setReferenceBitDepth(m_referenceBitDepth);
    }
#endif

Suggested new code:
#if SVIDEO_SPSNR_NN
    if (m_psnrEnabled[METRIC_PSNR])
    {
      cPSNRCalc.setOutputBitDepth(m_outputBitDepth);
      cPSNRCalc.setReferenceBitDepth(m_referenceBitDepth);
    }

    cSPSNRCalc.setSPSNREnabledFlag(m_psnrEnabled[METRIC_SPSNR_NN]);
    if(m_psnrEnabled[METRIC_SPSNR_NN])
    {
      cSPSNRCalc.setOutputBitDepth(m_outputBitDepth);
      cSPSNRCalc.setReferenceBitDepth(m_referenceBitDepth);
    }
#endif"	defect	closed	minor		360Lib		fixed		vzakharc yuwenhe jvet@…
