-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling 10bit/12bit/14bit Colors #9
Comments
The groundwork is already present, as ColorTypes strongly shies away from having a split between "integer" color values (0-255) and "floating-point" color values (0-1); instead, use FixedPointNumbers to represent "integers" as the equivalent fractional value. |
Oh, and you definitely don't need that |
Oh I haven't seen I don't think Colors etc. needs to support packed formats yet, there are simply to many. Writing an unpacker is fairly straight forward :) |
I am currently working with a raw
YCbCr
10bit Video format and I would like to use the Colors framework for that.So the simplest solution is to use 16bit for each channel and just assume that no operations is going to set more than 10bits. Alternatively 10 bit
YCbCr
can be represented with 32 bit but that doesn't fit that well in the current design of Colors and ColorTypes.I started experimenting on how an instance of a 10bit format would look like: https://gist.github.com/vchuravy/daf8ff63fb5bd5ac6dea, but I think it would be nice if Colors could handle 10/12/14 bits for Colors
The text was updated successfully, but these errors were encountered: