Skip to content

Commit ed787b2

Browse files
jiafengy1intel-mediadev
authored andcommitted
[VP] add print message
add print message_
1 parent f24fefe commit ed787b2

File tree

1 file changed

+23
-0
lines changed
  • media_softlet/agnostic/common/vp/hal/feature_manager

1 file changed

+23
-0
lines changed

media_softlet/agnostic/common/vp/hal/feature_manager/policy.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,24 @@ MOS_STATUS Policy::GetCSCExecutionCaps(SwFilter* feature, bool isCamPipeWithBaye
12411241
{
12421242
cscEngine->VeboxNeeded = 1;
12431243
}
1244+
else
1245+
{
1246+
VP_PUBLIC_NORMALMESSAGE("vebox cannot be selected. For vebox selection, cscParams->pIEFParams (%p) expected nulptr, \
1247+
veboxHwCap[format %d].inputSupported (%d) expected 1, \
1248+
(veboxHwCap[format %d].outputSupported (%d) || \
1249+
(isCamPipeWithBayerInput(%d) && IsDemosaicValidOutputFormat(cscParams->formatOutput(Format %d))(%d))) expected 1, \
1250+
veboxHwCap[Format %d].iecp (%d) expect 1, \
1251+
veboxHwCap[format %d].backEndCscSupported (%d) expect 1 \
1252+
isAlphaSettingSupportedByVebox (%d) expect 1" ,
1253+
cscParams->pIEFParams,
1254+
cscParams->formatInput, m_hwCaps.m_veboxHwEntry[cscParams->formatInput].inputSupported,
1255+
cscParams->formatOutput, m_hwCaps.m_veboxHwEntry[cscParams->formatOutput].outputSupported,
1256+
isCamPipeWithBayerInput,cscParams->formatOutput,IsDemosaicValidOutputFormat(cscParams->formatOutput),
1257+
cscParams->formatInput, m_hwCaps.m_veboxHwEntry[cscParams->formatInput].iecp,
1258+
cscParams->formatInput, m_hwCaps.m_veboxHwEntry[cscParams->formatInput].backEndCscSupported,
1259+
isAlphaSettingSupportedByVebox);
1260+
1261+
}
12441262
}
12451263

12461264
PrintFeatureExecutionCaps(__FUNCTION__, *cscEngine);
@@ -1635,11 +1653,16 @@ MOS_STATUS Policy::GetScalingExecutionCaps(SwFilter *feature, bool isHdrEnabled,
16351653
if (!sfc2PassScalingNeededX && !sfc2PassScalingNeededY)
16361654
{
16371655
scalingEngine->SfcNeeded = isAlphaSettingSupportedBySfc;
1656+
if (!isAlphaSettingSupportedBySfc)
1657+
{
1658+
VP_PUBLIC_NORMALMESSAGE("Sfc cannot be used for scaling as alpha not supported by SFC.");
1659+
}
16381660
}
16391661
else
16401662
{
16411663
// Set sfcNotSupported to 1 to avoid SFC being selected without scaling filter.
16421664
scalingEngine->sfcNotSupported = 1;
1665+
VP_PUBLIC_NORMALMESSAGE("sfcNotSupported is set to 1 for 2-pass scaling being needed.");
16431666
}
16441667
}
16451668
}

0 commit comments

Comments
 (0)