mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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.
This commit is contained in:
parent
d3d489a855
commit
2534dab8d8
2 changed files with 7 additions and 7 deletions
|
@ -856,10 +856,10 @@ error_cannot_map:
|
||||||
|
|
||||||
static inline gboolean
|
static inline gboolean
|
||||||
allocator_params_init (GstVaapiVideoAllocator * allocator,
|
allocator_params_init (GstVaapiVideoAllocator * allocator,
|
||||||
GstVaapiDisplay * display, const GstVideoInfo * vip,
|
GstVaapiDisplay * display, const GstVideoInfo * alloc_info,
|
||||||
guint surface_alloc_flags, GstVaapiImageUsageFlags req_usage_flag)
|
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))
|
if (!allocator_configure_surface_info (display, allocator, req_usage_flag))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -895,20 +895,20 @@ error_create_image_pool:
|
||||||
|
|
||||||
GstAllocator *
|
GstAllocator *
|
||||||
gst_vaapi_video_allocator_new (GstVaapiDisplay * display,
|
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)
|
GstVaapiImageUsageFlags req_usage_flag)
|
||||||
{
|
{
|
||||||
GstVaapiVideoAllocator *allocator;
|
GstVaapiVideoAllocator *allocator;
|
||||||
|
|
||||||
g_return_val_if_fail (display != NULL, NULL);
|
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);
|
allocator = g_object_new (GST_VAAPI_TYPE_VIDEO_ALLOCATOR, NULL);
|
||||||
if (!allocator)
|
if (!allocator)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (!allocator_params_init (allocator, display, vip, surface_alloc_flags,
|
if (!allocator_params_init (allocator, display, alloc_info,
|
||||||
req_usage_flag)) {
|
surface_alloc_flags, req_usage_flag)) {
|
||||||
g_object_unref (allocator);
|
g_object_unref (allocator);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,7 +206,7 @@ gst_vaapi_video_allocator_get_type (void) G_GNUC_CONST;
|
||||||
G_GNUC_INTERNAL
|
G_GNUC_INTERNAL
|
||||||
GstAllocator *
|
GstAllocator *
|
||||||
gst_vaapi_video_allocator_new (GstVaapiDisplay * display,
|
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);
|
GstVaapiImageUsageFlags req_usage_flag);
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------ */
|
/* ------------------------------------------------------------------------ */
|
||||||
|
|
Loading…
Reference in a new issue