FFmpeg  5.1.3
Data Fields
AVDRMObjectDescriptor Struct Reference

DRM object descriptor. More...

#include <libavutil/hwcontext_drm.h>

Data Fields

int fd
 DRM PRIME fd for the object. More...
 
void * ptr
 DRM PRIME mapped virtual ptr for above fd. More...
 
size_t size
 Total size of the object. More...
 
uint64_t format_modifier
 Format modifier applied to the object (DRM_FORMAT_MOD_*). More...
 

Detailed Description

DRM object descriptor.

Describes a single DRM object, addressing it as a PRIME file descriptor.

Definition at line 43 of file hwcontext_drm.h.

Field Documentation

◆ fd

int AVDRMObjectDescriptor::fd

DRM PRIME fd for the object.

Definition at line 47 of file hwcontext_drm.h.

◆ ptr

void* AVDRMObjectDescriptor::ptr

DRM PRIME mapped virtual ptr for above fd.

The content of this buffer must be readonly when acting decoder's out buffer.

Definition at line 53 of file hwcontext_drm.h.

◆ size

size_t AVDRMObjectDescriptor::size

Total size of the object.

(This includes any parts not which do not contain image data.)

Definition at line 59 of file hwcontext_drm.h.

◆ format_modifier

uint64_t AVDRMObjectDescriptor::format_modifier

Format modifier applied to the object (DRM_FORMAT_MOD_*).

If the format modifier is unknown then this should be set to DRM_FORMAT_MOD_INVALID.

Definition at line 66 of file hwcontext_drm.h.


The documentation for this struct was generated from the following file: