Skip to content

Commit

Permalink
[Decode] Add check for JPEG using VDSFC
Browse files Browse the repository at this point in the history
Check use JPEG VDSFC if HW do not support and return
  • Loading branch information
XuanJessica authored and intel-mediadev committed Nov 22, 2023
1 parent 4a76d46 commit 73ee40b
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ MOS_STATUS JpegDownSamplingFeature::Update(void* params)
DecodeDownSamplingFeature::Update(decodeParams);
}
}
else
{
if ((!MEDIA_IS_SKU(m_osInterface->pfnGetSkuTable(m_osInterface), FtrSFCPipe) ||
MEDIA_IS_SKU(m_osInterface->pfnGetSkuTable(m_osInterface), FtrDisableVDBox2SFC)) &&
m_basicFeature->m_destSurface.Format == Format_A8R8G8B8)
{
DECODE_ASSERTMESSAGE("Don't support using SFC to convert.");
return MOS_STATUS_INVALID_PARAMETER;
}
}

return MOS_STATUS_SUCCESS;
}
Expand Down

0 comments on commit 73ee40b

Please sign in to comment.