News for hackers. Stuff that matters.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by seoaeu on Thursday December 23, 2021 @11:08PM (#29670067)
No it can't. The encoder doesn't insert any "cut-off points". In fact, nearly every chunk encodes the current pixel value in terms of one of the previous pixel values, so without knowing those it is impossible for a second core to start up and initialize its decoder state enough to produce correct output.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by meltedcapacitor on Friday December 24, 2021 @04:25AM (#29671958)
Read again the proposal.

A top level thread scans the opcodes only to solve this, with no decoding and no writing, thus progressing faster in the stream than the child chunked decoding threads it progressively spawns.

Not as quick as a format with a chunk table, but faster than naive single core.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by seoaeu on Friday December 24, 2021 @11:31AM (#29674922)
I did read your comment. You don’t have any explanation of how the top level scan can maintain the color index array for QOI_OP_INDEX chunks without doing any decoding.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by flohofwoe on Friday December 24, 2021 @05:20AM (#29672336)
I bet you can split big images into smaller QOI encoded chunks and decode those in parallel.

QOI is simple enough to remix the file format as much as you want in your own encoder/decoder (that's actually the USP), it's not meant as a standardized image exchange format, just something that lives in your own asset pipeline.