GstVideo.VideoInfoDmaDrm¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
drm_fourcc |
r/w |
the fourcc defined by drm |
|
drm_modifier |
r/w |
the drm modifier |
|
vinfo |
r/w |
the associated |
Methods¶
class |
|
class |
|
class |
|
class |
|
class |
|
|
|
|
|
Details¶
- class GstVideo.VideoInfoDmaDrm¶
Information describing a DMABuf image properties. It wraps
GstVideo.VideoInfoand adds DRM information such as drm-fourcc and drm-modifier, required for negotiation and mapping.New in version 1.24.
- classmethod from_caps(caps)[source]¶
- Parameters:
- Returns:
Trueif caps could be parsed- drm_info:
- Return type:
(
bool, drm_info:GstVideo.VideoInfoDmaDrm)
Parse caps and update info. Please note that the caps should be a dma drm caps. The
GstVideo.video_is_dma_drm_caps() can be used to verify it before calling this function.New in version 1.24.
- classmethod from_video_info(info, modifier)[source]¶
- Parameters:
info (
GstVideo.VideoInfo) – aGstVideo.VideoInfomodifier (
int) – the associated modifier value.
- Returns:
Trueif drm_info is filled correctly.- drm_info:
- Return type:
(
bool, drm_info:GstVideo.VideoInfoDmaDrm)
Fills drm_info if info's format has a valid drm format and modifier is also valid
New in version 1.24.
- classmethod init()[source]¶
- Returns:
- Return type:
drm_info:
GstVideo.VideoInfoDmaDrm
Initialize drm_info with default values.
New in version 1.24.
- classmethod new()[source]¶
- Returns:
a new
GstVideo.VideoInfoDmaDrm. Free it withGstVideo.VideoInfoDmaDrm.free().- Return type:
Allocate a new
GstVideo.VideoInfoDmaDrmthat is also initialized withGstVideo.VideoInfoDmaDrm.init().New in version 1.24.
- classmethod new_from_caps(caps)[source]¶
- Parameters:
- Returns:
A
GstVideo.VideoInfoDmaDrm, orNoneif caps couldn’t be parsed.- Return type:
Parse caps to generate a
GstVideo.VideoInfoDmaDrm. Please note that the caps should be a dma drm caps. TheGstVideo.video_is_dma_drm_caps() can be used to verify it before calling this function.New in version 1.24.
- free()[source]¶
Free a
GstVideo.VideoInfoDmaDrmstructure previously allocated withGstVideo.VideoInfoDmaDrm.new()New in version 1.24.
- to_caps()[source]¶
-
Convert the values of self into a
Gst.Caps. Please note that the caps returned will be a dma drm caps which sets format field to DMA_DRM, and contains a new drm-format field. The value of drm-format field is composed of a drm fourcc and a modifier, such as NV12:0x0100000000000002.New in version 1.24.
- to_video_info()[source]¶
- Returns:
Trueif info is converted correctly.- info:
- Return type:
(
bool, info:GstVideo.VideoInfo)
Convert the
GstVideo.VideoInfoDmaDrminto a traditionalGstVideo.VideoInfowith recognized video format. For DMA kind memory, the non linear DMA format should be recognized asGstVideo.VideoFormat.DMA_DRM. This helper function sets info's video format into the default value according to self's drm_fourcc field.New in version 1.24.