View Single Post
Old 28th June 2014, 16:48   #6  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Quote:
Originally Posted by Bloax View Post
It's 8bit_value * 256, because 255 and 65535 being the max values is simply an artifact of the values being 0 to (2^bits)-1, instead of 1 to 2^bits.
Yes, you're right.
In math
0 = 0
1 = 256
.
.
.
255 = 65280
256 = 65536
This means 65535 (16bit) > 255 (8bit)

But for avisynth, 255 (8bit) is pure white and 65535 (16bit) is pure white. Therefore in avisynth, 255 (8bit) = 65535 (16bit).
So 16bit_value = 8bit_value * 257.

Last edited by bxyhxyh; 28th June 2014 at 17:06.
bxyhxyh is offline   Reply With Quote