AVCodecHWConfig Struct Reference
#include <codec.h>
For decoders, a hardware pixel format which that decoder may be able to decode to if suitable hardware is available.
Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used with this configuration.
The device type associated with the configuration.
Detailed Description
Field Documentation
◆ pix_fmt
For decoders, a hardware pixel format which that decoder may be able to decode to if suitable hardware is available.
For encoders, a pixel format which the encoder may be able to accept. If set to AV_PIX_FMT_NONE, this applies to all pixel formats supported by the codec.
Definition at line 323 of file codec.h.
Referenced by avcodec_get_hw_frames_parameters(), and ff_get_format().
◆ methods
int AVCodecHWConfig::methods
Bit set of AV_CODEC_HW_CONFIG_METHOD_* flags, describing the possible setup methods which can be used with this configuration.
Definition at line 328 of file codec.h.
◆ device_type
The device type associated with the configuration.
Must be set for AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX and AV_CODEC_HW_CONFIG_METHOD_HW_FRAMES_CTX, otherwise unused.
Definition at line 335 of file codec.h.
The documentation for this struct was generated from the following file:
Generated on Sun Sep 6 2026 19:21:24 for FFmpeg by doxygen 1.13.2