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
proposal: image: add image.NYCbCrA and color.NYCbCrA types. #12722
Comments
SGTM. I don't think its inclusion would materially affect the display of https://golang.org/pkg/image/ |
SGTM |
CL https://golang.org/cl/15671 mentions this issue. |
@nigeltao I have a question about this change: In
But in |
This question is now issue #13706. |
This adds transparency (an Alpha channel) to the existing YCbCr types for JPEG-like images and color. The N stands for non-alpha-premultiplied, the same as the existing NRGBA types.
JPEG-like-with-alpha is used by the WebP format, and there already exists code (see [0]) under golang.org/x to represent such images and colors. The proposal is to move that from golang.org/x/image/webp/nycbcra to image, so that the image/draw package in the standard library can recognize such images, and implement a fast path for drawing them, the way YCbCr images are fast-pathed.
[0] https://go.googlesource.com/image/+/master/webp/nycbcra/nycbcra.go
The text was updated successfully, but these errors were encountered: