anderslanglands / colorspace-rs

A color library for Rust
Apache License 2.0
34 stars 5 forks source link

Add support for yuv colorspace #8

Open jaysonsantos opened 1 year ago

jaysonsantos commented 1 year ago

Hi there, do you have plans on adding yuv support? If not, any general guidelines on how to implement it on the library?

anderslanglands commented 1 year ago

Hi, it's not a space I've ever used and I have very little time to work on this these days.

As for how to implement it, I'd look at https://github.com/anderslanglands/colorspace-rs/blob/master/src/lab.rs for an example of a non-RGB type definition. Then instead of lab_to_xyz and its inverse, you'd want yuv_to_rgb.