Link Copied
Hi,
The conversion is very simple. GRAY image you have is luminance (Y) component. To create U/V planes allocate, please,width*height/4 bytes per each plane and fill it with 128 (0x080) byte value. That's all.
These 3 planes compose a gray YUV420 image.
Hi,
The conversion is very simple. GRAY image you have is luminance (Y) component. To create U/V planes allocate, please,width*height/4 bytes per each plane and fill it with 128 (0x080) byte value. That's all.
These 3 planes compose a gray YUV420 image.
For more complete information about compiler optimizations, see our Optimization Notice.