Open HSNB opened 3 months ago
Technically, yes, but:
imgcfg.pixcfg.pixfmt
when they create that pixel buffer, if they really want to.On the other hand, Wuffs' standard library isn't just a PNG decoder. It can decode multiple image file formats (all with the same API) and it's simpler for the API caller if Wuffs standardizes on one order (independent of the actual file format) and we've chosen the one that Win32-x86 uses: BGRA.
According to the PNG spec: Pixels are always stored in RGBA order:
However Wuffs reports the pixel format as BGR(A).
Am I missing something here or is performance lost by swizzling? 😯