![]() |
N64 QOI Encoder Demo 1.0.1
Encoder for N64 that saves it to SD card
|
Color conversion utilities for N64 QOI encoder. More...
#include <stdint.h>Go to the source code of this file.
Functions | |
| uint16_t | read_be_u16 (uint16_t val) |
| Reads an 16-bit unsigned big endian integer number. | |
| uint32_t | n64_color16_to_rgba32 (uint16_t px16) |
| Convert N64 16-bit (5R-5G-5B-1A) to 0xRRGGBBAA (32-bit). | |
Color conversion utilities for N64 QOI encoder.
colorconv.h - Color conversion utilities for N64 QOI encoder
Code licensed under MIT License
Copyright (c) 2026 Aftersol
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file colorconv.h.
|
inline |
Convert N64 16-bit (5R-5G-5B-1A) to 0xRRGGBBAA (32-bit).
| px16 | The 16-bit pixel value to convert |
Definition at line 56 of file colorconv.h.
| uint16_t read_be_u16 | ( | uint16_t | val | ) |
Reads an 16-bit unsigned big endian integer number.
| val | value of a 16-bit unsigned integer in big endian |
Definition at line 47 of file colorconv.h.