]> git.sesse.net Git - ffmpeg/commit
vaapi_encode: Choose profiles dynamically
authorMark Thompson <sw@jkqxz.net>
Tue, 18 Sep 2018 22:30:40 +0000 (23:30 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 23 Sep 2018 13:42:33 +0000 (14:42 +0100)
commit3b188666f19a17d15efb7eae590e988832972666
tree9442d49ab736e26b84bf4983cf3e781cdc076a32
parenta00763be8861bcf499675b2af89d29e4e113cdc9
vaapi_encode: Choose profiles dynamically

Previously there was one fixed choice for each codec (e.g. H.265 -> Main
profile), and using anything else then required an explicit option from
the user.  This changes to selecting the profile based on the input format
and the set of profiles actually supported by the driver (e.g. P010 input
will choose Main 10 profile for H.265 if the driver supports it).

The entrypoint and render target format are also chosen dynamically in the
same way, removing those explicit selections from the per-codec code.
doc/encoders.texi
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h
libavcodec/vaapi_encode_h264.c
libavcodec/vaapi_encode_h265.c
libavcodec/vaapi_encode_mjpeg.c
libavcodec/vaapi_encode_mpeg2.c
libavcodec/vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp9.c