View Single Post
Old 26th March 2021, 03:26   #7  |  Link
wswartzendruber
hlg-tools Maintainer
 
wswartzendruber's Avatar
 
Join Date: Feb 2008
Posts: 413
I ended up assuming that the HOWTO on Wikipedia was irrational. I wrote my own method for RGB->YCbCr using strictly linear light. From that, I then refined an inverse of YCbCr->RGB.

https://github.com/wswartzendruber/p...mod/src/rgb.rs

Note that my bt1886_oetf function there should really be bt1886_ieotf.
wswartzendruber is offline   Reply With Quote