mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
va: vpp: request video and alignment metas for src pool
This is for the pool used when importing raw video frames to surfaces. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2007>
This commit is contained in:
parent
f7aafa74ab
commit
bcbe620006
1 changed files with 3 additions and 0 deletions
|
@ -425,6 +425,9 @@ _create_sinkpad_bufferpool (GstCaps * caps, guint size, guint min_buffers,
|
|||
max_buffers);
|
||||
gst_buffer_pool_config_set_va_allocation_params (config, usage_hint);
|
||||
gst_buffer_pool_config_set_allocator (config, allocator, alloc_params);
|
||||
gst_buffer_pool_config_add_option (config, GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||
gst_buffer_pool_config_add_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT);
|
||||
|
||||
if (!gst_buffer_pool_set_config (pool, config))
|
||||
gst_clear_object (&pool);
|
||||
|
|
Loading…
Reference in a new issue