FFmpeg 7.1.5
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
hwcontext_drm.h File Reference

API-specific header for AV_HWDEVICE_TYPE_DRM. More...

#include <stddef.h>
#include <stdint.h>
#include "buffer.h"

Go to the source code of this file.

Data Structures

struct  AVDRMObjectDescriptor
 DRM object descriptor. More...
 
struct  AVDRMPlaneDescriptor
 DRM plane descriptor. More...
 
struct  AVDRMLayerDescriptor
 DRM layer descriptor. More...
 
struct  AVDRMFrameDescriptor
 DRM frame descriptor. More...
 
struct  AVDRMDeviceContext
 DRM device. More...
 

Enumerations

enum  { AV_DRM_MAX_PLANES = 4 }
 

Functions

int av_hwcontext_drm_v4l2_4cc_test (AVBufferRef *hw_device_ctx, uint32_t fcc)
 Test if a given V4L2 buffer fourcc is allowed in this DRM hardware device context.
 

Detailed Description

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.

Definition in file hwcontext_drm.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AV_DRM_MAX_PLANES 

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

Definition at line 37 of file hwcontext_drm.h.

Function Documentation

◆ av_hwcontext_drm_v4l2_4cc_test()

int av_hwcontext_drm_v4l2_4cc_test ( AVBufferRef hw_device_ctx,
uint32_t  fcc 
)

Test if a given V4L2 buffer fourcc is allowed in this DRM hardware device context.

Parameters
hw_device_ctxAVBufferRef to an AVHWDeviceContext of type AV_HWDEVICE_TYPE_DRM, or NULL (returns 0 if NULL)
fccV4L2 fourcc pixel format code to test
Returns
1 if the format is allowed, 0 otherwise