Skip to content

Instantly share code, notes, and snippets.

@yohhoy
yohhoy / yuvrgb.md
Last active June 11, 2024 03:44
RGB <=> YCbCr(YPbPr) color space conversion
Y  = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 BT.709 BT.2020
a 0.299 0.2126 0.2627
b 0.587 0.7152 0.6780