Skip to content
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

Native HDR support #874

Open
realFPS opened this issue Feb 29, 2024 · 3 comments
Open

Native HDR support #874

realFPS opened this issue Feb 29, 2024 · 3 comments

Comments

@realFPS
Copy link

realFPS commented Feb 29, 2024

What I am requesting is playing HDR video properly on a HDR screen not HDR tone mapped as SDR.

@Andarwinux
Copy link

Just buy a Pixel 8 Pro and use androidvk branch.

ref: https://vulkan.gpuinfo.org/displayreport.php?id=29754#surfaceformats

A2B10G10R10_UNORM_PACK32	HDR10_ST2084_EXT
A2B10G10R10_UNORM_PACK32	HDR10_HLG_EXT

@sfan5
Copy link
Member

sfan5 commented May 10, 2024

This is a good question because I barely have any idea about this.

In Android 8 support was added for "wide gamut", in practice that means DCI-P3 and it works on OpenGL/Vulkan too. But this is probably not what most people mean when they say "HDR".

According to Google's documentation for HDR playback, HDR video only works through a SurfaceView. This would suggest that it already works today if you use vo=mediacodec_embed.

What @Andarwinux mentioned is Vulkan support for HDR colorspaces. This sounds like it could be useful for mpv though I don't know if it's already supported or other platform specific support code is needed (HDR metadata???).
@haasn would know, if he has time to reply here.

@sfan5 sfan5 changed the title Native HDR support for android. Native HDR support May 10, 2024
@haasn
Copy link

haasn commented May 10, 2024

libplacebo already natively supports vulkan HDR when available (that's how we do HDR on windows, as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants