News for hackers. Stuff that matters.
Re:H.264 is Magic (2016) by astrange on Thursday March 17, 2022 @02:27PM (#30714345)
JPEG2000 wasn't technically better enough; wavelets are too blurry and less efficient to decode. For some reason there was an epidemic of terrible codec designs for a decade or two, though it could've all been patent avoidance.
Re:H.264 is Magic (2016) by AceJohnny2 on Thursday March 17, 2022 @03:14PM (#30714830)
Wavelets were a great idea... except AFAIK we never figured out fast algorithms or hardware implementations to optimize processing them, the way we did with Fourier Transform and the FFT algorithm and IDCT blocks.
Re:H.264 is Magic (2016) by brigade on Thursday March 17, 2022 @04:33PM (#30715577)
A lifting implementation of a wavelet is pretty low complexity, iirc the CDF 9/7 used in JPEG2000 was effectively a 5-tap filter. Implementation-wise, the biggest issue is that approximately no one bothered optimizing their memory access patters for CPU caches with anywhere near the same attention FFTs got. Then unlike block-based codecs, you basically need to store 16-bit coefficients for an entire frame for 8-bit pixels, instead of per-block.

But ultimately, DCTs make it way cheaper to encode similar but wrong details, where in wavelets details are effectively repeated across multiple highpass bands so the only cheap option is to not code detail.

Re:H.264 is Magic (2016) by rasz on Friday March 18, 2022 @04:59AM (#30719950)
So bad its still industry standard in Cinema quality video codecs? Like the obfuscated jpeg2000 in RED codec.
Re:H.264 is Magic (2016) by astrange on Friday March 18, 2022 @07:59PM (#30729251)
Who says they know what they're doing?

DCI (how movies are sent to theaters) does use JPEG2000, but I think they just wanted something with 12-bit video and that's pretty rare in any codec.

One advantage is if you want to decode the same picture at lower resolutions; JPEG can do this equivalent to nearest-neighbor, wavelets can do it equivalent to a better filter than that. But still not as good as just decoding and resizing down.