mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +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;
|
||||
GstVideoFormat fmt;
|
||||
|
||||
vinfo = &allocator->video_info;
|
||||
vinfo = &allocator->allocation_info;
|
||||
allocator->usage_flag = GST_VAAPI_IMAGE_USAGE_FLAG_NATIVE_FORMATS;
|
||||
|
||||
fmt = gst_vaapi_video_format_get_best_native (GST_VIDEO_INFO_FORMAT (vinfo));
|
||||
|
@ -806,7 +806,7 @@ allocator_configure_image_info (GstVaapiDisplay * display,
|
|||
return;
|
||||
}
|
||||
|
||||
vinfo = &allocator->video_info;
|
||||
vinfo = &allocator->allocation_info;
|
||||
allocator->image_info = *vinfo;
|
||||
gst_video_info_force_nv12_if_encoded (&allocator->image_info);
|
||||
|
||||
|
@ -838,7 +838,7 @@ gst_vaapi_video_allocator_new (GstVaapiDisplay * display,
|
|||
if (!allocator)
|
||||
return NULL;
|
||||
|
||||
allocator->video_info = *vip;
|
||||
allocator->allocation_info = *vip;
|
||||
|
||||
allocator_configure_surface_info (display, allocator, req_usage_flag);
|
||||
allocator->surface_pool = gst_vaapi_surface_pool_new_full (display,
|
||||
|
|
|
@ -181,7 +181,7 @@ struct _GstVaapiVideoAllocator
|
|||
GstAllocator parent_instance;
|
||||
|
||||
/*< private >*/
|
||||
GstVideoInfo video_info;
|
||||
GstVideoInfo allocation_info;
|
||||
GstVideoInfo surface_info;
|
||||
GstVaapiVideoPool *surface_pool;
|
||||
GstVideoInfo image_info;
|
||||
|
|
Loading…
Reference in a new issue