I have a data stream coming from a Camera(PAL) The data type I got from callback function is in a format like U0-Y0-V0-Y1 U2-Y2-V2-Y3 U4-Y4-V4-Y5 ......
I need to change the color format to RGB (or BGR) by using OpenCV's cvCvtColor() function. Usage of the function is cvCvtColor(YCrCb, dst, CV_YCrCb2BGR); Now here(actually before) comes the problem, dst is a 3 channel 8U image, thats OK, but how can I store the data coming from callback function in an IplImage directly ? If I can store it correctly, I can use cvCvtColor() to convert the image. Any function, any other libraries? If I use RGB<->YUV mathematical conversion in every frame, that results in 70%++ CPU usage so I don't want to use them, I'm looking for a more easier way for CPU.