Skip to content
/ bif Public

BIF (bad image format) is just for learning and not at all supposed to be close to proper in-use image formats

Notifications You must be signed in to change notification settings

AyeAreEm/bif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BIF

Bad Image Format

Note

This project is just meant to be a learning experience

Specification

All bif files must start with "BIF {width} {height}\n" as the header
The data is an unsigned 32bit integer where the first 8bits are number of pixels this data represents, and the next 24bits are RGB values in 8bits

| no. of pixels | r | g | b | a |
u32 u8 u8 u8 u8

At the end of each row needs to be a newline character

Example

Here is a 10x10 image of red

BIF 10 10
184483840
184483840
184483840
184483840
184483840
184483840
184483840
184483840
184483840
184483840

About

BIF (bad image format) is just for learning and not at all supposed to be close to proper in-use image formats

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages