The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
gfx_internal.h File Reference

pixel arithmetic shared by the libgfx sources. More...

#include "gfx.h"

Go to the source code of this file.

Detailed Description

pixel arithmetic shared by the libgfx sources.

the helpers work on two channels at once: red and blue in one 32-bit word (mask 0x00FF00FF), alpha and green in another. each channel has 16 bits of room, so a product of two bytes does not spill into the next.