Jpeg.jpeg.component.tables: def of gralha-jpeg-decode@0.1.0.1 Import: import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpeg Lines 491-496 of gralha-jpeg-decode@0.1.0.1/jpeg.bend: https://jend.leeeet.dev/read.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&start_line=491&end_line=496 import Base import gralha-bytes@0.1.0.1/bytes.bend as Bin def jpeg.component.tables(found: Maybe<&2, JPEGComponent>, spec: U32) -> JPEGComponent: match found: case None{}: JPEGComponent{255, 1, 1, 0, 4, 4, 0, 0, 0, Bin.bytes.empty(), Bin.bytes.empty()} case Some{JPEGComponent{id, h, v, quant, dc, ac, predictor, bw, bh, coefficients, samples}}: +tag = spec JPEGComponent{id, h, v, quant, (tag / 16 : U32), (tag % 16 : U32), 0, bw, bh, coefficients, samples} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mod https://jend.leeeet.dev/definition.txt?path=gralha-bytes@0.1.0.1/bytes.bend&name=bytes.empty https://jend.leeeet.dev/definition.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&name=JPEGComponent