mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
vaapivideomemory: rename video for allocation_info
Since video_info stores the GstVideoInfo of the allocation caps, it is clear if we rename it as allocation_info, to distinguish it later from negotiation_info.
This commit is contained in:
parent
952b20a893
commit
4dffc12d6b
2 changed files with 4 additions and 4 deletions
|
@ -729,7 +729,7 @@ allocator_configure_surface_info (GstVaapiDisplay * display,
|
||||||
gboolean updated, has_direct_uploading, has_direct_rendering;
|
gboolean updated, has_direct_uploading, has_direct_rendering;
|
||||||
GstVideoFormat fmt;
|
GstVideoFormat fmt;
|
||||||
|
|
||||||
vinfo = &allocator->video_info;
|
vinfo = &allocator->allocation_info;
|
||||||
allocator->usage_flag = GST_VAAPI_IMAGE_USAGE_FLAG_NATIVE_FORMATS;
|
allocator->usage_flag = GST_VAAPI_IMAGE_USAGE_FLAG_NATIVE_FORMATS;
|
||||||
|
|
||||||
fmt = gst_vaapi_video_format_get_best_native (GST_VIDEO_INFO_FORMAT (vinfo));
|
fmt = gst_vaapi_video_format_get_best_native (GST_VIDEO_INFO_FORMAT (vinfo));
|
||||||
|
@ -806,7 +806,7 @@ allocator_configure_image_info (GstVaapiDisplay * display,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
vinfo = &allocator->video_info;
|
vinfo = &allocator->allocation_info;
|
||||||
allocator->image_info = *vinfo;
|
allocator->image_info = *vinfo;
|
||||||
gst_video_info_force_nv12_if_encoded (&allocator->image_info);
|
gst_video_info_force_nv12_if_encoded (&allocator->image_info);
|
||||||
|
|
||||||
|
@ -838,7 +838,7 @@ gst_vaapi_video_allocator_new (GstVaapiDisplay * display,
|
||||||
if (!allocator)
|
if (!allocator)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
allocator->video_info = *vip;
|
allocator->allocation_info = *vip;
|
||||||
|
|
||||||
allocator_configure_surface_info (display, allocator, req_usage_flag);
|
allocator_configure_surface_info (display, allocator, req_usage_flag);
|
||||||
allocator->surface_pool = gst_vaapi_surface_pool_new_full (display,
|
allocator->surface_pool = gst_vaapi_surface_pool_new_full (display,
|
||||||
|
|
|
@ -181,7 +181,7 @@ struct _GstVaapiVideoAllocator
|
||||||
GstAllocator parent_instance;
|
GstAllocator parent_instance;
|
||||||
|
|
||||||
/*< private >*/
|
/*< private >*/
|
||||||
GstVideoInfo video_info;
|
GstVideoInfo allocation_info;
|
||||||
GstVideoInfo surface_info;
|
GstVideoInfo surface_info;
|
||||||
GstVaapiVideoPool *surface_pool;
|
GstVaapiVideoPool *surface_pool;
|
||||||
GstVideoInfo image_info;
|
GstVideoInfo image_info;
|
||||||
|
|
Loading…
Reference in a new issue