mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vulkan/video: copy the profile over for h264 encode.
This allows is to use it for encoding h264 headers. Acked-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25900>
This commit is contained in:
parent
24b6a047ee
commit
1e16851ab1
2 changed files with 2 additions and 0 deletions
|
|
@ -520,6 +520,7 @@ vk_video_session_parameters_init(struct vk_device *device,
|
|||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
}
|
||||
|
||||
params->h264_enc.profile_idc = vid->h264.profile_idc;
|
||||
init_add_h264_enc_session_parameters(params, h264_create->pParametersAddInfo, templ);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,6 +145,7 @@ struct vk_video_session_parameters {
|
|||
struct vk_video_h264_sps *h264_sps;
|
||||
uint32_t h264_pps_count;
|
||||
struct vk_video_h264_pps *h264_pps;
|
||||
StdVideoH264ProfileIdc profile_idc;
|
||||
} h264_enc;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue