GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_pixel_channel Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ lin_size

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().

◆ name

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().

◆ offset

uint8_t gp_pixel_channel::offset

Channel offset in bits

Definition at line 48 of file gp_pixel.h.

◆ size

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().


The documentation for this struct was generated from the following file: