From 2534dab8d83d7c9baf69fcd2c62e41fd3f963498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 9 Jan 2017 16:18:32 +0100 Subject: [PATCH] vaapivideomemory: rename vip to alloc_info parameter In order to auto-document the code, this patch renames the 'vip' parameter in the functions related to gst_vaapi_video_allocator_new () to 'alloc_info', since it declares the allocation video info from the vaapi buffer pool. --- gst/vaapi/gstvaapivideomemory.c | 12 ++++++------ gst/vaapi/gstvaapivideomemory.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 4695570987..447b99f359 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -856,10 +856,10 @@ error_cannot_map: static inline gboolean allocator_params_init (GstVaapiVideoAllocator * allocator, - GstVaapiDisplay * display, const GstVideoInfo * vip, + GstVaapiDisplay * display, const GstVideoInfo * alloc_info, guint surface_alloc_flags, GstVaapiImageUsageFlags req_usage_flag) { - allocator->allocation_info = *vip; + allocator->allocation_info = *alloc_info; if (!allocator_configure_surface_info (display, allocator, req_usage_flag)) return FALSE; @@ -895,20 +895,20 @@ error_create_image_pool: GstAllocator * gst_vaapi_video_allocator_new (GstVaapiDisplay * display, - const GstVideoInfo * vip, guint surface_alloc_flags, + const GstVideoInfo * alloc_info, guint surface_alloc_flags, GstVaapiImageUsageFlags req_usage_flag) { GstVaapiVideoAllocator *allocator; g_return_val_if_fail (display != NULL, NULL); - g_return_val_if_fail (vip != NULL, NULL); + g_return_val_if_fail (alloc_info != NULL, NULL); allocator = g_object_new (GST_VAAPI_TYPE_VIDEO_ALLOCATOR, NULL); if (!allocator) return NULL; - if (!allocator_params_init (allocator, display, vip, surface_alloc_flags, - req_usage_flag)) { + if (!allocator_params_init (allocator, display, alloc_info, + surface_alloc_flags, req_usage_flag)) { g_object_unref (allocator); return NULL; } diff --git a/gst/vaapi/gstvaapivideomemory.h b/gst/vaapi/gstvaapivideomemory.h index 761ad1ce58..8c6c7f5883 100644 --- a/gst/vaapi/gstvaapivideomemory.h +++ b/gst/vaapi/gstvaapivideomemory.h @@ -206,7 +206,7 @@ gst_vaapi_video_allocator_get_type (void) G_GNUC_CONST; G_GNUC_INTERNAL GstAllocator * gst_vaapi_video_allocator_new (GstVaapiDisplay * display, - const GstVideoInfo * vip, guint surface_alloc_flags, + const GstVideoInfo * alloc_info, guint surface_alloc_flags, GstVaapiImageUsageFlags req_usage_flag); /* ------------------------------------------------------------------------ */