Unsolved QImage to yCrCb image
-
I need a way to fill a yCrCb image with a QImage object. How can I do this? How have I to fill the code below?
/* Y */ for (int y = 0; y < height; y+= 2) { for (int x = 0; x < width; x+= 2) { pict->data[0][y * pict->linesize[0] + x] = ???; } } /* Cb and Cr */ for (int y = 0; y < height / 2; y++) { for (int x = 0; x < width / 2; x++) { pict->data[1][y * pict->linesize[1] + x] = ???; pict->data[2][y * pict->linesize[2] + x] = ???; } }
-
Hi,
What algorithm are you currently using for the color space conversion ?
-
None.
I'm stop atQImage QITemp= Image.convertToFormat(QImage::Format_RGB888);
An now?
-
You have the math here.