raw-image-v
August 7, 2022 ยท View on GitHub
A simple to parse, raw image file format. Implementations to read images in python and V.
V implementation
WARNING: the V and python reader uses little endian byte order
v run rimg-reader.v will run the file in the terminal and the file specified in the main function test.rimg will be read and displayed inside the terminal
Default constants
const (
r_width = 32
r_height = 32
bilinear_filtering = true // enable or disable texture filtering
)
Python
Create images using the parser.py and read or display them using read.py
$ python3 parser.py
Usage: python3 parser.py <file> <output>
$ python3 read.py
Usage: python3 read.py <file> <output>
Using _ as <output> will not save the file. (useful for checking corruption)
Appending "show" to the end of program arguments will display the image.