Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: JPEGLIB in SAM3s-EK help
PostPosted: Sat Jul 09, 2011 6:42 pm 
Offline

Joined: Sat Jul 09, 2011 6:09 pm
Posts: 3
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: