Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Expert Contributor
sushantm
Posts: 284
Registered: ‎04-02-2011
0

8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .

[ Edited ]

Hi All,

 

I want to convert output of ADV7180 which is 8-bit ITU-R BT.656 YCrCb 4:2:2 into rgb for some processing on TI's Da-Vinci DM8168 device through PCIe interface.

found the Xilinx color space converter ip core.

--> Selected the Standard as ITU 601.

-->Input range selection is 16 to 240 for TV.

-->Precision settings are

--> Input data width is set to 8 bit.

--> output data width is set to 8 bit.

-->coefficient bits to 18 bits.

 

although when I generate the IP core I see video data in is 24 bit and output video is also of 24 bit.

I have a custom FIFO module in which we have 8bit in and 64 bit out interface.

 

My question is how I should convert 8 bit ycrcb4:2:2 o/p of ADV7180 in to 24 bit for the IP core to work and give me 8 bit rgb output so that i can store in FIFO having 8 bit input interface.

 

Can I generate IP core with 8 bit ycrcb input and 8 bit rgb output ?

 

Please suggest with the right path.

Links would be helpful.

 

 

Thanks in advance!

 

--Sushant Mahajan
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Signature:

1.Have you ever tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
2.Read the datasheet and user guide. Have you read the user guide in detail ? Can you find the user guide?
3. Search the forums for similar topics.
4.I have neither found any similar thread in existing forum nor web-search is helpful to me.What should I do ?
Post your issue in detail comprehensive format on the relevant
forum.
5. Do not post the same question on multiple forums,please search and post it on relevant forum.
6. Do not raise a new topic or question on someone else's thread, start a new thread!
7. Students/Newbies: Copying code is not the same as learning to design.
8. "It does not work" is not a question which can be answered. Provide much details (with webaddress, datasheet links,etc..).
and make sure to be specific!
9. You are not charged extra fees for comments in your code,It will help others to understand well.
10.If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).
Expert Contributor
gszakacs
Posts: 5,264
Registered: ‎08-14-2007
0

Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .

[ Edited ]

The 8 bit data you receive has an interleaved pattern like Y Cr Y Cb Y Cr Y Cb . . .

From that pattern, you need to do some filtering to generate a Cr and Cb for

each Y (Y is the luminance or greyscale portion of the image at each pixel site).

 

Wikipedia has a page on chroma subsampling at:

 

http://en.wikipedia.org/wiki/YUV_4:2:2

 

And there is a detailed article on method of subsampling at:

 

http://dougkerr.net/pumpkin/articles/Subsampling.pdf

 

Basically, there is more than one way to subsample the chroma (color) signals

and that affects the optimum way to filter them to create the "cosited" value

for each pixel.  You should also look at the data sheet for your ADV7180 to

see if it describes the type of subsampling it uses.

 

Also note that ITU-R BT.656 contains header information for each line of

the image as well as the frame.  The document is available from the ITU,

but it's not free.

 

-- Gabor

-- Gabor
Xilinx Employee
austin
Posts: 3,678
Registered: ‎02-27-2008
0

Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .

S,

 

Why do you have a custom FIFO module, when the parts have built-in perfectly good working FIFO's?

 

Why not use the built in FIFO's?

 

Next, it is easier to convert the 24 bit format to another format, as the IP core is designed to meet a standard, and it is unlikely there are any options at all for widths (if you haven't found them, they are not there).  Seems you need to convert from one standard to another, or perhaps go find the converter for the standard you need?

 

http://www-mtl.mit.edu/Courses/6.111/labkit/appnotes/xapp286_04.pdf

 

http://cegt201.bradley.edu/projects/proj2009/rtvcips/index_files/Funcional_Description.pdf

 

http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5460530

 

http://www.eetkorea.com/ARTICLES/2004JUN/2004JUN22_PLD_RFD_AN04.PDF?SOURCES=DOWNLOAD

 

inst.eecs.berkeley.edu/~cs150/sp07/Lectures/11-VideoConference.ppt

 

 

 

Austin Lesea
Principal Engineer
Xilinx San Jose
Expert Contributor
sushantm
Posts: 284
Registered: ‎04-02-2011
0

Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .

Gabor & Austin thanks a ton!

 


 

austin wrote : Why do you have a custom FIFO module, when the parts have built-in perfectly good working FIFO's?

 

                           Why not use the built in FIFO's?


erringly wrote.my apologizes!

 

We are using built-in fifos only inside virtex-6.

 

Both of you thanks again for the links!

 

I'll get back to you!

 

--Sushant Mahajan
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Signature:

1.Have you ever tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
2.Read the datasheet and user guide. Have you read the user guide in detail ? Can you find the user guide?
3. Search the forums for similar topics.
4.I have neither found any similar thread in existing forum nor web-search is helpful to me.What should I do ?
Post your issue in detail comprehensive format on the relevant
forum.
5. Do not post the same question on multiple forums,please search and post it on relevant forum.
6. Do not raise a new topic or question on someone else's thread, start a new thread!
7. Students/Newbies: Copying code is not the same as learning to design.
8. "It does not work" is not a question which can be answered. Provide much details (with webaddress, datasheet links,etc..).
and make sure to be specific!
9. You are not charged extra fees for comments in your code,It will help others to understand well.
10.If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).