These encoders all accept VAAPI surfaces in a hardware frames context.
Showing the changes to libavcodec/vaapi_encode.h (1 of 8 files). Show all
Unified · Split
| @@ -31,6 +31,7 @@ · 30 unmodified lines | ||
| 31 | 31 | #include "libavutil/hwcontext_vaapi.h" |
| 32 | 32 | |
| 33 | 33 | #include "avcodec.h" |
| 34 | +#include "hwconfig.h" | |
| 34 | 35 | |
| 35 | 36 | struct VAAPIEncodeType; |
| 36 | 37 | struct VAAPIEncodePicture; |
| @@ -44,6 +45,8 @@ enum { · 7 unmodified lines | ||
| 44 | 45 | MAX_PARAM_BUFFER_SIZE = 1024, |
| 45 | 46 | }; |
| 46 | 47 | |
| 48 | +extern const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[]; | |
| 49 | + | |
| 47 | 50 | enum { |
| 48 | 51 | PICTURE_TYPE_IDR = 0, |
| 49 | 52 | PICTURE_TYPE_I = 1, |