[Libav-user] libavfilter: public API for querying supported filter formats

Øystein Sture os at skarvtech.com
Tue Jul 11 11:38:28 EEST 2023


Hi,

I'm trying to construct a graph where hardware accelerated format conversion is automatically used if available for a certain input/output combination. It seems like the AVFilter class, unlike AVCodec which has the pix_fmts field, does not expose the supported formats.

The query_formats function of the filters sets the AVFilterFormats structure contained in the incfg/outcfg fields of AVFilterLink, but this is not part of the public API.

Am I missing something here? Is there a way to determine when swscale can be replaced by a hardware accelerated format conversion (e.g., vpp_qsv, scale_cuda, scale_vaapi)?

Best regards,
Øystein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230711/d9e8da9e/attachment.htm>


More information about the Libav-user mailing list