VideoPixelFormat

type VideoPixelFormat = 
  | "yuv-420-8-bit-video"
  | "yuv-420-8-bit-full"
  | "yuv-420-10-bit-video"
  | "yuv-420-10-bit-full"
  | "yuv-422-8-bit-video"
  | "yuv-422-8-bit-full"
  | "yuv-422-10-bit-video"
  | "yuv-422-10-bit-full"
  | "yuv-444-8-bit-video"
  | "rgb-bgra-8-bit"
  | "rgb-rgba-8-bit"
  | "rgb-rgb-8-bit"
  | "raw-bayer-packed96-12-bit"
  | "raw-bayer-unpacked-16-bit"
  | "unknown"

Represents the pixel format of a video image buffer. Video Formats are either YUV or RGB. The most commonly used format is yuv-420-8-bit-video.

  • yuv-420-8-bit-video: YUV (4:2:0 YpCbCr) 8-bit planar video-range ([Y: 16...235, UV: 16...240])
  • yuv-420-8-bit-full: YUV (4:2:0 YpCbCr) 8-bit planar full-range ([Y: 0...255, UV: 0...255])
  • yuv-420-10-bit-video: YUV (4:2:0 YpCbCr) 10-bit planar video-range ([Y: 64...940, UV: 64...960])
  • yuv-420-10-bit-full: YUV (4:2:0 YpCbCr) 10-bit planar full-range ([Y: 0...1023, UV: 0...1023])
  • yuv-422-8-bit-video: YUV (4:2:2 YpCbCr) 8-bit planar video-range ([Y: 16...235, UV: 16...240])
  • yuv-422-8-bit-full: YUV (4:2:2 YpCbCr) 8-bit planar full-range ([Y: 0...255, UV: 0...255])
  • yuv-422-10-bit-video: YUV (4:2:2 YpCbCr) 10-bit planar video-range ([Y: 64...940, UV: 64...960])
  • yuv-422-10-bit-full: YUV (4:2:2 YpCbCr) 10-bit planar full-range ([Y: 0...1023, UV: 0...1023])
  • yuv-444-8-bit-video: YUV (4:4:4 YpCbCr) 8-bit planar video-range ([Y: 16...235, UV: 16...240])
  • rgb-bgra-8-bit: RGB (4 channels BGRA) 8-bit ([B: 0...255, G: 0...255, R: 0...255, A: 0...255])
  • rgb-rgba-8-bit: RGB (4 channels RGBA) 8-bit ([R: 0...255, G: 0...255, B: 0...255, A: 0...255])
  • rgb-rgb-8-bit: RGB (3 channels RGB) 8-bit ([R: 0...255, G: 0...255, B: 0...255])
  • raw-bayer-packed96-12-bit: RAW Bayer in 12-bit precision, packed into 96-bit pairs
  • raw-bayer-unpacked-16-bit: RAW Bayer in 16-bit precision, unpacked
  • unknown: An unknown format.