[Android] improve Dolby Vision compatibility #23079
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Improve Dolby Vision compatibility
Motivation and context
Follow up of #22950
While the previous PR improved the compatibility of profiles 4 and 5 with devices that do not have a DV display, it has also caused regressions with Dolby Vision profiles 7, 8 and devices that normally work well with HDR10 fallback.
This is very important use case as all BD remuxes that come from commercial UHD Blu-Ray's has DV profile 7 with HDR10 fallback (or profile 8 if it has been converted with some tool).
See #22950 (comment) and #22950 (comment)
How has this been tested?
Tested Shield Pro 2019 with Dolby Vision Shield setting disabled.
Tested various BDremux (DV profile 7) and demo clips (DV profile 8) mkv and mp4.
Confirmed output picture is HDR10 on TV and in Kodi Player Info video decoder used is amc-hevc(s) HW
What is the effect on users?
Improve Dolby Vision compatibility with devices that are not DV capable but has HDR10 capabilities.
At same time maintains the improvements of the previous PR for devices that are capable of HW tone mapping Dolby Vision profile 4, 5 to SDR.
Screenshots (if appropriate):
Types of change
Checklist: