Re: [csswg-drafts] [css-color] [filter-effects] Should no-op filters produce different output from no filter? (#7100)

> P3 can get away with 8 bit, so I'm worried that requiring 16 bit will discourage implementations.

No. _Gamma-encoded_ P3 can get away with 8 bits per component, agreed. Linear-light needs considerably more bits as the space is not perceptually even, so avoiding banding requires more bits.

To see this, iterate from 0 to 255 and at each stage 
- convert to float 0..1
- convert to linear-light
- multiply by 2^n, round (to simulate using n bits)

Then count how many unique values there are. I [wrote code to do this](https://github.com/w3c/csswg-drafts/blob/main/css-color-4/workings/srgb-lin-precision.js) and 12 bits precision was the minimum to retain 256 unique values. (That code is for `srgb-linear`, but `display-p3` and `srgb` use the same transfer function).

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7100#issuecomment-1111557840 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 27 April 2022 22:57:54 UTC