Thread: Avisynth+
View Single Post
Old 11th October 2017, 18:48   #3668  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Quote:
Is it bit-shifting or that (something like x*65535/255) arithmetic formula?
You can bitshift, and then OR in the original bits as well. It would be equivalent to the arithmetic formula (since 65535/255 = 257).

Code:
(x << 8) | x
Where does the convention that only a bitshift is used for YUV come from?
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline