(cherry picked from commit 64a5260c695dd8051509d3270295fd64eac56587)
Showing the changes to libavcodec/avcodec.h (1 of 3 files). Show all
Unified · Split
| @@ -4001,6 +4001,20 @@ typedef struct AVHWAccel { · 4000 unmodified lines | ||
| 4001 | 4001 | */ |
| 4002 | 4002 | #define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (1 << 1) |
| 4003 | 4003 | |
| 4004 | +/** | |
| 4005 | + * Hardware acceleration should still be attempted for decoding when the | |
| 4006 | + * codec profile does not match the reported capabilities of the hardware. | |
| 4007 | + * | |
| 4008 | + * For example, this can be used to try to decode baseline profile H.264 | |
| 4009 | + * streams in hardware - it will often succeed, because many streams marked | |
| 4010 | + * as baseline profile actually conform to constrained baseline profile. | |
| 4011 | + * | |
| 4012 | + * @warning If the stream is actually not supported then the behaviour is | |
| 4013 | + * undefined, and may include returning entirely incorrect output | |
| 4014 | + * while indicating success. | |
| 4015 | + */ | |
| 4016 | +#define AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH (1 << 2) | |
| 4017 | + | |
| 4004 | 4018 | /** |
| 4005 | 4019 | * @} |
| 4006 | 4020 | */ |