![]() |
N64 QOI Demo
A N64 homebrew app that opens QOI images from ROM
|
This file is the entry point of the N64 QOI Viewer ROM. More...
#include <stdio.h>
#include <string.h>
#include <libdragon.h>
#include "../libdragon/include/joypad.h"
#include "../libdragon/include/joybus.h"
#include "qoi_viewer.h"
Data Structures | |
struct | name_node_pool_t |
A container for holding a bunch of names. More... | |
Macros | |
#define | POOL_IMG_SIZE 15 |
How many names can fit in a block. | |
#define | MAX_STRING_SIZE MAX_FILENAME_LEN + 1 |
Maximum length of a string. File names are limited by libdragon to 243 characters. | |
Typedefs | |
typedef struct name_node_pool_t | name_node_pool_t |
A container for holding a bunch of names. | |
Functions | |
joypad_inputs_t | joypad_poll_port (joypad_port_t port) |
Poll controller and get input from a specific port. | |
void | readNames (name_node_pool_t *start_node) |
Reads the names of QOI images from ROM. | |
void | start_viewer () |
This function starts QOI viewer to display first QOI image decoded. | |
void | printFirstDecodedValues (qoi_img_info_t *info) |
Prints the first values of the pixel decoded by the QOI Decoder. | |
int | main (void) |
This function is the entry point for QOI Viewer. | |
Variables | |
uint8_t | buffer0 [IMG_BUFFER_SIZE] |
Raw image buffer that decoded from qoi image file. | |
uint8_t | buffer1 [IMG_BUFFER_SIZE] |
second raw image buffer that decoded from qoi image file | |
This file is the entry point of the N64 QOI Viewer ROM.
|
inline |
Poll controller and get input from a specific port.
port | port controller from the n64 |
void printFirstDecodedValues | ( | qoi_img_info_t * | info | ) |
Prints the first values of the pixel decoded by the QOI Decoder.
info | QOI Image Metadata |
void readNames | ( | name_node_pool_t * | start_node | ) |
Reads the names of QOI images from ROM.
start_node | The initial node |