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

Overlay moving (live) graphics feed on video

Altera_Forum
Honored Contributor II
1,072 Views

I need to mix a live graphics image (Streaming into the FPGA) that has a special pixel value in places where VIDEO should show through. I know that the Alpha Blending Mixer can do this, if I can sample the graphics stream and create an ALPHA Channel with it. 

 

I need to see how to use the alpha channel (I can't find any examples) and use this data to enable the underlying video to overlay the graphics on a video stream. 

 

Thanks, in advance. 

 

Mike
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
216 Views

try this for liminance. 

 

output = pixel/256 *(256-alpha) + graphics/256 *alpha 

 

As for chrominance - good luck. It might be easier to convert it all into the RGB colour space before mixing if you want to mix in colour.
0 Kudos
Altera_Forum
Honored Contributor II
216 Views

 

--- Quote Start ---  

try this for liminance. 

 

output = pixel/256 *(256-alpha) + graphics/256 *alpha 

 

As for chrominance - good luck. It might be easier to convert it all into the RGB colour space before mixing if you want to mix in colour. 

--- Quote End ---  

 

 

Thanks, but I need ti create the alpha channel and I also need to see an example of how to connect the alpha channel in SOPC.  

 

MIKE
0 Kudos
Altera_Forum
Honored Contributor II
216 Views

have the same problem: 

i need to configure alpha blending on DE2 without using CPU 

 

I've found some information about Alpha Blending Mixer over google with next request: 

alpha blending mixer sopc example 

but in every manual NIOS processor is used 

 

does anyone have sth much useful, like working examples?
0 Kudos
Reply