libs: encoder: h265: modify set_max_profile to set_allowed_profiles.
authorHe Junyan <junyan.he@intel.com>
Thu, 2 Jul 2020 16:53:31 +0000 (00:53 +0800)
committerHe Junyan <junyan.he@intel.com>
Thu, 30 Jul 2020 09:42:49 +0000 (17:42 +0800)
commit3554f06235aaee322eaf7f8187ed6c67123e745d
treeee0cb385b83c1dff4721dacd94c252e521a1531b
parent579aa4cab1910d87c548b195dead6583b3704529
libs: encoder: h265: modify set_max_profile to set_allowed_profiles.

In h265, bigger profile idc may not be compatible with the small profile
idc. And more important, there are multi profiles with the same profile
idc. Such as main-422-10, main-444 and main-444-10, they all have profile
idc 4.
So recording the max profile idc is not enough, the encoder needs to know
all allowed profiles when deciding the real profile.

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