What the frame header says about an image.
Read from the SOF segment of the image itself, so these are the actual
dimensions and coding process of the bytes in hand — not what the device
was asked to produce.
Summary
Types
@type chroma_format() :: :I420 | :I422 | :I444 | :I440 | :I411 | :gray | nil
Chroma subsampling, named the way video code usually names it.
nil when the sampling factors are not one of the arrangements a camera
actually emits — guessing a name for an unusual one would be worse than
admitting it is unknown.
@type t() :: %BB.Camera.FFmpeg.Jpeg.Info{ chroma_format: chroma_format(), components: pos_integer(), height: pos_integer(), precision: pos_integer(), progressive?: boolean(), width: pos_integer() }