3 ms·
My idea is more fun. To give a simple example: One can serve the odd rows of pixels first and construct the image when half the data is received. We can slice i
by throwaway14356 4y ago
My idea is more fun. To give a simple example: One can serve the odd rows of pixels first and construct the image when half the data is received. We can slice it horizontally and vertically as often as we want. Say 2784x1856 can be served as 100 images 280x190 one after the other.
When rendering a web document requires only a small version it needs only request the part it wants. Crappy resolution is desirable on a slow connection, with limited ram or a small screen. If the next customer wants to zoom in on it on his 4K display he can download the entire thing.
- 8ytecoder 4y agoIt already exists - progressive jpeg is interlaced.
- throwaway14356 4y agoGrainy tv signals are similar too. Much better than the it works or it doesn't work. Progressieve jpeg can do at most 5 passes and is a lossy format. It is designed to display fast then improve the resolution. Perhaps there are implementations that can partially load or stop loading it but it wasn't the goal was it? Imagine a thumbnail. You have some data there. One clicks on it and a larger version is shown using the thumb in stead of starting from scratch, now one zoons in on the image, surely loading different images from scratch every time is not the right approach? in stead we just don't serve the high resolution version that we [obviously] do have.
- astrange 4y agoThis is wavelets aka JPEG2K. The problem is that 1. they don't compress well, because they look blurry which is unpleasant 2. they are inefficient to decode because of poor memory locality. So that's why most codecs use macroblocks instead. IIRC Ogg Vorbis also originally supported this for audio but nobody used it.
- duskwuff 4y agoThat's basically how PNG interlacing works: http://www.libpng.org/pub/png/pngpic2.html http://www.libpng.org/pub/png/pngpic2.html The problem is that it destroys compression rates. PNG filtering and compression depends on being able to make predictions based on adjacent pixels; interlacing ruins that.
- throwaway14356 4y agoone could "distort" the image and have following frames correct it. Decompression could get heavier at the end of the train. Basically, there are lots of ideas to be had (even more for video) writing reliable implementations and finding adoption is hard.