def jpeg.progressive.dc.bits

gralha-jpeg-decode@0.1.0.1 · jpeg.bend:251

import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpeg
import Base
import gralha-bytes@0.1.0.1/bytes.bend as Bin

251def jpeg.progressive.dc.bits(read: JPEGRead, count: U32, coefficients: Bin.Bytes, predictor: U32, offset: U32, low: U32) -> JPEGBlock:
252  JPEGRead{word, stream} = read
253  +dc = (predictor + jpeg.extend(word, count) : U32)
254  JPEGBlock{stream, Bin.bytes.set(coefficients, offset, U32.shln(dc, U32.to_nat(low))), dc}

Uses (9)

Used by (1)