GstAllocators.DRMDumbAllocator¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
DRM device path |
||
r/w/co |
DRM file descriptor |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GstAllocators.DRMDumbAllocator(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Private intance object for
GstAllocators.DRMDumbAllocator
.New in version 1.24.
- classmethod new_with_device_path(drm_device_path)[source]¶
- Parameters:
drm_device_path (
str
) – path to the DRM device to open- Returns:
a new DRM Dumb allocator. Use
Gst.Object.unref
() to release the allocator after usage.- Return type:
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.New in version 1.24.
- classmethod new_with_fd(drm_fd)[source]¶
- Parameters:
drm_fd (
int
) – file descriptor of the DRM device- Returns:
a new DRM Dumb allocator. Use
Gst.Object.unref
() to release the allocator after usage.- Return type:
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.New in version 1.24.
- alloc(drm_fourcc, width, height)[source]¶
- Parameters:
- Returns:
a new DRM Dumb
Gst.Memory
. Use gst_memory_unref() to release the memory after usage.- out_pitch:
the pitch as returned by the driver
- Return type:
(
Gst.Memory
, out_pitch:int
)
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.
New in version 1.24.
Property Details¶
- GstAllocators.DRMDumbAllocator.props.drm_device_path¶
- Name:
drm-device-path
- Type:
- Default Value:
- Flags:
DRM device path
New in version 1.24.
- GstAllocators.DRMDumbAllocator.props.drm_fd¶
- Name:
drm-fd
- Type:
- Default Value:
-1
- Flags:
DRM file descriptor
New in version 1.24.