News for hackers. Stuff that matters.
Re:FFmpeg School of Assembly Language by astrange on Saturday February 22, 2025 @06:59PM (#43144633)
There's a difference because audio processing is often "massively parallel", or at least like 1024 samples at once, but in video codecs operations could be only 4 pixels at once and you have to stretch to find extra things to feed the SIMD operations.
Re:FFmpeg School of Assembly Language by screcth on Sunday February 23, 2025 @10:05AM (#43149758)
Can you use the remaining SIMD lanes for processing independent data streams?

Think encoding or decoding non-overlapping parts of a video.

Re:FFmpeg School of Assembly Language by astrange on Tuesday February 25, 2025 @01:09AM (#43168734)
So, you can't necessarily do that because video is compression, and compression means not predictable. (If it's predictable it's not compressed well enough.)

That means you have to stick to inside the current block. But there are some tricks; like for an IDCT there's a previous stage where you can rearrange the output memory elements for free, so you can shuffle things as you need to fit them into vectors.