vaapi_encode: Add support for max QP in rate control
authorMark Thompson <sw@jkqxz.net>
Tue, 18 Sep 2018 22:30:46 +0000 (23:30 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 23 Sep 2018 13:42:33 +0000 (14:42 +0100)
commit8479f99c7dd227d9cb94d262602f1298f71cf33b
tree1911420d4a3bb8c65fe1d884f2211cff3948b7a6
parentaf532c921575eb8ee805cc2c64a914f6302442e1
vaapi_encode: Add support for max QP in rate control

This was added in libva 2.1.0 (VAAPI 1.1.0).  Use AVCodecContext.qmax,
matching the existing behaviour for qmin, and clean up the defaults so
that we only pass min/max when explicitly set.
doc/encoders.texi
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode_h264.c
libavcodec/vaapi_encode_h265.c
libavcodec/vaapi_encode_mpeg2.c
libavcodec/vaapi_encode_vp8.c
libavcodec/vaapi_encode_vp9.c