amusinglamp / av1paint

Experiments in directly writing avif files, artistic uses of the codec features, and smallest possible file sizes
0 stars 0 forks source link

Create a solid square of an arbitrary colour #1

Open amusinglamp opened 4 years ago

amusinglamp commented 4 years ago

Colours are weird, embedded in a bunch of structures, potentially repeat, and don't have a fixed length.

Being able to set a single colour for a whole image will mean I've understood how at least some of the colour coding works, which will be common at least in part between avif and av1.

It also helps me understand experimentally which parts of an .avif are structure and which are image content

Plan is to begin by being able to generate any 32x32 greyscale solid colour. 32x32 is the limit that my OS will display av1f thumbnails which allows me to quickly verify if it's valid.

To begin with I'll convert a bunch of different png files to avif so that I have representative data.

amusinglamp commented 4 years ago

Have got generated shapes, but need to get further info how the data representation works.