BB.Camera.V4L.Jpeg.Info (bb_camera_v4l v0.1.0)

Copy Markdown View Source

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

Chroma subsampling, named the way video code usually names it.

t()

Types

chroma_format()

@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()

@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()
}