-
Notifications
You must be signed in to change notification settings - Fork 129
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
RGB/BGR 16 bit treated like RGBA/BGRA? #115
Comments
Because functions like wuffs/internal/cgen/base/pixconv-submodule.c Line 202 in bc86394
|
why PNG color_type == 2 (so RGB triple) in the file
https://github.com/google/wuffs/blob/main/std/png/decode_png.wuffs
} else if this.depth == 16 {
this.dst_pixfmt = base.PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE
this.src_pixfmt = base.PIXEL_FORMAT__BGRA_NONPREMUL_4X16LE
this.filter_distance = 6
choose filter_and_swizzle = [filter_and_swizzle_tricky]
}
is treated like BGRA_NONPREMUL_4X16LE plus swizzle instead of a PIXEL_FORMAT__BGR_16LE?
Best
Paolo
The text was updated successfully, but these errors were encountered: