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

Chapter 24: Test Pattern Generator MegaCore Function 24–3
Functional Description
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
do once for progressive output or twice for interlaced output
{
send_control_packet();
send_image_data_header();
output_test_pattern ();
}
}
Avalon-ST Video Protocol Parameters
The Test Pattern Generator MegaCore function supports a wide range of resolutions
and color spaces with either a sequential or parallel data interface.
In all combinations of color space and subsampling that are allowed, the stream of
pixel data is of a type consistent with the conventions adopted by the other MegaCore
functions in the Video and Image Processing Suite.
The Test Pattern Generator MegaCore function can output streams of pixel data of the
types listed in Table 24–2.
1 The Test Pattern Generator cannot produce interlaced streams of pixel data with an
odd frame height. To create interlaced video streams where F0 fields are one line
higher than F1 fields, Altera recommends feeding Test Pattern Generator progressive
video output into the Interlacer MegaCore function.
Table 24–2. Test Pattern Generator Avalon-ST Video Protocol Parameters (Part 1 of 2)
Parameter Value
Frame Width
Width selected in the parameter editor. Can be run-time controlled in which case, the value
specified in the GUI is the maximum allowed value.
Frame Height
Height selected in the parameter editor. Can be run-time controlled in which case, the value
specified in the GUI is the maximum allowed value.
Interlaced /
Progressive
Mode selected in the parameter editor.
Bits per Color Sample Number of bits per color sample selected in the parameter editor.
Color Space As selected in the parameter editor. RGB (4:4:4 subsampling only) or YCbCr.