How I can convert from GRAY8 to YUV420?

asked 2018-01-24 08:13:03 -0600

isra60 gravatar image

I found this code colors

But I don't found this conversion...

edit retag flag offensive close merge delete


just curious, why do you need this ?

you'll probably need 2 steps, gray -> bgr; bgr -> yuv

berak gravatar imageberak ( 2018-01-24 09:49:00 -0600 )edit

This is for a gray 8 camera source and pass to an encoder which needs yuv420 format

isra60 gravatar imageisra60 ( 2018-01-25 00:42:24 -0600 )edit