View Single Post
Old 25th February 2017, 15:01   #102  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Quote:
Originally Posted by KingLir View Post
feisty2 - you are officially naged
I don't think that would be a good idea simply because integer formats are evil..

with floating point formats (half, single or double if supported someday), black is always [0.0, 0.0, 0.0]
with integer formats, black could either be
full range YUV: [0, 1 << (bits - 1), 1 << (bits - 1)]
or
tv range YUV: [16 << (bits - 8), 1 << (bits - 1), 1 << (bits - 1)]
or
RGB: [0, 0, 0]
which is already super confusing to newbies and the base color might not be black... and that's gonna get even more complicated...

I'd say just convert whatever you have to floating point format and save all that crap, floating point formats are much more beautiful than integer stuff from the mathematical point of view.
feisty2 is offline   Reply With Quote