These encoders all accept VAAPI surfaces in a hardware frames context.
Showing the changes to libavcodec/vaapi_encode.c (1 of 8 files). Show all
Unified · Split
| @@ -27,6 +27,11 @@ · 26 unmodified lines | |||
| 27 | #include "vaapi_encode.h" | 27 | #include "vaapi_encode.h" |
| 28 | #include "avcodec.h" | 28 | #include "avcodec.h" |
| 29 | 29 | ||
| 30 | const AVCodecHWConfigInternal *ff_vaapi_encode_hw_configs[] = { | ||
| 31 | HW_CONFIG_ENCODER_FRAMES(VAAPI, VAAPI), | ||
| 32 | NULL, | ||
| 33 | }; | ||
| 34 | |||
| 30 | static const char * const picture_type_name[] = { "IDR", "I", "P", "B" }; | 35 | static const char * const picture_type_name[] = { "IDR", "I", "P", "B" }; |
| 31 | 36 | ||
| 32 | static int vaapi_encode_make_packed_header(AVCodecContext *avctx, | 37 | static int vaapi_encode_make_packed_header(AVCodecContext *avctx, |