You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a nutshell, we convert image like this(ignore rgba order in the picture, because of different format with rgba,bgra...):
We don't care about alpha channel, alpha will be dropped after converting.
As the picture showing, 4 RGB pixels = 12 Bytes(4 x 3(R+G+B)) ===Convert===> 6 Bytes(4Y + U + V), so, the following code use 1.5 as multiplication factor