- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would like to display b/w video to VGA screen using the vip 9.1. Is it possible in the vip to transfer Y to RGB? The color space conversion need 3 color components inputs. Any idea? Thank you! ReuvenLink Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Of course you can't create color where there is none.
But if you're just trying to get the luma into the RGB space what you'll want to do is fake the Cr and Cb color planes. Set them both to appropriate 0 levels. For 10-bit data I believe the value is 0x200. Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think you need to go through a conversion: just set R = G = B = Y
You can check this link: http://www.dvd-replica.com/dvd/colorrgb2.php to verify this. You must enter 128 (=0x80 corresponding to Jakes 0x200 for 10 bit systems) for the Cr and Cb values, you will see that the Y value entered shows up in R,G and B Josy- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for both answers.
My question is not the mathematical way but how to do it in the VIP (Video suite IP by Altera)? Reuven- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe you can use the color plane sequencer to duplicate color planes:
Y -> Y:Y:Y- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
I thought about it but i do not like it so much, so many steps: 1. Y -> 2 Y streams. 2. Y -> 2 Y stream (now I have 3 Y streams). 3. Y -> (Y, Y) stream. 4. Y & (Y, Y) -> (Y,Y,Y) stream. I think it will be better to develop by myself a Y -> (Y,Y,Y) code. Reuven- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
vgs's suggestion isn't so many steps...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Truly it seems the easiest place to do this is at the INPUT of the CVI on the "vid_data" port. Just fake the Cr and CB values going into the core.
Jake
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page