UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant pnk004
Participant
454 Views
Registered: ‎12-23-2018

What is YUV 4:2:2 16 bits Video bit field format ?

Jump to solution

According to the Table 4-9 in UG1037, There is two byte YUV 4:2:2 format (VF Code = 0).

The first byte contains V/U (Cr/Cb), and the second byte contains Y.

What is YUV 4:2:2 16 bits Video bit field format (first byte)?

Does it consists of 4 bit V and 4 bit U? or interleaved bits?


Question #2.

I want to draw a picture using a tool, and I want to convert the picture into above YUV 4:2:2 16 bits Video Format.

Would you recommend the drawing tool and the conversion steps?

The result is an byte array in C code as follows.

unsigned char  Image[2621440] = { 0x80,0x00, ... }


I will really appreciate if I can be given the answers.

Thank you very much.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Scholar watari
Scholar
437 Views
Registered: ‎06-16-2013

Re: What is YUV 4:2:2 16 bits Video bit field format ?

Jump to solution

Hi @pnk004 

 

Q1)

It's an interleaved.

Would you refer ITU-R BT656 or BT1120 (digital video standard) ?

 

Q2)

I recommend to refer the above standard, too.

 

[note]

1)

YUV 422 (ITU BT.656 and BT.1120) has an offset value on V/U as 0x80 (if color depth is 8bit and using video streaming mode).

 

2)

Here is an example for C code.

 

// Y0, Cr0, Y1, Cb0, ....

(unsigned char) Image[xxx] = { 0x10, 0x80, 0x10, 0x80, ....}

 

Best regards,

 

2 Replies
Highlighted
Scholar watari
Scholar
438 Views
Registered: ‎06-16-2013

Re: What is YUV 4:2:2 16 bits Video bit field format ?

Jump to solution

Hi @pnk004 

 

Q1)

It's an interleaved.

Would you refer ITU-R BT656 or BT1120 (digital video standard) ?

 

Q2)

I recommend to refer the above standard, too.

 

[note]

1)

YUV 422 (ITU BT.656 and BT.1120) has an offset value on V/U as 0x80 (if color depth is 8bit and using video streaming mode).

 

2)

Here is an example for C code.

 

// Y0, Cr0, Y1, Cb0, ....

(unsigned char) Image[xxx] = { 0x10, 0x80, 0x10, 0x80, ....}

 

Best regards,

 

Participant pnk004
Participant
424 Views
Registered: ‎12-23-2018

Re: What is YUV 4:2:2 16 bits Video bit field format ?

Jump to solution

Dear Watari.

Thank you very much for your kind answer.

 

0 Kudos