|
Hi folks, This may be a obvious to some but I reckon I am missing something. I am using the JPEGLIB as part of the SAM3S-EK. I am receiving an output stream from my camera in YCbCr 422 format (2 Y, 1 U, 1V), The stream comes out of the camera as follows:
Y1UY2V... ad infinitum, and is put into 1D array
The values are such that Y has the range 0-255, and the chromiance components are +-127.
So I set up the JPEGlib as supplied in the EK, pointing to the frame array as the source. as it seems the init_array_imcu_row function is used to convert YUV422 to YUV420.
The first problem I had is that the order didnt seem to be correct as the colours were out so I changed it so the stream was UYVY... and it seemed a but better but still not 'good'colour', my face came out grayscale.!!
Can anyone tell me if I am getting the format of my source wrong? and thus what should it be? Or am I making a mistake somewhere else?
Also what is the BPP for a YUV pixel, i would say 24, as there 3 parts to each pixel (YUV) but 32Bits are used to represent 2 pixels so is it really 16BPP???
Any help would be greatly appreciated as I am so close to getting some good images, at a reasonable speed for QVGA.
Thanks in advance deBoogle
|