GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Description of one pixel channel. More...
#include <gp_pixel.h>
Data Fields | |
char | name [8] |
uint8_t | offset |
uint8_t | size |
uint8_t | lin_size |
Description of one pixel channel.
Assumes all the channel names to be at most 7 chars long
The common channel names are:
R, G, B - RGB as usual C, M, Y, K - CMYK V - value, for grayscale A - opacity (0=transparent) P - palette (index)
Definition at line 44 of file gp_pixel.h.
uint8_t gp_pixel_channel::lin_size |
Channel size after linearized with a gamma lookup table.
If size == lin_size the channel is always linear.
Definition at line 56 of file gp_pixel.h.
Referenced by gp_pixel_channel_lin_bits().
char gp_pixel_channel::name[8] |
Pixel channel name
Definition at line 46 of file gp_pixel.h.
Referenced by gp_pixel_channel_is_alpha(), and gp_pixel_channel_name().
uint8_t gp_pixel_channel::offset |
Channel offset in bits
Definition at line 48 of file gp_pixel.h.
uint8_t gp_pixel_channel::size |
Channel size in bits
Definition at line 50 of file gp_pixel.h.
Referenced by gp_pixel_channel_bits().