Esc

jpeg_resolve_height

procedureextensionsince 0.36.1Source
  • macOS: jpeg_resolve_height works on macOS
  • Linux: jpeg_resolve_height works on Linux
  • Windows: jpeg_resolve_height works on Windows
  • Wasm: jpeg_resolve_height works on Wasm

Reads only marker framing through the first entropy segment, before allocating planes. For example, a zero-height SOF followed by a one-line DNL allocates one line, not zero.

Signature

jpeg_resolve_height :: (
    data: *u8,
    end: s64,
    at: s64,
    declared: s32
) -> (height: s32, dnl_at: s64, error: string)

See also