Mat using YUV 422 Video
Hello,
I'd like to write a single videoline, which is stored on DDR-RAM, in a Mat Object.
I have initialized an int-Array and convert it to a Mat Object:
int *Video_Line = (int *) calloc(1920, sizeof(int));
Mat videoline = Mat(1, 1920, CV_8UC3, Video_Line);
Now the write function:
for(int i=0; i <= 1920; i++)
{
unsigned long val = getData((DPRAM_START+i));
Video_Line[i] = val;
}
The output is:
Mat = {99, bc, 12, bc, 99, bc, ...}
That correspond to:
Mat = [Y0, Cr0, Y1, Cb1, Y2, Cr2, ...]
How can I explain MAT, that the data are in YUV 422?
That is important to calculate a histogram.
Best regards,
Michael