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)