User guide

Table Of Contents
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.