mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
va: dec: Use gst_buffer_pool_config_set_va_alignment() to set alignment.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2282>
This commit is contained in:
parent
163cbd5892
commit
264e577e7e
1 changed files with 4 additions and 10 deletions
|
@ -385,11 +385,8 @@ _decide_allocation_for_video_crop (GstVideoDecoder * decoder,
|
|||
gst_buffer_pool_config_add_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||
|
||||
if (_need_video_crop (base)) {
|
||||
gst_buffer_pool_config_add_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT);
|
||||
gst_buffer_pool_config_set_video_alignment (config, &base->valign);
|
||||
}
|
||||
if (_need_video_crop (base))
|
||||
gst_buffer_pool_config_set_va_alignment (config, &base->valign);
|
||||
|
||||
gst_buffer_pool_config_set_va_allocation_params (config,
|
||||
VA_SURFACE_ATTRIB_USAGE_HINT_DECODER, GST_VA_FEATURE_AUTO);
|
||||
|
@ -560,11 +557,8 @@ gst_va_base_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
|||
gst_buffer_pool_config_add_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_META);
|
||||
|
||||
if (base->need_valign) {
|
||||
gst_buffer_pool_config_add_option (config,
|
||||
GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT);
|
||||
gst_buffer_pool_config_set_video_alignment (config, &base->valign);
|
||||
}
|
||||
if (base->need_valign)
|
||||
gst_buffer_pool_config_set_va_alignment (config, &base->valign);
|
||||
|
||||
gst_buffer_pool_config_set_va_allocation_params (config,
|
||||
VA_SURFACE_ATTRIB_USAGE_HINT_DECODER, GST_VA_FEATURE_AUTO);
|
||||
|
|
Loading…
Reference in a new issue