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).
Where does the convention that only a bitshift is used for YUV come from?