mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
vulkan/video: Add chroma subsampling to video session
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38158>
This commit is contained in:
parent
4d22427079
commit
67c0b7a529
2 changed files with 2 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ vk_video_session_init(struct vk_device *device,
|
|||
vid->max_active_ref_pics = create_info->maxActiveReferencePictures;
|
||||
vid->luma_bit_depth = create_info->pVideoProfile->lumaBitDepth;
|
||||
vid->chroma_bit_depth = create_info->pVideoProfile->chromaBitDepth;
|
||||
vid->chroma_subsampling = create_info->pVideoProfile->chromaSubsampling;
|
||||
|
||||
switch (vid->op) {
|
||||
case VK_VIDEO_CODEC_OPERATION_DECODE_H264_BIT_KHR: {
|
||||
|
|
|
|||
|
|
@ -83,6 +83,7 @@ struct vk_video_session {
|
|||
VkVideoCodecOperationFlagsKHR op;
|
||||
VkVideoComponentBitDepthFlagsKHR luma_bit_depth;
|
||||
VkVideoComponentBitDepthFlagsKHR chroma_bit_depth;
|
||||
VkVideoChromaSubsamplingFlagsKHR chroma_subsampling;
|
||||
VkExtent2D max_coded;
|
||||
VkFormat picture_format;
|
||||
VkFormat ref_format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue