libs: encoder: h265: choose the profile based on allowed list.
authorHe Junyan <junyan.he@intel.com>
Fri, 3 Jul 2020 11:28:28 +0000 (19:28 +0800)
committerHe Junyan <junyan.he@intel.com>
Thu, 30 Jul 2020 10:51:51 +0000 (18:51 +0800)
commit7a9a99d0c40df6540bdd9e441a2895b2c0cbc84b
tree754096b5a44feeab583225ee460fa9f6c65ce086
parent2bb6e8c813fb674c6fa11b24a7580d4f1b7f8c3a
libs: encoder: h265: choose the profile based on allowed list.

We can decide the profile in ensure_profile(), based on allowed list
passed by the encode. We also need to check whether the entrypoint is
available. Once it is decided, no need to check the hw entrypoint
them again.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/349>
gst-libs/gst/vaapi/gstvaapiencoder_h265.c