
www.techwellinc.com
Preliminary
TW2804/TW2802 Multiple Video Decoder
Techwell, Inc.
Datasheet Rev. 2.4
09/09/2003
18
Video Cropping
The cropping function allows only subsection of a video image to be output. The active video
region is determined by HDELAY, HACTIVE, VDELAY and VACTIVE register as illustrated in
Fig 10. The first active line is defined by the VDELAY register and the first active pixel is defined
by the HDELAY register. The VACTIVE register can be programmed to define the number of
active lines in a video field, and the HACTIVE register can be programmed to define the number
of active pixels in a video line.
The horizontal delay register HDELAY determines the number of pixel delays between the
horizontal reference and the leading edge of the active region. The horizontal active register
HACTIVE determines the number of active pixels to be processed. Note that these values are
referenced to the pixel number before scaling. Therefore, even if the scaling ratio is changed,
the active video region used for scaling remains unchanged as set by the HDEALY and
HACTIVE register. In order for the cropping to work properly, the following equation should be
satisfied.
HDELAY + HACTIVE < Total number of pixels per line
Where the total number of pixels per line is 858 for 60Hz and 864 for 50Hz
To process full size region, the HDELAY should be set to 32 and HACTIVE set to 720 for both
60Hz and 50Hz system.
The vertical delay register (VDELAY) determines the number of line delays from the vertical
reference to the start of the active video lines. The vertical active register (VACTIVE)
determines the number of lines to be processed. These values are referenced to the incoming
scan lines before the vertical scaling. In order for the vertical cropping to work properly, the
following equation should be satisfied.
VDELAY + VACTIVE < Total number of lines per field
Where the total number of lines per field is 262 for 60Hz and 312 for 50Hz
To process full size region, the VDELAY should be set to 7 and VACTIVE set to 240 for 60Hz
and the VDELAY should be also set to 4 and VACTIVE set to 288 for 50Hz.