3 ms·
I actually think HVIF is one of the few things Haiku has done that's good engineering and deserves to see more use in something actually popular but it's very n
by tialaramex 7y ago
I actually think HVIF is one of the few things Haiku has done that's good engineering and deserves to see more use in something actually popular but it's very niche.
Per-file icons is a nice way to get cheap previews, especially at higher resolutions. For 2D images a fairly naive previewing method is to just flatten the whole image and scale it. For a PDF it will often but not always be useful to render the first non-empty page, then as you get into video, 3D or sounds it all starts to trickier.
However of course HVIF doesn't benefit any of these use cases, it's at its best when an artist has spent some effort learning techniques specific to the format and then hand crafts each icon accordingly.
HVIF in practice mostly gives icons to application software, so this technique lets Haiku use the directory of binaries to get back a set of icons for the applications those binaries implement, without doing a small file read per application as would happen in say Windows. A small advantage.