https://github.com/htv04/libpngu-mod
https://github.com/htv04/libpngu-mod
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/htv04/libpngu-mod
- Owner: HTV04
- License: mit
- Created: 2022-05-08T12:28:15.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T02:22:46.000Z (almost 4 years ago)
- Last Synced: 2023-03-05T12:00:20.655Z (over 3 years ago)
- Language: C
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libpngu-mod
A library for Wii and GameCube that "wraps" libpng, facilitating PNG handling and conversions to the native Wii/GC formats.
libpngu-mod is based on [libpngu](https://wiibrew.org/wiki/PNGU) with [GRRLIB patches](https://github.com/GRRLIB/GRRLIB/tree/master/GRRLIB/lib/pngu).
## Features
* Works with the latest libpng (1.6.37 as of writing)
* Handles images of 8 and 16 bits per channel
* Handles images in RGB, RGBA, grayscale, grayscale + alpha, and indexed formats
* Reads image dimensions, pixel format, background color and transparent colors list
* Converts images to YCbYCr, linear RGB565, linear RGBA8, 4x4 RGB565, 4x4 RGB5A3 and 4x4 RGBA8 formats
* Saves YCbYCr images in PNG RGB8 format
* Handles images stored in memory or in devoptab devices (SD, USB, SDGecko, etc...)
* Ready to be used in multithreaded applications
## Limitations
* Image width and height should be a multiple of 4