
Hardware Implementation
UG0651 User Guide Revision 4.0
3
3
Hardware Implementation
The scaler module contains two internal buffers that can store one line of the image for processing—
Image_Buffer0_i and Image_Buffer1_i. Each line of input data is written to Image_Buffer0_i and
Image_Buffer1_i, alternately. The line_ready signal indicates that the scaler can start processing the next
line. It must be set to high after the input line write to the buffer is completed.
With the exception of the first line, after one line of data is input to the scaler, the next line must be input
only after the Line_Done_o signal goes high. For a new frame, the first two lines of the frame need to be
input before the scaler starts processing the data.
The data stored in the image buffer is scaled to calculate the output data based on the nearest neighbor
algorithm.
When downscaling the height of the image, the next input line to the scaler must begin with the pixel
number mentioned in NxtLine_PixelNum_Offset_o. When upscaling, the value of
NxtLine_PixelNum_Offset_o is the first pixel of the next line in sequence.
The following equations are used to calculate scaling factors for horizontal and vertical resolutions:
X
scale factor
x
inp
x
out
---------
2
g scaling bitwidth
=
Y
scale factor
y
inp
y
out
---------
2
g scaling bitwidth
=
Summary of Contents for UG0651
Page 1: ...UG0651 User Guide Scaler ...