N64 QOI Encoder Demo 1.0.1
Encoder for N64 that saves it to SD card
Loading...
Searching...
No Matches
qoi_pixel_t Union Reference

QOI pixel structure for storing the color values of a pixel in both individual channels and as a concatenated value for easy comparison and hashing. More...

#include <qoi_enc_n64.h>

Data Fields

struct { 
   uint8_t   red 
 The red value of the pixel. More...
   uint8_t   green 
 The green value of the pixel. More...
   uint8_t   blue 
 The blue value of the pixel. More...
   uint8_t   alpha 
 The alpha value of the pixel, which represents the transparency of the pixel. A value of 0 means the pixel is fully transparent, while a value of 255 means the pixel is fully opaque. More...
}; 
 The individual color channels of the pixel.
uint8_t channels [4]
 channels of the pixel in an array for easy access to channels by index
uint32_t concatenated_pixel_values
 The concatenated pixel values in a single 32-bit integer for easy comparison of pixels as a single value instead of comparing each channel separately. The order of the channels in the concatenated value is RGBA, with red being the most significant byte and alpha being the least significant byte.
struct { 
   uint8_t   red 
 The red value of the pixel. More...
   uint8_t   green 
 The green value of the pixel. More...
   uint8_t   blue 
 The blue value of the pixel. More...
   uint8_t   alpha 
 The alpha value of the pixel, which represents the transparency of the pixel. A value of 0 means the pixel is fully transparent, while a value of 255 means the pixel is fully opaque. More...
}; 
 The individual color channels of the pixel.

Detailed Description

QOI pixel structure for storing the color values of a pixel in both individual channels and as a concatenated value for easy comparison and hashing.

Definition at line 107 of file qoi_enc_n64.h.

Field Documentation

◆ [struct]

struct { ... }

The individual color channels of the pixel.

◆ [struct]

struct { ... }

The individual color channels of the pixel.

◆ alpha

uint8_t alpha

The alpha value of the pixel, which represents the transparency of the pixel. A value of 0 means the pixel is fully transparent, while a value of 255 means the pixel is fully opaque.

Definition at line 118 of file qoi_enc_n64.h.

◆ blue

uint8_t blue

The blue value of the pixel.

Definition at line 116 of file qoi_enc_n64.h.

◆ channels

uint8_t channels

channels of the pixel in an array for easy access to channels by index

Definition at line 122 of file qoi_enc_n64.h.

◆ concatenated_pixel_values

uint32_t concatenated_pixel_values

The concatenated pixel values in a single 32-bit integer for easy comparison of pixels as a single value instead of comparing each channel separately. The order of the channels in the concatenated value is RGBA, with red being the most significant byte and alpha being the least significant byte.

Definition at line 124 of file qoi_enc_n64.h.

◆ green

uint8_t green

The green value of the pixel.

Definition at line 114 of file qoi_enc_n64.h.

◆ red

uint8_t red

The red value of the pixel.

Definition at line 112 of file qoi_enc_n64.h.


The documentation for this union was generated from the following files: