- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-02-2012 08:08 AM - edited 07-02-2012 08:13 AM
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!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
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).
Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-03-2012 07:44 AM - edited 07-03-2012 07:45 AM
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.p
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
Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-03-2012 07:52 AM
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/appnot
http://cegt201.bradley.edu/projects/proj2009/rtvci
http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arn
http://www.eetkorea.com/ARTICLES/2004JUN/2004JUN22
inst.eecs.berkeley.edu/~cs150/sp07/Lectures/11-Vid
Principal Engineer
Xilinx San Jose
Re: 8-bit ITU-R BT.656 YCrCb 4:2:2 output and HAS, VS., and FIELD .
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-03-2012 12:51 PM
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!
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
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).











