This NB2-based example design demonstrates the kind of performance that can be achieved by using Altium's C-to-Hardware technology. This example requires Altium's Audio / Video peripheral board PB01 to be attached to the NB2 motherboard. Connect a video source to the
COMPOSITE VIDEO – Input A connector on the PB01, and a VGA monitor to the PB01's VGA connector.
Video data is processed in real time at VGA 800x600 resolution and displayed on the VGA monitor as well as a histogram. The high speed video processing is implemented in C language using C Code Symbols. Parameters for video processing can be set via the run-time panel for the design's configurable Digital IO module. The following transformations are made on the video data:
- Calculate and superimpose a histogram on the video output
- Basic color filtering
- Contrast adjustment
Use the generic user switches below the NB2's TFT panel to:
- Start video capture (SW1)
- Stop video capture (SW2)
- Switch to grayscale (SW3)
- Switch to color (SW4)
To implement these features the video data in RGB format is converted to HSI (hue, saturation and intensity) format. Brightness scaling can be applied in the RGB and HSI domains, this enabes you to see the (negative) effects of the HSI color model on image adjustment.
The design includes C Code Symbols, as well as BT656 Controller, I2C Master Wishbone, Wishbone Display Driver, Shared Memory Controller, SRAM Controller, Configurable Memory, Configurable Digital IO, Configurable Barrier, Wishbone Multi-Master, Configurable Register, BRAM Controller, Configurable Multiplexer, Configurable Generic Gate, Configurable Demultiplexer, Wishbone Dual Master components.
Altium Designer projects included in this download: