Skip to content

Commit 9871479

Browse files
author
Isaac
committed
feat: gate VaaOnScreen sub-partition suppression on bSubcodecMode
1 parent 1c05425 commit 9871479

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third-party/openh264/third_party/openh264/src/codec/encoder/core/src/svc_mode_decision.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,11 @@ bool TryModeMerge (SMbCache* pMbCache, SWelsMD* pWelsMd, SMB* pCurMb) {
611611

612612
void WelsMdInterFinePartitionVaaOnScreen (sWelsEncCtx* pEncCtx, SWelsMD* pWelsMd, SSlice* pSlice, SMB* pCurMb,
613613
int32_t iBestCost) {
614+
// [subcodec] No sub-partition modes for sprite compositing.
615+
if (pEncCtx->pSvcParam->bSubcodecMode) {
616+
return;
617+
}
618+
614619
SMbCache* pMbCache = &pSlice->sMbCacheInfo;
615620
SDqLayer* pCurDqLayer = pEncCtx->pCurDqLayer;
616621
int32_t iCostP8x8;

0 commit comments

Comments
 (0)