Open kainino0x opened 2 years ago
Edited summary above to add that we need to test high bit depth images as well.
Here's a python script for generating test images. It has a few basic examples in it. https://github.com/kainino0x/wide-color-test-images
Also added HDR to the list above.
The test case I have in mind is a simple case similar to the 10bpc one I added to WebGL, but with 16 red pixels:
[[ 0 1 2 3]
[1020 1021 1022 1023]
[1024 1025 1026 1027]
[and 4 values leading up to the max brightness of the encoding]]
where SDR 1.0 = 1023
with added checks to make sure that the values are in the right range (not just that there are enough distinct values, like in the 10bpc test).
Followup to #913.
The PNG tests in particular are important because they should have wider browser support than ImageData's colorSpace option.