libs: encoder: Set entrypoint based on tune automatically.
Some profile such as H265_MAIN_444 may only supported in entrypoint of ENTRYPOINT_SLICE_ENCODE_LP. This leads two problems,
- We need to specify the tune mode like vaapih265enc tune=low-power every time when we need to use this kind of profile. Or we can not create the encoder context successfully.
- More serious, we set the entrypoint to a fixed value in init_context_info and so the create_test_context_config can not create the test context for these profile and can not get the supported video formats, either.
We now change the entrypoint setting based on the tune option of the encoder. If no tune property provided, we just choose the first available entrypoint.