mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
va: allocator: rename gst_va_dmabuf_allocator_setup_buffer()
Since it's related with GstVaDmabufAllocator. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1626>
This commit is contained in:
parent
bb586b227f
commit
303b1ea350
3 changed files with 8 additions and 7 deletions
|
@ -479,8 +479,8 @@ gst_va_memory_dispose (GstMiniObject * mini_object)
|
|||
/* creates an exported VASurface and adds it as @buffer's memories
|
||||
* qdata */
|
||||
gboolean
|
||||
gst_va_dmabuf_setup_buffer (GstAllocator * allocator, GstBuffer * buffer,
|
||||
GstVaAllocationParams * params)
|
||||
gst_va_dmabuf_allocator_setup_buffer (GstAllocator * allocator,
|
||||
GstBuffer * buffer, GstVaAllocationParams * params)
|
||||
{
|
||||
GstVaBufferSurface *buf;
|
||||
GstVaDmabufAllocator *self = GST_VA_DMABUF_ALLOCATOR (allocator);
|
||||
|
@ -584,7 +584,7 @@ gst_va_dmabuf_try (GstAllocator * allocator, GstVaAllocationParams * params)
|
|||
GstMapInfo map_info;
|
||||
gboolean ret;
|
||||
|
||||
ret = gst_va_dmabuf_setup_buffer (allocator, buffer, params);
|
||||
ret = gst_va_dmabuf_allocator_setup_buffer (allocator, buffer, params);
|
||||
if (ret) {
|
||||
/* XXX: radeonsi for kadaveri cannot map dmabufs to user space */
|
||||
if (!gst_buffer_map (buffer, &map_info, GST_MAP_READWRITE)) {
|
||||
|
|
|
@ -39,9 +39,9 @@ G_DECLARE_FINAL_TYPE (GstVaDmabufAllocator, gst_va_dmabuf_allocator, GST,
|
|||
VA_DMABUF_ALLOCATOR, GstDmaBufAllocator);
|
||||
|
||||
GstAllocator * gst_va_dmabuf_allocator_new (GstVaDisplay * display);
|
||||
gboolean gst_va_dmabuf_setup_buffer (GstAllocator * allocator,
|
||||
GstBuffer * buffer,
|
||||
GstVaAllocationParams * params);
|
||||
gboolean gst_va_dmabuf_allocator_setup_buffer (GstAllocator * allocator,
|
||||
GstBuffer * buffer,
|
||||
GstVaAllocationParams * params);
|
||||
gboolean gst_va_dmabuf_try (GstAllocator * allocator,
|
||||
GstVaAllocationParams * params);
|
||||
|
||||
|
|
|
@ -193,7 +193,8 @@ gst_va_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer,
|
|||
buf = gst_buffer_new ();
|
||||
|
||||
if (GST_IS_VA_DMABUF_ALLOCATOR (vpool->allocator)) {
|
||||
if (!gst_va_dmabuf_setup_buffer (vpool->allocator, buf, &alloc_params))
|
||||
if (!gst_va_dmabuf_allocator_setup_buffer (vpool->allocator, buf,
|
||||
&alloc_params))
|
||||
goto no_memory;
|
||||
} else if (GST_IS_VA_ALLOCATOR (vpool->allocator)) {
|
||||
GstMemory *mem = gst_va_allocator_alloc (vpool->allocator, &alloc_params);
|
||||
|
|
Loading…
Reference in a new issue