Skip to content

Commit

Permalink
[VP] Add RGB24/RGB565 implementation in FC
Browse files Browse the repository at this point in the history
Add RGB24/RGB565 format implementation in FC
  • Loading branch information
wennibao authored and intel-mediadev committed Aug 30, 2024
1 parent e99b787 commit d953a3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media_softlet/agnostic/common/renderhal/renderhal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4285,6 +4285,8 @@ MOS_STATUS RenderHal_GetPlaneDefinitionForCommonMessage(
case Format_Y410:
case Format_P210:
case Format_P216:
case Format_R5G6B5:
case Format_R8G8B8:
//already handled rightly in normal non-adv GetPlaneDefinition
break;
case Format_NV12:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,8 @@ MOS_STATUS VpL0FcFilter::GetChromaSitingFactor(MOS_FORMAT format, uint8_t& hitSe
case Format_Y410:
case Format_Y416:
case Format_400P:
case Format_R5G6B5:
case Format_R8G8B8:
hitSecPlaneFactorX = 1;
hitSecPlaneFactorY = 1;
break;
Expand Down Expand Up @@ -714,6 +716,7 @@ MOS_STATUS VpL0FcFilter::GetBitNumber(MOS_FORMAT format, uint8_t *pOriginBitNumb
case Format_VYUY:
case Format_NV12:
case Format_400P:
case Format_R8G8B8:
storedBitNumber = 8;
originBitNumber = 8;
alphaBitNumber = 0;
Expand Down Expand Up @@ -1029,6 +1032,8 @@ MOS_STATUS VpL0FcFilter::ConvertInputChannelIndicesToKrnParam(MOS_FORMAT format,
case Format_B10G10R10A2:
case Format_A16R16G16B16:
case Format_A16R16G16B16F:
case Format_R5G6B5:
case Format_R8G8B8:
inputChannelIndices[0] = 0;
inputChannelIndices[1] = 1;
inputChannelIndices[2] = 2;
Expand Down Expand Up @@ -1125,6 +1130,8 @@ MOS_STATUS VpL0FcFilter::ConvertPlaneNumToKrnParam(MOS_FORMAT format, bool isInp
case Format_Y410:
case Format_Y416:
case Format_400P:
case Format_R5G6B5:
case Format_R8G8B8:
planeNum = 1;
break;
case Format_NV12:
Expand Down Expand Up @@ -1224,6 +1231,8 @@ MOS_STATUS VpL0FcFilter::ConvertOuputChannelIndicesToKrnParam(MOS_FORMAT format,
case Format_B10G10R10A2:
case Format_A16R16G16B16:
case Format_A16R16G16B16F:
case Format_R5G6B5:
case Format_R8G8B8:
dynamicChannelIndices[0] = 0;
dynamicChannelIndices[1] = 1;
dynamicChannelIndices[2] = 2;
Expand Down

0 comments on commit d953a3f

Please sign in to comment.