Skip to main content

Module uyvy

Module uyvy 

Source
Expand description

UYVY (YUV 4:2:2) decoder.

UYVY is a packed YUV format where each 4-byte group encodes two pixels that share U (Cb) and V (Cr) chroma values.

Byte 0: U0 (Cb)     — shared chroma blue-difference
Byte 1: Y0          — luma for pixel 0
Byte 2: V0 (Cr)     — shared chroma red-difference
Byte 3: Y1          — luma for pixel 1

Color conversion uses BT.601 coefficients via crate::yuv::yuv_to_bgra.

Functions§

decode
Decode a UYVY frame to BGRA8.