# byte is assumed to be octet
# char is assumed to be 1 byte
#
# struct rawimg {
# char[8] magic_num = "rifV0001" // Big Endian. UTF-8 Encoded. 72 69 66 56 30 30 30 31
# uint64_t width; // Big Endian
# uint8_t format;
# uint8_t[] data;
# }
#
# formats:
# 0x00 = (24 bits / 3 bytes) R8 B8 G8
# 0x01 = (32 bits / 4 bytes) R8 B8 G8 A8
# ... undefined in V0001
#
# data is a flat array, starting at top left, going right then bottom.
# Python 3.10
# encode.py uses pillow for input image reading
# Usage: python encode.py