-
Notifications
You must be signed in to change notification settings - Fork 670
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
Make UNPACK_COLORSPACE_CONVERSION_WEBGL=FALSE apply to all content #3683
Comments
For I think the carve-out in the Pixel Storage Parameters section of the spec should remain for all |
There should be no color space conversion done during We can remove all of the |
I'll draft this spec change. |
Thanks!! There is a similar issue over in Also, this adds a feature to WebGL that WebGPU doesn't have, so I filed this issue for WebGPU to get a |
After the WebGL working group meetings of 2024-08-08 and 2024-08-22, the consensus among browser vendors was to move in this direction, as |
For texImage2D, the spec says
This proposal is to remove the "except if the source image data is an HTMLImageElement" part, and instead have this read:
Prior to this change,
ImageData
,HTMLCanvasElement
,HTMLVideoElement
, andImageBitmap
have no way to "opt out" of color conversion. With this change, they do.The motivation for only having
HTMLImageElement
be affected byUNPACK_COLORSPACE_CONVERSION_WEBGL=NONE
is discussed in this comment. Those motivations are now obsolete.We do want to be clear that any data that is a YUV format is always converted from YUV to RGB. This applies to images as well as videos (we often think of videos as being stored in YUV, but most images are, too).
The text was updated successfully, but these errors were encountered: