Video and Image Processing Suite User Guide

ID 683416
Date 4/04/2022
Public
Document Table of Contents

20.5. Scaler II Parameter Settings

Table 63.  Scaler II Parameter Settings
Parameter Value Description
Number of pixels in parallel 1, 2, 4, 8 Select the number of pixels transmitted per clock cycle.
Bits per symbol 4–20, Default = 10 Select the number of bits per color plane.
Symbols in parallel 1–4, Default = 2 Select the number of color planes sent in parallel.
Symbols in sequence 1–4, Default = 1 Select the number of color planes that are sent in sequence.
Enable runtime control of output frame size and edge/blur thresholds On or Off Turn on to enable run-time control of the output resolution through the Avalon-MM interface. If you turn off this option, the output resolution is fixed at the values you specify for the Maximum output frame width and Maximum output frame height parameters.
Note: When you turn on this parameter, the Go bit gets deasserted by default. When you turn off this parameter, the Go is asserted by default.
Maximum input frame width 32–8192, Default = 1920 Select the maximum width for the input frames (in pixels).
Maximum input frame height 32–8192, Default = 1080 Select the maximum height for the input frames (in pixels).
Maximum output frame width 32–8192, Default = 1920 Select the maximum width for the output frames (in pixels).
Maximum output frame height 32–8192, Default = 1080 Select the maximum height for the output frames (in pixels).
4:2:2 video data On or Off
  • Turn on to use the 4:2:2 data format.
    Note: The IP core does not support odd heights or widths in 4:2:2 mode.
  • Turn off to use the 4:4:4 video format.
No blanking in video On or Off Turn on if the input video does not contain vertical blanking at its point of conversion to the Avalon-ST video protocol.
Scaling algorithm
  • Nearest Neighbor
  • Bilinear
  • Bicubic
  • Polyphase
  • Edge Adaptive
Select the scaling algorithm.
Share horizontal and vertical coefficients On or Off Turn on to force the bicubic and polyphase algorithms to share the same horizontal and vertical scaling coefficient data.
Vertical filter taps 4–64, Default = 8 Select the number of vertical filter taps for the bicubic and polyphase algorithms.
Vertical filter phases 1–256, Default = 16 Select the number of vertical filter phases for the bicubic and polyphase algorithms.
Horizontal filter taps 4–64, Default = 8 Select the number of horizontal filter taps for the bicubic and polyphase algorithms.
Horizontal filter phases 1–256, Default = 16 Select the number of horizontal filter phases for the bicubic and polyphase algorithms.
Default edge threshold 0 to 2bits per symbol–1, Default = 7 Specify the default value for the edge-adaptive scaling mode. This value will be the fixed edge threshold value if you do not turn on Enable run-time control of input/output frame size and edge/blur thresholds.
Vertical coefficients signed On or Off Turn on to force the algorithm to use signed vertical coefficient data.
Vertical coefficient integer bits 0–32, Default = 1 Select the number of integer bits for each vertical coefficient.
Vertical coefficient fraction bits 1–32, Default = 7 Select the number of fraction bits for each vertical coefficient.
Horizontal coefficients signed On or Off Turn on to force the algorithm to use signed horizontal coefficient data.
Horizontal coefficient integer bits 0–32, Default = 1 Select the number of integer bits for each horizontal coefficient.
Horizontal coefficient fraction bits 1–32, Default = 7 Select the number of fraction bits for each horizontal coefficient.
Fractional bits preserved 0–32, Default = 0 Select the number of fractional bits you want to preserve between the horizontal and vertical filtering.
Load scaler coefficients at runtime On or Off Turn on to update the scaler coefficient data at run time.
Vertical coefficient banks 1–32, Default = 1 Select the number of banks of vertical filter coefficients for polyphase algorithms.
Vertical coefficient function
  • Lanczos_2
  • Lanczos_3
  • Custom
Select the function used to generate the vertical scaling coefficients. Select either one for the pre-defined Lanczos functions or choose Custom to use the coefficients saved in a custom coefficients file.
Vertical coefficients file User-specified When a custom function is selected, you can browse for a comma-separated value file containing custom coefficients. Key in the path for the file that contains these custom coefficients.
Horizontal coefficient banks 1–32, Default = 1 Select the number of banks of horizontal filter coefficients for polyphase algorithms.
Horizontal coefficient function
  • Lanczos_2
  • Lanczos_3
  • Custom
Select the function used to generate the horizontal scaling coefficients. Select either one for the pre-defined Lanczos functions or choose Custom to use the coefficients saved in a custom coefficients file.
Horizontal coefficients file User-specified When a custom function is selected, you can browse for a comma-separated value file containing custom coefficients. Key in the path for the file that contains these custom coefficients.
Add extra pipelining registers On or Off

Turn on to add extra pipeline stage registers to the data path.

You must to turn on this option to achieve:

  • Frequency of 150 MHz for Cyclone IV devices
  • Frequencies above 250 MHz for Arria II, Stratix IV, or Stratix V devices
Reduced control slave register readback On or Off

If you do not turn on this parameter, the values of all the registers in the control slave interface can be read back after they are written.

If you turn on this parameter, the values written to registers 3 and upwards cannot be read back through the control slave interface. This option reduces ALM usage.

How user packets are handled
  • No user packets allowed
  • Discard all user packets received
  • Pass all user packets through to the output

If you design does not require the Scaler II IP core to propagate user packets, then you may select to discard all user packets to reduce ALM usage.

If your design guarantees there will never be any user packets in the input data stream, then you further reduce ALM usage by selecting No user packets allowed. In this case, the Scaler II IP core may lock if it encounters a user packet.