User guide
Table Of Contents
- Contents
- 1. About This MegaCore Function Suite
- Release Information
- Device Family Support
- Features
- Design Example
- Performance and Resource Utilization
- 2D FIR Filter
- 2D Median Filter
- Alpha Blending Mixer
- Avalon-ST Video Monitor
- Chroma Resampler
- Clipper
- Clocked Video Input
- Clocked Video Output
- Color Plane Sequencer
- Color Space Converter
- Control Synchronizer
- Deinterlacer
- Deinterlacer II
- Frame Buffer
- Gamma Corrector
- Interlacer
- Scaler
- Scaler II
- Switch
- Test Pattern Generator
- Trace System
- 2. Getting Started with Altera IP Cores
- 3. Interfaces
- Interface Types
- Avalon-ST Video Protocol
- Avalon-MM Slave Interfaces
- Avalon-MM Master Interfaces
- Buffering of Non-Image Data Packets in Memory
- 4. 2D FIR Filter MegaCore Function
- 5. 2D Median Filter MegaCore Function
- 6. Alpha Blending MegaCore Function
- 7. Avalon-ST Video Monitor MegaCore Function
- 8. Chroma Resampler MegaCore Function
- 9. Clipper MegaCore Function
- 10. Clocked Video Input MegaCore Function
- 11. Clocked Video Output MegaCore Function
- 12. Color Plane Sequencer MegaCore Function
- 13. Color Space Converter MegaCore Function
- 14. Control Synchronizer MegaCore Function
- 15. Deinterlacer MegaCore Function
- Core Overview
- Functional Description
- Parameter Settings
- Signals
- Control Register Maps
- 16. Deinterlacer II MegaCore Function
- 17. Frame Reader MegaCore Function
- 18. Frame Buffer MegaCore Function
- 19. Gamma Corrector MegaCore Function
- 20. Interlacer MegaCore Function
- 21. Scaler MegaCore Function
- 22. Scaler II MegaCore Function
- 23. Switch MegaCore Function
- 24. Test Pattern Generator MegaCore Function
- 25. Trace System MegaCore Function
- A. Avalon-ST Video Verification IP Suite
- B. Choosing the Correct Deinterlacer
- Additional Information

19–4 Chapter 19: Gamma Corrector MegaCore Function
Control Register Maps
Video and Image Processing Suite January 2013 Altera Corporation
User Guide
Control Register Maps
The Gamma Corrector can have up to three Avalon-MM slave interfaces. There is a
separate slave interface for each channel in parallel. Table 19–5 to Table 19–7 describe
the control register maps for these interfaces.
The control registers are read continuously during the operation of the MegaCore
function, so making a change to part of the Gamma look-up table during the
processing of a frame always has immediate effect. To synchronize changes to frame
boundaries, follow the procedure which is described in “Avalon-MM Slave
Interfaces” on page 3–17.
The width of each register in the Gamma Corrector control register map is always
equal to the value of the Bits per pixel per color plane parameter selected in the
parameter editor.
Table 19–5. Gamma Corrector Control Register Map: Interface 0
Address Register Name Description
0
Control
Bit 0 of this register is the
Go
bit, all other bits are unused. Setting this bit to 0
causes the Gamma Corrector MegaCore function to stop the next time control
information is read. Refer to “Avalon-MM Slave Interfaces” on page 3–17 for full
details.
1
Status
Bit 0 of this register is the
Status
bit, all other bits are unused. Refer to “Avalon-
MM Slave Interfaces” on page 3–17 for full details.
2 to 2
N
+1 where N
is the number of
bits per color plane.
Gamma Look-
Up Table
These registers contain a look-up table that is used to apply gamma correction to
video data. An input intensity value of x is gamma corrected by replacing it with the
contents of the (x+1)th entry in the look-up table. Changing the values of these
registers has an immediate effect on the behavior of the MegaCore function. To
ensure that gamma look-up values do not change during processing of a video
frame, use the
Go
bit to stop the MegaCore function while the table is changed.
Table 19–6. Gamma Corrector Control Register Map: Interface 1
Address Register Name Description
0
Unused
This register is not used
1
Unused
This register is not used
2 to 2
N
+1 where N
is the number of
bits per color plane.
Gamma Look-
Up Table
These registers contain a look-up table that is used to apply gamma correction to
video data. An input intensity value of x is gamma corrected by replacing it with the
contents of the (x+1)th entry in the look-up table. Changing the values of these
registers has an immediate effect on the behavior of the MegaCore function. To
ensure that gamma look-up values do not change during processing of a video
frame, use the
Go
bit in Interface 0 to stop the MegaCore function while the table is
changed.