-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Replace enum HDRTypes with Display.HdrCapabilities constants #23769
Conversation
Is the SDK version dependent on the device's Android? Or is it something set at compile time depending on the SDK used when building? If it's dependent on the device, then I think this could break HDR10+ detection on some devices. |
The availability of methods and constants depend on the API level of the device. HDR_TYPE_HDR10_PLUS constant was added at level 29. |
Okay. I should try testing on an actual HDR10+ display. |
Please check in that device in |
Alright, connected to a HDR10+ display, I don't think it showed HDR10+ (for some reason I don't remember exactly, maybe I should look again).
On Alpha 3 build:
So even the current code doesn't seem to detect HDR10+. And on Dolby Vision display:
But the system info does show properly all of them: HDR10, Dolby Vision, HLG. |
As expected, the This PR should not affect the detection of supported HDR types. The Amazon FireTV Stick 4K Max device will have some codec tweaks to play HDR10+. |
FWIW I just wanted to confirm since FireOS doesn't always strictly adhere to the API. |
I've checked with FireTV and Chromecast that this PR does not modify the behaviour and would be safe to merge |
LGTM. I'll revisit testing HDR10+ detection when I get the new 4K Max next week, since it'll be API level 30. |
Have merged the libandroidjni. If you can update to that and squash/cleanup the extra commits thatd be great. |
1105932
to
bbbf2f9
Compare
Description
Avoid using the value of the constants directly in the code.
Depends on xbmc/libandroidjni#48
Types of change
Checklist: