qp clip in deblock
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)
| This list contains all users that will be notified about changes made to this ticket. These roles will be notified: Reporter, Owner, Subscriber, Participant - jvet@…(Subscriber)
- Karl Sharman(Subscriber)
- karl.sharman@…(Always)
- Karsten Suehring(Subscriber, Always)
- xiangbin hu(Reporter)
|