File tree 1 file changed +11
-3
lines changed
media_driver/agnostic/gen12/codec/hal
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1645,7 +1645,15 @@ MOS_STATUS CodechalDecodeHevcG12::SendPictureLongFormat()
1645
1645
CODECHAL_DECODE_CHK_STATUS_RETURN (InitPicLongFormatMhwParams ());
1646
1646
1647
1647
CODECHAL_DEBUG_TOOL (
1648
- for (int32_t n = 0 ; n < CODECHAL_MAX_CUR_NUM_REF_FRAME_HEVC; n++)
1648
+ uint32_t activeReferenceNumber = 0 ;
1649
+ for (uint32_t i = 0 ; i < CODECHAL_MAX_CUR_NUM_REF_FRAME_HEVC; i++)
1650
+ {
1651
+ if (m_frameUsedAsCurRef[i])
1652
+ {
1653
+ activeReferenceNumber++;
1654
+ }
1655
+ }
1656
+ for (uint32_t n = 0 ; n < activeReferenceNumber; n++)
1649
1657
{
1650
1658
if (m_picMhwParams.PipeBufAddrParams ->presReferences [n])
1651
1659
{
@@ -1657,11 +1665,11 @@ MOS_STATUS CodechalDecodeHevcG12::SendPictureLongFormat()
1657
1665
m_osInterface,
1658
1666
&dstSurface));
1659
1667
1660
- m_debugInterface-> m_refIndex = ( uint16_t )n ;
1668
+ std::string refSurfDumpName = " RefSurf_ " + std::to_string (n) ;
1661
1669
CODECHAL_DECODE_CHK_STATUS_RETURN (m_debugInterface->DumpYUVSurface (
1662
1670
&dstSurface,
1663
1671
CodechalDbgAttr::attrDecodeReferenceSurfaces,
1664
- " RefSurf " ));
1672
+ refSurfDumpName. c_str () ));
1665
1673
}
1666
1674
1667
1675
if (m_picMhwParams.PipeBufAddrParams ->presColMvTempBuffer [n])
You can’t perform that action at this time.
0 commit comments