Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21611 Discussions

video image processing: ALPHA BLENDING MIXER init

Altera_Forum
Honored Contributor II
1,272 Views

Hi, 

somebody knows what is exact sequence to do to control alpha blending mixer output? 

I tried with system console in my board : these are TCL commands: 

(mixer's addreass are 0x00 - 0x1ff) 

set mast [lindex [get_service_paths master] 0] 

open_service master $mast 

 

master_write_16 $mast 0x004 0 ;# OFFSET X VIDEO 1 

master_write_16 $mast 0x006 0 ;# OFFSET Y VIDEO 1 

master_write_16 $mast 0x008 0 ;# LAYER VIDEO 1 SWITCH OFF 

master_write_16 $mast 0x00a 0 ;# OFFSET X VIDEO 2 

master_write_16 $mast 0x00c 0 ;# OFFSET Y VIDEO 2 

master_write_16 $mast 0x00e 0 ;# LAYER VIDEO 2 SWITCH OFF 

master_write_16 $mast 0x010 0 ;# OFFSET X VIDEO 3 

master_write_16 $mast 0x012 0 ;# OFFSET Y VIDEO 3 

master_write_16 $mast 0x014 0 ;# LAYER VIDEO 3 SWITCH OFF master_write_16 $mast 0x016 0 ;# OFFSET X VIDEO 4 

master_write_16 $mast 0x018 0 ;# OFFSET Y VIDEO 4 

master_write_16 $mast 0x01A 0 ;# LAYER VIDEO 4 SWITCH OFF 

master_write_16 $mast 0x01C 0 ;#  

master_write_16 $mast 0x01E 0 ;#  

master_write_16 $mast 0x020 0 ;# LAYER VIDEO 5 SWITCH OFF 

master_write_16 $mast 0x022 0 ;#  

master_write_16 $mast 0x024 0 ;#  

master_write_16 $mast 0x026 0 ;# LAYER VIDEO 6 SWITCH OFF 

master_write_16 $mast 0x00E 1 ;# LAYER VIDEO 2 SWITCH ON master_write_16 $mast 0x000 1 ;# GO 

 

This sequence doesn't run. 

Why? 

Somebody can help me? 

G
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
596 Views

Hi, 

 

I think the mixer is using "Native" alignment. Did you already try using offsets with an increment of 4? 

OFFSET X VIDEO 1 = 0x08 

OFFSET Y VIDEO 1 = 0x0C 

LAYER VIDEO 1 ACTIVE = 0x10 

OFFSET X VIDEO 2 = 0x14 

...
0 Kudos
Altera_Forum
Honored Contributor II
596 Views

Yes, 

I tried but without result. 

There is something not clear. 

Did You use VIP in the past? 

Have You some example? 

G
0 Kudos
Altera_Forum
Honored Contributor II
596 Views

Hi, 

 

I do not think you will find an example of using the Video IP with SystemeConsole. 

 

The example design is a relatively simple system with a mixer controlled from a NiosII: 

https://www.altera.com/support/software/download/refdesigns/broadcast/dnl-post-process.jsp

This is the 9.1 example design and I believe the 10.0 will be published soon. 

 

There are many reasons which could cause the mixer not to produce any output (I assume this is the issue there? Did you use SignalTap already?) and it is quite easy to create a deadlock with the core if you are not careful. As far as I can tell your startup sequence seems right so you will have to describe your system in more details to get more help.
0 Kudos
Reply