News for hackers. Stuff that matters.
Re:JPEG XL and the Pareto Front by lonjil on Saturday March 02, 2024 @07:14AM (#39572037)
> but it's absolutely ass for UI.

uhh, no it isn't?

And gainmaps suck, take lots of space, don't reduce banding. Even SDR needs 10-bit in a lot of situations to not have banding.

Re:JPEG XL and the Pareto Front by maxoverpower on Saturday March 02, 2024 @09:00AM (#39572579)
Gainmaps only take a lot of space if implemented poorly in the software creating the gainmap. On Pixel phones they take up 2% of the image size, by being stored in quarter resolution and scaling back up during decoding, which works fine on all gainmap-supported devices. They're more prone to banding, but it's definitely not a problem with all images.
Re:JPEG XL and the Pareto Front by lonjil on Saturday March 02, 2024 @10:30AM (#39573168)
I guess I should say, take up lots of space unless you're OK with lower quality. In any case, gainmaps are entirely unrelated to the 8 bit vs 10 bit question. The more range you have (gamut or brightness) the worse 8 bit is, regardless of whether you're using a gainmap or not. And you can use gainmaps with 10 bit images.
Re:JPEG XL and the Pareto Front by kllrnohj on Saturday March 02, 2024 @09:24AM (#39572729)
> > but it's absolutely ass for UI.

> uhh, no it isn't?

Find me a single example of a UI in HDR for the UI components, not for photos/videos.

> Even SDR needs 10-bit in a lot of situations to not have banding.

You've probably been looking at 10-bit HDR content on an 8-bit display panel anyway (true 10-bit displays don't exist in mobile yet, for example). 8-bits works fine with a bit of dithering

Re:JPEG XL and the Pareto Front by adgjlsfhk1 on Saturday March 02, 2024 @02:47PM (#39575228)
> 8-bits works fine with a bit of dithering

Yes, but the place where you want dithering is in the display, not in the image. Dithering doesn't work with compression because it's exactly the type of high frequency detail that compression removes. It's much better to have a 10 bit image which makes the information low frequency (and lets the compression do a better job since a 10 bit image will naturally be more continuous than an 8 bit image since there is less rounding error in the pixels), and let the display do the dithering at the end.