FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6669 Discussions

Making a solid color image in VIP

Altera_Forum
Honored Contributor II
1,298 Views

What method would you use to output an image of a solid color? 

 

This color wouldn't need to change very much. All my objects are in SOPC builder. Hardwiring or just filling memory locations with values (a Single Shot Frame Buffer of some sort?). Call it a "blue screen" for when signal is lost, if you want. Using a gamma corrector with a maxxed out LUT sure feels like a waste of resources.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
520 Views

What does your signal path look like now (i.e. What VIP components and in what order?)? 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
520 Views

Inputs to an Alpha Blending Mixer module (with 2 alpha-blended layers) 

 

din0: 3 channels 8-bit progressive RGB in parallel (actual video input) 

din1: 3 channels 8-bit progressive RGB in parallel (a solid color) 

alpha0: 1 channel 8-bit single color plane (fixed at 0 (opaque)) 

alpha1: 1 channel 8-bit single color plane (custom signal, derived elsewhere) 

 

I'm not sure how to fix an alpha channel at opaque (alpha0) or fix the 3 channel video (din1) at a specific color. 

 

This would be exceedingly easy if I had access to the code of the Test Pattern Generator Megafunction, as I could just strip it's functionality down. I can see some documentation on how to use the SOPC editor to wrap a circuit, but I have no reference design on what the circuit should look like inside. It would obviously just need to respond with a fixed bit sequence whenever asked via the Avalon-ST Video standard.
0 Kudos
Altera_Forum
Honored Contributor II
520 Views

There is no need to produce a fixed color image for the alpha0 channel, the alpha blending mixer is ignoring the data from this port and the background image is always opaque. To use the alpha blending mixer in SOPC Builder you should probably build an empty SOPC Builder Avalon-ST Source component that drives all its outputs to 0 and connect it to alpha0. 

 

If upgrading is something possible, the Test Pattern Generator has a checkbox to produce a solid color image in 9.0. 

 

V.
0 Kudos
Reply