Skip to content

Instantly share code, notes, and snippets.

View ibaoger's full-sized avatar

阿宝 ibaoger

View GitHub Profile
@ibaoger
ibaoger / yuvrgb.md
Created November 15, 2021 06:50 — forked from yohhoy/yuvrgb.md
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