FFmpeg 5.1.6
Data Fields
AVHWFramesConstraints Struct Reference

This struct describes the constraints on hardware frames attached to a given device with a hardware-specific configuration. More...

#include <libavutil/hwcontext.h>

Data Fields

enum AVPixelFormatvalid_hw_formats
 A list of possible values for format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE. More...
 
enum AVPixelFormatvalid_sw_formats
 A list of possible values for sw_format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE. More...
 
int min_width
 The minimum size of frames in this hw_frames_ctx. More...
 
int min_height
 
int max_width
 The maximum size of frames in this hw_frames_ctx. More...
 
int max_height
 

Detailed Description

This struct describes the constraints on hardware frames attached to a given device with a hardware-specific configuration.

This is returned by av_hwdevice_get_hwframe_constraints() and must be freed by av_hwframe_constraints_free() after use.

Definition at line 453 of file hwcontext.h.

Field Documentation

◆ valid_hw_formats

enum AVPixelFormat* AVHWFramesConstraints::valid_hw_formats

A list of possible values for format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE.

This member will always be filled.

Definition at line 458 of file hwcontext.h.

◆ valid_sw_formats

enum AVPixelFormat* AVHWFramesConstraints::valid_sw_formats

A list of possible values for sw_format in the hw_frames_ctx, terminated by AV_PIX_FMT_NONE.

Can be NULL if this information is not known.

Definition at line 465 of file hwcontext.h.

◆ min_width

int AVHWFramesConstraints::min_width

The minimum size of frames in this hw_frames_ctx.

(Zero if not known.)

Definition at line 471 of file hwcontext.h.

◆ min_height

int AVHWFramesConstraints::min_height

Definition at line 472 of file hwcontext.h.

◆ max_width

int AVHWFramesConstraints::max_width

The maximum size of frames in this hw_frames_ctx.

(INT_MAX if not known / no limit.)

Definition at line 478 of file hwcontext.h.

◆ max_height

int AVHWFramesConstraints::max_height

Definition at line 479 of file hwcontext.h.


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