# `VideoInterop.Binary.Format`
[🔗](https://github.com/emerge-elixir/video_interop/blob/v0.1.0/lib/video_interop/binary/format.ex#L1)

Pixel interpretation for BEAM-owned binary frame storage.

Gray2 and BW1 rows are packed independently, most-significant group first.
Gray2 stores levels `0..3` from black to white. BW1 requires an explicit
`:one_is_black` or `:one_is_white` polarity.

# `pixel_format`

```elixir
@type pixel_format() :: :rgba8888 | :rgb888 | :gray8 | :gray2 | :bw1
```

# `t`

```elixir
@type t() :: %VideoInterop.Binary.Format{
  bw1_polarity: :one_is_black | :one_is_white | nil,
  pixel_format: pixel_format()
}
```

---

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