These encoders all accept VAAPI surfaces in a hardware frames context.
Showing the changes to libavcodec/vaapi_encode_mpeg2.c (1 of 8 files). Show all
Unified · Split
| @@ -707,5 +707,6 @@ AVCodec ff_mpeg2_vaapi_encoder = { · 706 unmodified lines | ||
| 707 | 707 | AV_PIX_FMT_VAAPI, |
| 708 | 708 | AV_PIX_FMT_NONE, |
| 709 | 709 | }, |
| 710 | + .hw_configs = ff_vaapi_encode_hw_configs, | |
| 710 | 711 | .wrapper_name = "vaapi", |
| 711 | 712 | }; |