From cd77169b58fae8ce7fb80d88a1fb09621c0959b5 Mon Sep 17 00:00:00 2001 From: Christa03 Date: Mon, 18 Nov 2024 11:57:12 +0800 Subject: [PATCH] [Encode] BRC multi tile failures for specific tilegroup Translate 2 kind of avpPicState to huc for multi-tile --- .../codec/hal/enc/av1/packet/encode_av1_brc_update_packet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media_softlet/agnostic/common/codec/hal/enc/av1/packet/encode_av1_brc_update_packet.cpp b/media_softlet/agnostic/common/codec/hal/enc/av1/packet/encode_av1_brc_update_packet.cpp index bb837e20e89..f4fcfb96ca9 100644 --- a/media_softlet/agnostic/common/codec/hal/enc/av1/packet/encode_av1_brc_update_packet.cpp +++ b/media_softlet/agnostic/common/codec/hal/enc/av1/packet/encode_av1_brc_update_packet.cpp @@ -360,12 +360,12 @@ namespace encode #if _MEDIA_RESERVED RUN_FEATURE_INTERFACE_RETURN(Av1Scc, Av1FeatureIDs::av1Scc, UpdateIBCStatusForCurrentTile); #endif - if (firstTileInGroup) + if (tileRow == 0 && tileCol == 0) { SETPAR_AND_ADDCMD(AVP_PIC_STATE, m_avpItf, &cmdBuffer); ENCODE_CHK_STATUS_RETURN(AddBBEnd(m_miItf, cmdBuffer)); } - else + if (!firstTileInGroup) { slbData.avpPicStateCmdNum = 2; slbData.secondAvpPicStateOffset = (uint16_t)cmdBuffer.iOffset;