News for hackers. Stuff that matters.
Re:The Short Case for Nvidia Stock by paulddraper on Monday January 27, 2025 @01:38PM (#42844193)
I love algorithms as much the next guy, but not really.

DCT was developed in 1972 and has a compression ratio of 100:1.

H.264 compresses 2000:1.

And standard resolution (480p) is ~1/30th the resolution of 4k.

---

I.e. Standard resolution with DCT is smaller than 4k with H.264.

Even high-definition (720p) with DCT is only twice the bandwidth of 4k H.264.

Modern compression has allowed us to add a bunch more pixels, but it was hardly a requirement for internet video.

Re:The Short Case for Nvidia Stock by WhitneyLand on Monday January 27, 2025 @03:31PM (#42845299)
DCT is not an algorithm at all, it’s a mathematical transform.

It doesn’t have a compression ratio.

Re:The Short Case for Nvidia Stock by paulddraper on Monday January 27, 2025 @04:45PM (#42846011)
> DCT compression, also known as block compression, compresses data in sets of discrete DCT blocks.[3] DCT blocks sizes including 8x8 pixels for the standard DCT, and varied integer DCT sizes between 4x4 and 32x32 pixels.[1][4] The DCT has a strong energy compaction property,[5][6] capable of achieving high quality at high data compression ratios.[7][8] However, blocky compression artifacts can appear when heavy DCT compression is applied.

https://en.wikipedia.org/wiki/Discrete_cosine_transform

Re:The Short Case for Nvidia Stock by WhitneyLand on Monday January 27, 2025 @06:15PM (#42846943)
Exactly, it’s not an algorithm, it’s one mechanism used in many (most?) compression algorithms.

Therefore, it has no compression ratio, and it doesn’t make sense to compare it to other algorithms.

Re:The Short Case for Nvidia Stock by nayuki on Monday January 27, 2025 @06:09PM (#42846871)
Correct. DCT maps N real numbers to N real numbers. It reorganizes the data to make it more amenable to compression, but DCT itself doesn't do any compression.

The real compression comes from quantization and entropy coding (Huffman coding, arithmetic coding, etc.).

Re:The Short Case for Nvidia Stock by wtallis on Monday January 27, 2025 @02:43PM (#42844837)
The web didn't go from streaming 480p straight to 4k. There were a couple of intermediate jumps in pixel count that were enabled in large part by better compression. Notably, there was a time period where it was important to ensure your computer had hardware support for H.264 decode, because it was taxing on low-power CPUs to do at 1080p and you weren't going to get streamed 1080p content in any simpler, less efficient codec.
Re:The Short Case for Nvidia Stock by paulddraper on Monday January 27, 2025 @03:10PM (#42845084)
Right.

Modern compression algorithms were developed but not even computationally available for some of the time.

Re:The Short Case for Nvidia Stock by foobarian on Monday January 27, 2025 @05:48PM (#42846683)
I'm sure it helped, but yeah, not only e2e bandwidth but also the total network throughput increased by vast orders of magnitude.