def jpeg.signed
import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpegimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
75# Quantized coefficients use two's-complement U32 storage, with explicit
76# signed conversion before floating-point reconstruction.
77def jpeg.signed(+value: U32) -> F32:
78 U.branch(F32, U32.is_ge(value, 2147483648), _ => F32.neg(U32.to_f32((0 - value : U32))), _ => U32.to_f32(value))