# `BB.Camera.V4L.Jpeg.Info`
[🔗](https://github.com/beam-bots/bb_camera_v4l/blob/main/lib/bb/camera/v4l/jpeg.ex#L53)

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.

# `chroma_format`

```elixir
@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.

# `t`

```elixir
@type t() :: %BB.Camera.V4L.Jpeg.Info{
  chroma_format: chroma_format(),
  components: pos_integer(),
  height: pos_integer(),
  precision: pos_integer(),
  progressive?: boolean(),
  width: pos_integer()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
