2014-10-21 07:57:03 -0600 | asked a question | Convert a ARGB buffer to YUV420P In case I wish to convert an ARGB buffer to YUV 12 bit format, can it be done using OpenCV. I tried writing the following code But the problem was that , what should be the type of Mat for YUV 12 bit? Is the following way the right way of conversion? // For ARGB cv::Mat imageWithData = cv::Mat(sz, CV_32S, (void*)pUncompressed, 1); // For YUV420P |