VideoInterop.Binary.Format (video_interop v0.1.0)

Copy Markdown View Source

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.

Summary

Types

pixel_format()

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

t()

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