RAW8 in YUV422 Format : How to parse on PC ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
channabasappa
Level 1
Level 1
10 sign-ins 5 sign-ins First reply posted

Hello ,

AR1335 Image sensor  RAW8 data we are sending in CY_U3P_CSI_DF_YUV422_8_2 (16 bit) format from CX3 to the PC over standard UVC protocol . Green image is streaming on PC . Now we are trying to build a new filter to get the actual image on the PC.

   As per the explanation in example project and community discussion we came to know that  :
        * Data going out from CX3(over USB) in  Data Order: {Y1,U1},{Y2,V1},{Y3,U3},{Y4,V3}.... 
        * Raw8 to YUV422 is just format conversion not data conversion .

  Whether first we need to parse back RAW8 from  YUV422 format and convert to actual RAW8 to YUV2 format ? 
       * if yes  kindly give some brief explanation on how exactly RAW8 pixels are formatted into Y1 ,U1 and V1.....etc  in CX3 ? 
       * or else if is there any way to convert directly from  CY_U3P_CSI_DF_YUV422_8_2 to real YUV2 format ?

It will very helpful if you share any technical document or forum discussion or reference details/formulas/code regarding  this to understand more.

With Regards
channabasappa

0 Likes
1 Solution
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi channabasappa,

As you mentioned the way host interprets the data sent by CX3 is {Y1,U1},{Y2,V1},{Y3,U3},{Y4,V3}.... 

But each byte in this will be RAW8 data sent by your sensor...that is...pixel1_raw8_byte, pixel2_raw8_byte,...

Regards,

Hemanth

View solution in original post

0 Likes
1 Reply
Hemanth
Moderator
Moderator
Moderator
First like given First question asked 750 replies posted

Hi channabasappa,

As you mentioned the way host interprets the data sent by CX3 is {Y1,U1},{Y2,V1},{Y3,U3},{Y4,V3}.... 

But each byte in this will be RAW8 data sent by your sensor...that is...pixel1_raw8_byte, pixel2_raw8_byte,...

Regards,

Hemanth
0 Likes