Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

YCbCr video at vga

Altera_Forum
Honored Contributor II
2,385 Views

Hi 

 

I have cyclone II and quartus II v6.0. 

I am working on video and image processing. 

I have interlaced video ycbcr 8bit data in FPGA. I want to display it at the vga port. Is it possible? 

 

Or  

I have to 1st convert into progressive (by deinterlacer megacore function) video then display it at vga? 

 

Thank You
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
895 Views

If you want colour at the VGA port first you need a colour space converter. First off, you have to convert the 422 YCbCr data to a 444 data rate (its quite straight forward 0 just hold the Cb and Cr values for 2 clocks). Then you need a 1x3 x 3x4 matrix multiply to convert the colour space to RGB. If you just want black and white, you need to extract Y from the input. 

 

Then, like you fear, you will need to make the video progressive, and possibly upscale/downscale it depending on the output video resolution, as SD video has 768 pixels per line. You will need a field buffer to do this, but a the deinterlacer megafunction may do it (I dont know because I have never used it).
0 Kudos
Altera_Forum
Honored Contributor II
895 Views

 

--- Quote Start ---  

If you want colour at the VGA port first you need a colour space converter. First off, you have to convert the 422 YCbCr data to a 444 data rate (its quite straight forward 0 just hold the Cb and Cr values for 2 clocks). Then you need a 1x3 x 3x4 matrix multiply to convert the colour space to RGB. If you just want black and white, you need to extract Y from the input. 

 

Then, like you fear, you will need to make the video progressive, and possibly upscale/downscale it depending on the output video resolution, as SD video has 768 pixels per line. You will need a field buffer to do this, but a the deinterlacer megafunction may do it (I dont know because I have never used it). 

--- Quote End ---  

 

 

Dear Tricky! 

 

I want just clear video at the output, it may be black and white. 

According to your statement, I come to know that I can get black and white image at the output from YCbCr, by replacing Cb and Cr with zeros. 

And as YCbCr is interlaced (60Hz and 30fps) so it may directly connect to vga (without any buffer in between) to get black and white video.
0 Kudos
Altera_Forum
Honored Contributor II
895 Views

no, you will still need the buffering regardless of whether it is colour or black and white.

0 Kudos
Altera_Forum
Honored Contributor II
895 Views

okay. 

I got that point. 

 

 

Thank You
0 Kudos
Reply