Skip to content

[DDI] Allow exporting 8-bit single-channel (Y8/400P) surfaces#2013

Open
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix/issue-1436
Open

[DDI] Allow exporting 8-bit single-channel (Y8/400P) surfaces#2013
XinfengZhang wants to merge 1 commit into
intel:masterfrom
XinfengZhang:fix/issue-1436

Conversation

@XinfengZhang

Copy link
Copy Markdown
Contributor

Summary

DdiMedia_ExportSurfaceHandle could not export 8-bit single-channel
(grayscale) surfaces because the DRM-format helpers only mapped
VA_FOURCC_Y800. This adds VA_FOURCC_Y8 and VA_FOURCC('4','0','0','P')
as fallthroughs to the existing Y800 case (all are 8-bit single channel →
DRM_FORMAT_R8) in both DdiMedia_GetDrmFormatOfSeparatePlane and
DdiMedia_GetDrmFormatOfCompositeObject.

DdiMedia_MediaFormatToOsFormat / DdiMedia_OsFormatToMediaFormat already
handle both fourccs, so only these two helpers needed updating.

Issue

Fixes #1436

DdiMedia_ExportSurfaceHandle could not export 8-bit grayscale surfaces
because the DRM-format helpers only mapped VA_FOURCC_Y800. Add
VA_FOURCC_Y8 and VA_FOURCC('4','0','0','P') as fallthroughs to the Y800
case (all 8-bit single channel, DRM_FORMAT_R8) in both
DdiMedia_GetDrmFormatOfSeparatePlane and DdiMedia_GetDrmFormatOfCompositeObject.

Fixes: intel#1436

Signed-off-by: Carl.Zhang <carl.zhang@intel.com>
@XinfengZhang XinfengZhang added verifying PR: fix ready and verifying with build/test Common memory, surface, ddi labels Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Common memory, surface, ddi verifying PR: fix ready and verifying with build/test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: DdiMedia_ExportSurfaceHandle: Cannot export a 8bit single channel surface

2 participants