Type Aliases

PixelFormat

type PixelFormat = 
  | "rgba"
  | "bt601-limited"
  | "bt601-full"
  | "bt709-limited"
  | "bt709-full"
  | "bt2020-limited"
  | "bt2020-full"
  | "jpeg-full";

How a hardware buffer's YUV planes map to RGB. rgba means the buffer is not YUV at all - a single-plane RGBA surface, imported without a conversion.

The camera hook infers the matrix and range from the producer's pixel-format string, falling back to bt601-limited when it carries no recognised tag.

On this page

No Headings