World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Файл hwcontext_drm.h

См. исходные тексты.

Классы

struct  AVDRMObjectDescriptor
 
struct  AVDRMPlaneDescriptor
 
struct  AVDRMLayerDescriptor
 
struct  AVDRMFrameDescriptor
 
struct  AVDRMDeviceContext
 

Определения типов

typedef struct AVDRMObjectDescriptor AVDRMObjectDescriptor
 
typedef struct AVDRMPlaneDescriptor AVDRMPlaneDescriptor
 
typedef struct AVDRMLayerDescriptor AVDRMLayerDescriptor
 
typedef struct AVDRMFrameDescriptor AVDRMFrameDescriptor
 
typedef struct AVDRMDeviceContext AVDRMDeviceContext
 

Перечисления

enum  { AV_DRM_MAX_PLANES = 4 }
 

Подробное описание

API-specific header for AV_HWDEVICE_TYPE_DRM.

Internal frame allocation is not currently supported - all frames must be allocated by the user. Thus AVHWFramesContext is always NULL, though this may change if support for frame allocation is added in future.

См. определение в файле hwcontext_drm.h

Типы

◆ AVDRMObjectDescriptor

DRM object descriptor.

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

◆ AVDRMPlaneDescriptor

DRM plane descriptor.

Describes a single plane of a layer, which is contained within a single object.

◆ AVDRMLayerDescriptor

DRM layer descriptor.

Describes a single layer within a frame. This has the structure defined by its format, and will contain one or more planes.

◆ AVDRMFrameDescriptor

DRM frame descriptor.

This is used as the data pointer for AV_PIX_FMT_DRM_PRIME frames. It is also used by user-allocated frame pools - allocating in AVHWFramesContext.pool must return AVBufferRefs which contain an object of this type.

The fields of this structure should be set such it can be imported directly by EGL using the EGL_EXT_image_dma_buf_import and EGL_EXT_image_dma_buf_import_modifiers extensions. (Note that the exact layout of a particular format may vary between platforms - we only specify that the same platform should be able to import it.)

The total number of planes must not exceed AV_DRM_MAX_PLANES, and the order of the planes by increasing layer index followed by increasing plane index must be the same as the order which would be used for the data pointers in the equivalent software format.

◆ AVDRMDeviceContext

DRM device.

Allocated as AVHWDeviceContext.hwctx.

Перечисления

◆ anonymous enum

anonymous enum
Элементы перечислений
AV_DRM_MAX_PLANES 

The maximum number of layers/planes in a DRM frame.

См. определение в файле hwcontext_drm.h строка 35

35  {
40 };
AV_DRM_MAX_PLANES
@ AV_DRM_MAX_PLANES
Definition: hwcontext_drm.h:39