Skip to content

Instantly share code, notes, and snippets.

@yohhoy
Last active June 11, 2024 03:44
Show Gist options
  • Save yohhoy/dafa5a47dade85d8b40625261af3776a to your computer and use it in GitHub Desktop.
Save yohhoy/dafa5a47dade85d8b40625261af3776a to your computer and use it in GitHub Desktop.
RGB <=> YCbCr(YPbPr) color space conversion
@yohhoy
Copy link
Author

yohhoy commented Jan 17, 2024

Chrominance(Chroma) Cb/Cr are defined in the range [-0.5, 0.5].

@molesmoke
Copy link

Oh yup, my bad, I was thinking about it for use in a shader.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment