Get the latest tech news
H.264 Is Magic (2016)
A high level walkthrough of the basics of video compression techniques used in MPEG, AVC/H.264, codecs.
It is the result of 30+ years of work with one single goal: To reduce the bandwidth required for transmission of full-motion video. There is another mindfuck mathematical theorem[^2] that states that you can do this for any data and you can achieve a perfect lossless transformation as long as freqX and freqY are high enough. Now if you convert back to your regular x-y coordinates, you'll find that the resulting image looks similar to the original but has lost some of the fine details.
Or read this on Hacker News