
ZORAN Corporation
USBvision II Data Decoder
ZR36505 Data Sheet
November-99
Page 33 of 33
The
n
parameter ranges from 0 to
d
-1. The value
n
=
d
-1 indicates to the ZR36504 to
transfer to host computer full frame-rate that is delivered from the video source. Any value
n
that is less than
d
-1 results in a frame-dropping from time to time, so that the effective frame
rate is only (
n
+1)/
d
of full frame-rate.
Video Scaling
The ZR36504 has two independent down scalers: one for frame width and one for frame
height. It is the responsibility of the software application to select such scale factors that
result in a reasonable aspect ratio.
In order to set the scaling factor, the host computer should just specify the desired size of
the output frame (assuming XSIZE_IN & YSIZE_IN are initially set). Scaling is done
automatically by the ZR36504, regarding the output frame size versus the input frame size.
The following table specifies the parameters that are used to set the output frame size:
Parameter
Register
address
XSIZE_O[9..0]
Regs.38-39
LXSIZE_O
MXSIZE_O
YSIZE_O[9..0]
Regs.40-41
LYSIZE_O
MYSIZE_O
Note that if host computer specifies the same values for input frame size and output frame
size, then no scaling occurs (scaling factor is 1:1).
The ZR36504 performs no Up-Scaling
(1)
. This means that XSIZE_O should never be
greater than XSIZE_IN, and YSIZE_O should never be greater than YSIZE_IN.
(1) To produce CIF size from 240-line video fields, a special interpolation process is applied by software driver.
Video Filters
The ZR36504 uses internal programmable anti aliasing filters for the scaling process. There
are two filters that are used: One for the horizontal scaling, and the other for the vertical
scaling. The filters are programmed independently of each other, and independently of the
scaling factors.
Both horizontal and vertical filters use a combination of FIR structure and interpolation to
eliminate the pixel jitter in the output frame. The interpolation process effectively improves
x4 the resolution of the input frame both horizontally and vertically.
Usage
Number of pixels in line of scaled output video frame
Number of lines in scaled output video frame/field