4 ms·
Encoding an image as a repeated sequence of variable-length integers would obviously be a poor choice.
by shereadsthenews 7y ago
Encoding an image as a repeated sequence of variable-length integers would obviously be a poor choice.
- rootlocus 7y agoExcept.. that's pretty much how raw images are represented. Substituting "integers" for "bytes" if you want channel resolution, or leaving integers if you have 32bit pixel depth. https://github.com/nothings/stb/blob/master/stb_image.h#L120 https://github.com/nothings/stb/blob/master/stb_image.h#L120 https://wiki.libsdl.org/SDL_Surface https://wiki.libsdl.org/SDL_Surface
- pwodhouse 7y agoYou overlooking the critical term: variable-length.