﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1521	qp clip in deblock	huxiangbin		" The qp is not cliped, using for TC and beta lookup tables when performing deblocking filtering on chroma in HM reference software,such as HM18.0 version,which is inconsistent with the protocol description. 

code in HM18.0：
        iQP = ((iQP_P + iQP_Q + 1) >> 1) + chromaQPOffset;
        if (iQP >= chromaQPMappingTableSize)
        {
          if (pcPicYuvRec->getChromaFormat()==CHROMA_420)
          {
            iQP -=6;
          }
          else if (iQP>51)
          {
            iQP=51;
          }
        }
        else if (iQP >= 0 )
        {
          iQP = getScaledChromaQP(iQP, pcPicYuvRec->getChromaFormat());
        }
qp clip in SPEC：
– The variables qPCb and qPCr are derived as follows:
– If tu_residual_act_flag[ xTbY ][ yTbY ] is equal to 0, the following applies:
qPiCb = Clip3( −QpBdOffsetC, 57, QpY + pps_cb_qp_offset + slice_cb_qp_offset + CuQpOffsetCb ) (8-287)
qPiCr = Clip3( −QpBdOffsetC, 57, QpY + pps_cr_qp_offset + slice_cr_qp_offset + CuQpOffsetCr ) (8-288) – Otherwise (tu_residual_act_flag[ xTbY ][ yTbY ] is equal to 1), the following applies:
qPiCb = Clip3( −QpBdOffsetC, 57, QpY + PpsActQpOffsetCb + slice_act_cb_qp_offset +
CuQpOffsetCb ) (8-289)
qPiCr = Clip3( −QpBdOffsetC, 57, QpY + PpsActQpOffsetCr + slice_act_cr_qp_offset +
CuQpOffsetCr ) (8-290)"	defect	new	minor		HM	v5 (02/2018)			ksuehring karlsharman jvet@…
