mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
vulkan/video: Reject interlaced picture layout for H.264 baseline profile
The H.264 baseline profile does not support interlaced content. Return VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR when a non-progressive picture layout is requested with a baseline profile. Reviewed-by: Hyunjun Ko <zzoon@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40942>
This commit is contained in:
parent
94cac134dd
commit
242130fde5
1 changed files with 3 additions and 0 deletions
|
|
@ -3375,6 +3375,9 @@ vk_video_is_profile_supported(const VkVideoProfileInfoKHR *video_profile)
|
|||
case VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR: {
|
||||
const struct VkVideoDecodeH264ProfileInfoKHR *h264_profile =
|
||||
vk_find_struct_const(video_profile->pNext, VIDEO_DECODE_H264_PROFILE_INFO_KHR);
|
||||
if (h264_profile->stdProfileIdc == STD_VIDEO_H264_PROFILE_IDC_BASELINE &&
|
||||
h264_profile->pictureLayout != VK_VIDEO_DECODE_H264_PICTURE_LAYOUT_PROGRESSIVE_KHR)
|
||||
return VK_ERROR_VIDEO_PICTURE_LAYOUT_NOT_SUPPORTED_KHR;
|
||||
return is_h264_profile_supported(video_profile, h264_profile->stdProfileIdc);
|
||||
}
|
||||
case VK_VIDEO_CODEC_OPERATION_DECODE_H265_BIT_KHR: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue