Data Structures

struct  AVHWAccel
 

Macros

#define AV_HWACCEL_FLAG_IGNORE_LEVEL   (1 << 0)
 Hardware acceleration should be used for decoding even if the codec level used is unknown or higher than the maximum supported level reported by the hardware driver. More...
 
#define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH   (1 << 1)
 Hardware acceleration can output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component. More...
 
#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH   (1 << 2)
 Hardware acceleration should still be attempted for decoding when the codec profile does not match the reported capabilities of the hardware. More...
 

Detailed Description

Note
Nothing in this structure should be accessed by the user. At some point in future it will not be externally visible at all.

Macro Definition Documentation

◆ AV_HWACCEL_FLAG_IGNORE_LEVEL

#define AV_HWACCEL_FLAG_IGNORE_LEVEL   (1 << 0)

Hardware acceleration should be used for decoding even if the codec level used is unknown or higher than the maximum supported level reported by the hardware driver.

Definition at line 3141 of file avcodec.h.

◆ AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH

#define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH   (1 << 1)

Hardware acceleration can output YUV pixel formats with a different chroma sampling than 4:2:0 and/or other than 8 bits per component.

Definition at line 3147 of file avcodec.h.

◆ AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH

#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH   (1 << 2)

Hardware acceleration should still be attempted for decoding when the codec profile does not match the reported capabilities of the hardware.

For example, this can be used to try to decode baseline profile H.264 streams in hardware - it will often succeed, because many streams marked as baseline profile actually conform to constrained baseline profile.

Warning
If the stream is actually not supported then the behaviour is undefined, and may include returning entirely incorrect output while indicating success.

Definition at line 3161 of file avcodec.h.