Lines Matching refs:allocator

107 gst_kms_allocator_memory_reset (GstKMSAllocator * allocator, GstKMSMemory * mem)  in gst_kms_allocator_memory_reset()  argument
112 if (!check_fd (allocator)) in gst_kms_allocator_memory_reset()
116 GST_DEBUG_OBJECT (allocator, "removing fb id %d", mem->fb_id); in gst_kms_allocator_memory_reset()
117 drmModeRmFB (allocator->priv->fd, mem->fb_id); in gst_kms_allocator_memory_reset()
125 GST_WARNING_OBJECT (allocator, "destroying mapped bo (refcount=%d)", in gst_kms_allocator_memory_reset()
133 err = drmIoctl (allocator->priv->fd, DRM_IOCTL_MODE_DESTROY_DUMB, &arg); in gst_kms_allocator_memory_reset()
135 GST_WARNING_OBJECT (allocator, in gst_kms_allocator_memory_reset()
170 gst_kms_allocator_memory_create (GstKMSAllocator * allocator, in gst_kms_allocator_memory_create() argument
182 if (!check_fd (allocator)) in gst_kms_allocator_memory_create()
195 ret = drmIoctl (allocator->priv->fd, DRM_IOCTL_MODE_CREATE_DUMB, &arg); in gst_kms_allocator_memory_create()
218 GST_DEBUG_OBJECT (allocator, "Created BO plane %i with stride %i and " in gst_kms_allocator_memory_create()
234 GST_ERROR_OBJECT (allocator, in gst_kms_allocator_memory_create()
246 GST_ERROR_OBJECT (allocator, "Failed to create buffer object: %s (%d)", in gst_kms_allocator_memory_create()
255 gst_kms_allocator_free (GstAllocator * allocator, GstMemory * mem) in gst_kms_allocator_free() argument
260 alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_free()
355 alloc = (GstKMSAllocator *) mem->allocator; in gst_kms_memory_map()
397 if (!check_fd ((GstKMSAllocator *) mem->allocator)) in gst_kms_memory_unmap()
411 gst_kms_allocator_init (GstKMSAllocator * allocator) in gst_kms_allocator_init() argument
415 alloc = GST_ALLOCATOR_CAST (allocator); in gst_kms_allocator_init()
417 allocator->priv = gst_kms_allocator_get_instance_private (allocator); in gst_kms_allocator_init()
418 allocator->priv->fd = -1; in gst_kms_allocator_init()
425 GST_OBJECT_FLAG_SET (allocator, GST_ALLOCATOR_FLAG_CUSTOM_ALLOC); in gst_kms_allocator_init()
526 gst_kms_allocator_bo_alloc (GstAllocator * allocator, GstVideoInfo * vinfo) in gst_kms_allocator_bo_alloc() argument
536 alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_bo_alloc()
545 gst_memory_init (mem, GST_MEMORY_FLAG_NO_SHARE, allocator, NULL, in gst_kms_allocator_bo_alloc()
560 gst_kms_allocator_dmabuf_import (GstAllocator * allocator, gint * prime_fds, in gst_kms_allocator_dmabuf_import() argument
576 gst_memory_init (mem, GST_MEMORY_FLAG_NO_SHARE, allocator, NULL, in gst_kms_allocator_dmabuf_import()
579 alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_dmabuf_import()
601 GST_WARNING_OBJECT (allocator, in gst_kms_allocator_dmabuf_import()
625 gst_kms_allocator_dmabuf_export (GstAllocator * allocator, GstMemory * _kmsmem) in gst_kms_allocator_dmabuf_export() argument
628 GstKMSAllocator *alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_dmabuf_export()
650 gst_kms_allocator_cache (allocator, mem, _kmsmem); in gst_kms_allocator_dmabuf_export()
683 gst_kms_allocator_clear_cache (GstAllocator * allocator) in gst_kms_allocator_clear_cache() argument
685 GstKMSAllocator *alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_clear_cache()
708 gst_kms_allocator_cache (GstAllocator * allocator, GstMemory * mem, in gst_kms_allocator_cache() argument
711 GstKMSAllocator *alloc = GST_KMS_ALLOCATOR (allocator); in gst_kms_allocator_cache()