mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
vulkan/video: add vp9 decode
Reviewed-by: David Rosca <david.rosca@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35398>
This commit is contained in:
parent
a0f4cbe6f7
commit
3fe375eca5
2 changed files with 14 additions and 1 deletions
|
|
@ -66,7 +66,14 @@ vk_video_session_init(struct vk_device *device,
|
|||
vid->av1.profile = av1_profile->stdProfile;
|
||||
vid->av1.film_grain_support = av1_profile->filmGrainSupport;
|
||||
break;
|
||||
};
|
||||
}
|
||||
case VK_VIDEO_CODEC_OPERATION_DECODE_VP9_BIT_KHR: {
|
||||
const struct VkVideoDecodeVP9ProfileInfoKHR *vp9_profile =
|
||||
vk_find_struct_const(create_info->pVideoProfile->pNext,
|
||||
VIDEO_DECODE_VP9_PROFILE_INFO_KHR);
|
||||
vid->vp9.profile = vp9_profile->stdProfile;
|
||||
break;
|
||||
}
|
||||
case VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR: {
|
||||
const struct VkVideoEncodeH264ProfileInfoKHR *h264_profile =
|
||||
vk_find_struct_const(create_info->pVideoProfile->pNext, VIDEO_ENCODE_H264_PROFILE_INFO_KHR);
|
||||
|
|
@ -502,6 +509,9 @@ vk_video_session_parameters_init(struct vk_device *device,
|
|||
}
|
||||
break;
|
||||
}
|
||||
case VK_VIDEO_CODEC_OPERATION_DECODE_VP9_BIT_KHR: {
|
||||
break;
|
||||
}
|
||||
case VK_VIDEO_CODEC_OPERATION_ENCODE_H264_BIT_KHR: {
|
||||
const struct VkVideoEncodeH264SessionParametersCreateInfoKHR *h264_create =
|
||||
vk_find_struct_const(create_info->pNext, VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_KHR);
|
||||
|
|
|
|||
|
|
@ -103,6 +103,9 @@ struct vk_video_session {
|
|||
StdVideoAV1Profile profile;
|
||||
int film_grain_support;
|
||||
} av1;
|
||||
struct {
|
||||
StdVideoVP9Profile profile;
|
||||
} vp9;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue