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

QOI encoder structure. More...

#include <qoi_enc_n64.h>

Data Fields

qoi_pixel_t pix_buffer [64]
 The total number of pixels in the image to encode.
qoi_pixel_t prev_pixel
 The previous pixel value is used to compare with the current pixel value to determine which QOI opcode to use for encoding the current pixel value.
uint8_t * enc_buffer
 The buffer to store the encoded QOI data before writing to the file.
uint32_t buffer_offset
 The offset of the buffer to write the next encoded data to.
uint32_t buffer_len
 The total length of the buffer.
uint32_t pixel_offset
 The offset of the pixel data to encode in the image.
uint32_t pixels_written
 The total number of pixels encoded so far.
uint32_t len
 The total length of the pixel data to encode (width * height).
uint8_t run
 The run length of the current pixel value being encoded.

Detailed Description

QOI encoder structure.

Definition at line 129 of file qoi_enc_n64.h.

Field Documentation

◆ buffer_len

uint32_t buffer_len

The total length of the buffer.

Definition at line 146 of file qoi_enc_n64.h.

◆ buffer_offset

uint32_t buffer_offset

The offset of the buffer to write the next encoded data to.

Definition at line 144 of file qoi_enc_n64.h.

◆ enc_buffer

uint8_t * enc_buffer

The buffer to store the encoded QOI data before writing to the file.

Definition at line 142 of file qoi_enc_n64.h.

◆ len

uint32_t len

The total length of the pixel data to encode (width * height).

Definition at line 153 of file qoi_enc_n64.h.

◆ pix_buffer

qoi_pixel_t pix_buffer

The total number of pixels in the image to encode.

A running array[64] (zero-initialized) of previously seen pixel

values is maintained by the encoder and decoder. Each pixel that is

seen by the encoder and decoder is put into this array at the

position formed by a hash function of the color value.

Definition at line 136 of file qoi_enc_n64.h.

◆ pixel_offset

uint32_t pixel_offset

The offset of the pixel data to encode in the image.

Definition at line 149 of file qoi_enc_n64.h.

◆ pixels_written

uint32_t pixels_written

The total number of pixels encoded so far.

Definition at line 151 of file qoi_enc_n64.h.

◆ prev_pixel

qoi_pixel_t prev_pixel

The previous pixel value is used to compare with the current pixel value to determine which QOI opcode to use for encoding the current pixel value.

Definition at line 139 of file qoi_enc_n64.h.

◆ run

uint8_t run

The run length of the current pixel value being encoded.

Definition at line 155 of file qoi_enc_n64.h.


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