vaapi_encode: Refactor initialisation
authorMark Thompson <sw@jkqxz.net>
Sun, 18 Sep 2016 13:55:26 +0000 (14:55 +0100)
committerMark Thompson <sw@jkqxz.net>
Mon, 21 Nov 2016 22:13:41 +0000 (22:13 +0000)
commitc8241e730f116f1c9cfc0b34110aa7f052e05332
treef7a034248989e485bd6e979e55588eec89c3ae8a
parent06d73d002e7f911f26ae1548b46e442a6ece9a4a
vaapi_encode: Refactor initialisation

This allows better checking of capabilities and will make it easier
to add more functionality later.

It also commonises some duplicated code around rate control setup
and adds more comments explaining the internals.

(cherry picked from commit 80a5d05108cb218e8cd2e25c6621a3bfef0a832e)
libavcodec/vaapi_encode.c
libavcodec/vaapi_encode.h
libavcodec/vaapi_encode_h264.c
libavcodec/vaapi_encode_h265.c
libavcodec/vaapi_encode_mjpeg.c