Re:Decoding AVIF: Deep dive with cats and imgproxy
by magicalhippo on Tuesday August 17, 2021 @05:30AM
(#28207861)
> simply jpeg encoded as the intraframe
In case it wasn't obvious, the error image can of course have negative values which jpeg can't handle. So you add a bias of +128 and clamp the biased error to [0, 255].
During decoding you simply subtract the bias when adding back the error image.
In case it wasn't obvious, the error image can of course have negative values which jpeg can't handle. So you add a bias of +128 and clamp the biased error to [0, 255].
During decoding you simply subtract the bias when adding back the error image.