Skip to content

Commit

Permalink
Add JPEG decoder 422H, 422V and 444P DRM output support for MTL
Browse files Browse the repository at this point in the history
Signed-off-by: Soon, Thean Siew <[email protected]>
  • Loading branch information
TheanSiew committed Aug 30, 2023
1 parent 77c20c4 commit a4b2597
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions media_softlet/linux/common/ddi/media_libva_interface_next.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4674,6 +4674,9 @@ uint32_t MediaLibvaInterfaceNext::GetDrmFormatOfSeparatePlane(uint32_t fourcc, i
case VA_FOURCC_I420:
case VA_FOURCC_YV12:
case VA_FOURCC_YV16:
case VA_FOURCC_422H:
case VA_FOURCC_422V:
case VA_FOURCC_444P:
case VA_FOURCC_Y800:
case VA_FOURCC_RGBP:
case VA_FOURCC_BGRP:
Expand Down Expand Up @@ -4750,6 +4753,9 @@ uint32_t MediaLibvaInterfaceNext::GetDrmFormatOfSeparatePlane(uint32_t fourcc, i
case VA_FOURCC_YV16:
case VA_FOURCC_RGBP:
case VA_FOURCC_BGRP:
case VA_FOURCC_422H:
case VA_FOURCC_422V:
case VA_FOURCC_444P:
return DRM_FORMAT_R8;
case VA_FOURCC_P010:
case VA_FOURCC_P012:
Expand All @@ -4774,6 +4780,12 @@ uint32_t MediaLibvaInterfaceNext::GetDrmFormatOfCompositeObject(uint32_t fourcc)
return DRM_FORMAT_YVU420;
case VA_FOURCC_YV16:
return DRM_FORMAT_YVU422;
case VA_FOURCC_422H:
return DRM_FORMAT_YUV422;
case VA_FOURCC_422V:
return DRM_FORMAT_YUV422;
case VA_FOURCC_444P:
return DRM_FORMAT_YUV444;
case VA_FOURCC_YUY2:
return DRM_FORMAT_YUYV;
case VA_FOURCC_YVYU:
Expand Down

0 comments on commit a4b2597

Please sign in to comment.