And set it for MJPEG.
Showing the changes to libavcodec/vaapi_encode.h (1 of 3 files). Show all
Unified · Split
| @@ -251,6 +251,8 @@ typedef struct VAAPIEncodeContext { · 250 unmodified lines | ||
| 251 | 251 | enum { |
| 252 | 252 | // Codec supports controlling the subdivision of pictures into slices. |
| 253 | 253 | FLAG_SLICE_CONTROL = 1 << 0, |
| 254 | + // Codec only supports constant quality (no rate control). | |
| 255 | + FLAG_CONSTANT_QUALITY_ONLY = 1 << 1, | |
| 254 | 256 | }; |
| 255 | 257 | |
| 256 | 258 | typedef struct VAAPIEncodeType { |