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

Run-time control of Video IP scaler

Altera_Forum
Honored Contributor II
941 Views

I've been adapting the Video IP Reference Design (an427) to teach myself the Altera tools. I've added run-time control to the scaler and rebuilt the SOPC system without trouble, but I'm not sure how to adapt the nios software to match the new system. 

 

I've looked at system.h and found that the scaler base address etc have been added. 

 

I've added the "#include "Scaler.hpp"" line to the "main" program and I've had a guess at what the cpp will look like: 

 

Scaler* the_scaler = new Scaer(MY_ALT_VIP_SCL_BASE); 

the_scaler->start();  

 

But I get the following errors: 

 

../main.cpp:40: error: missing template arguments before '*' token 

../main.cpp:40: error: `the_scaler' was not declared in this scope 

../main.cpp:40: error: `Scaler' is not a type 

 

Can anyone help ? 

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
240 Views

I guess Scaler is a template not just a class. Try  

 

Scaler my_scaler(MY_ALT_VIP_SCL_BASE);
0 Kudos
Reply