google / google/wuffs

RGB/BGR 16 bit treated like RGBA/BGRA?

Open
#115 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4.8k
Forks
145
Avg merge
11h 48m
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.