GstDRMDumbAllocator
Since : 1.24
Class structure
GstAllocators.DRMDumbAllocatorClass
GstAllocators.DRMDumbAllocatorClass
GstAllocators.DRMDumbAllocator
Since : 1.24
GstAllocators.DRMDumbAllocator
Since : 1.24
Constructors
gst_drm_dumb_allocator_new_with_device_path
GstAllocator *
gst_drm_dumb_allocator_new_with_device_path (const gchar * drm_device_path)
Creates a new GstDRMDumbAllocator for the specific device path. This
function can fail if the path does not exist, is not a DRM device or if
the DRM device doesnot support DUMB allocation.
Parameters:
drm_device_path
(
[typefilename])
–
path to the DRM device to open
Returns
(
[transfer: full][nullable])
–
a new DRM Dumb allocator. Use gst_object_unref
to release the allocator after usage.
Since : 1.24
GstAllocators.DRMDumbAllocator.prototype.new_with_device_path
function GstAllocators.DRMDumbAllocator.prototype.new_with_device_path(drm_device_path: filename): {
}
Creates a new GstAllocators.DRMDumbAllocator for the specific device path. This
function can fail if the path does not exist, is not a DRM device or if
the DRM device doesnot support DUMB allocation.
Parameters:
drm_device_path
(filename)
–
path to the DRM device to open
Since : 1.24
GstAllocators.DRMDumbAllocator.new_with_device_path
def GstAllocators.DRMDumbAllocator.new_with_device_path (drm_device_path):
Creates a new GstAllocators.DRMDumbAllocator for the specific device path. This
function can fail if the path does not exist, is not a DRM device or if
the DRM device doesnot support DUMB allocation.
Parameters:
path to the DRM device to open
a new DRM Dumb allocator. Use Gst.Object.unref
to release the allocator after usage.
Since : 1.24
gst_drm_dumb_allocator_new_with_fd
GstAllocator *
gst_drm_dumb_allocator_new_with_fd (gint drm_fd)
Creates a new GstDRMDumbAllocator for the specific file desciptor. This
function can fail if the file descriptor is not a DRM device or if
the DRM device does not support DUMB allocation.
Parameters:
drm_fd
–
file descriptor of the DRM device
Returns
(
[transfer: full][nullable])
–
a new DRM Dumb allocator. Use gst_object_unref
to release the allocator after usage.
Since : 1.24
GstAllocators.DRMDumbAllocator.prototype.new_with_fd
function GstAllocators.DRMDumbAllocator.prototype.new_with_fd(drm_fd: Number): {
}
Creates a new GstAllocators.DRMDumbAllocator for the specific file desciptor. This
function can fail if the file descriptor is not a DRM device or if
the DRM device does not support DUMB allocation.
Parameters:
file descriptor of the DRM device
Since : 1.24
GstAllocators.DRMDumbAllocator.new_with_fd
def GstAllocators.DRMDumbAllocator.new_with_fd (drm_fd):
Creates a new GstAllocators.DRMDumbAllocator for the specific file desciptor. This
function can fail if the file descriptor is not a DRM device or if
the DRM device does not support DUMB allocation.
Parameters:
file descriptor of the DRM device
a new DRM Dumb allocator. Use Gst.Object.unref
to release the allocator after usage.
Since : 1.24
Methods
gst_drm_dumb_allocator_alloc
GstMemory *
gst_drm_dumb_allocator_alloc (GstAllocator * allocator,
guint32 drm_fourcc,
guint32 width,
guint32 height,
guint32 * out_pitch)
Allocated a DRM buffer object for the specific drm_fourcc, width and
height. Note that the DRM Dumb allocation interface is agnostic to the
pixel format. This drm_fourcc is converted into a bpp (bit-per-pixel)
number and the height is scaled according to the sub-sampling.
Parameters:
allocator
(
[typeGstAllocators.DRMDumbAllocator])
–
the allocator instance
drm_fourcc
–
the DRM format to allocate for
width
–
padded width for this allocation
height
–
padded height for this allocation
the pitch as returned by the driver
Since : 1.24
GstAllocators.DRMDumbAllocator.prototype.alloc
function GstAllocators.DRMDumbAllocator.prototype.alloc(drm_fourcc: Number, width: Number, height: Number): {
}
Allocated a DRM buffer object for the specific drm_fourcc, width and
height. Note that the DRM Dumb allocation interface is agnostic to the
pixel format. This drm_fourcc is converted into a bpp (bit-per-pixel)
number and the height is scaled according to the sub-sampling.
Parameters:
the DRM format to allocate for
padded width for this allocation
padded height for this allocation
Since : 1.24
GstAllocators.DRMDumbAllocator.alloc
def GstAllocators.DRMDumbAllocator.alloc (self, drm_fourcc, width, height):
Allocated a DRM buffer object for the specific drm_fourcc, width and
height. Note that the DRM Dumb allocation interface is agnostic to the
pixel format. This drm_fourcc is converted into a bpp (bit-per-pixel)
number and the height is scaled according to the sub-sampling.
Parameters:
the DRM format to allocate for
padded width for this allocation
padded height for this allocation
Since : 1.24
gst_drm_dumb_allocator_has_prime_export
gboolean
gst_drm_dumb_allocator_has_prime_export (GstAllocator * allocator)
This function allow verifying if the driver support dma-buf exportation.
Parameters:
allocator
(
[typeGstAllocators.DRMDumbAllocator])
–
the GstAllocator
Returns
–
TRUE if the allocator support exporting dma-buf.
Since : 1.24
GstAllocators.DRMDumbAllocator.prototype.has_prime_export
function GstAllocators.DRMDumbAllocator.prototype.has_prime_export(): {
}
This function allow verifying if the driver support dma-buf exportation.
true if the allocator support exporting dma-buf.
Since : 1.24
GstAllocators.DRMDumbAllocator.has_prime_export
def GstAllocators.DRMDumbAllocator.has_prime_export (self):
This function allow verifying if the driver support dma-buf exportation.
True if the allocator support exporting dma-buf.
Since : 1.24
Properties
drm-device-path
“drm-device-path” gchar *
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
drm-device-path
“drm-device-path” filename
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
drm_device_path
“self.props.drm_device_path” str
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
drm-fd
“drm-fd” gint
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
drm-fd
“drm-fd” Number
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
drm_fd
“self.props.drm_fd” int
Flags :
Read
/
Write
/
Construct Only
Since : 1.24
Functions
gst_drm_dumb_memory_export_dmabuf
GstMemory *
gst_drm_dumb_memory_export_dmabuf (GstMemory * mem)
Exports a DMABuf from the DRM Bumb buffer object. One can check if this
feature is supported using gst_drm_dumb_allocator_has_prime_export;
Parameters:
mem
–
the memory to export from
Since : 1.24
GstAllocators.prototype.drm_dumb_memory_export_dmabuf
function GstAllocators.prototype.drm_dumb_memory_export_dmabuf(mem: Gst.Memory): {
}
Exports a DMABuf from the DRM Bumb buffer object. One can check if this
feature is supported using GstAllocators.DRMDumbAllocator.prototype.has_prime_export;
Parameters:
the memory to export from
Since : 1.24
GstAllocators.drm_dumb_memory_export_dmabuf
def GstAllocators.drm_dumb_memory_export_dmabuf (mem):
Exports a DMABuf from the DRM Bumb buffer object. One can check if this
feature is supported using GstAllocators.DRMDumbAllocator.has_prime_export;
Parameters:
the memory to export from
Since : 1.24
gst_drm_dumb_memory_get_handle
guint32
gst_drm_dumb_memory_get_handle (GstMemory * mem)
Return the DRM buffer object handle associated with mem.
Parameters:
mem
–
the memory to get the handle from
Returns
–
the DRM buffer object handle associated with the memory, or 0.
The handle is still owned by the GstMemory and cannot be used
beyond the lifetime of this GstMemory unless it is being passed
to DRM driver, which does handle a refcount internally.
Since : 1.24
GstAllocators.prototype.drm_dumb_memory_get_handle
function GstAllocators.prototype.drm_dumb_memory_get_handle(mem: Gst.Memory): {
}
Return the DRM buffer object handle associated with mem.
Parameters:
the memory to get the handle from
the DRM buffer object handle associated with the memory, or 0.
The handle is still owned by the GstMemory and cannot be used
beyond the lifetime of this GstMemory unless it is being passed
to DRM driver, which does handle a refcount internally.
Since : 1.24
GstAllocators.drm_dumb_memory_get_handle
def GstAllocators.drm_dumb_memory_get_handle (mem):
Return the DRM buffer object handle associated with mem.
Parameters:
the memory to get the handle from
the DRM buffer object handle associated with the memory, or 0.
The handle is still owned by the GstMemory and cannot be used
beyond the lifetime of this GstMemory unless it is being passed
to DRM driver, which does handle a refcount internally.
Since : 1.24
gst_is_drm_dumb_memory
gboolean
gst_is_drm_dumb_memory (GstMemory * mem)
Parameters:
mem
–
the memory to be checked
Returns
–
TRUE if mem is DRM Dumb memory, otherwise FALSE
Since : 1.24
GstAllocators.prototype.is_drm_dumb_memory
function GstAllocators.prototype.is_drm_dumb_memory(mem: Gst.Memory): {
}
true if mem is DRM Dumb memory, otherwise false
Since : 1.24
GstAllocators.is_drm_dumb_memory
def GstAllocators.is_drm_dumb_memory (mem):
True if mem is DRM Dumb memory, otherwise False
Since : 1.24
Constants
GST_TYPE_DRM_DUMB_ALLOCATOR
#define GST_TYPE_DRM_DUMB_ALLOCATOR gst_drm_dumb_allocator_get_type ()
Macro that returns the GstDRMDumbAllocator type.
Since : 1.24
The results of the search are