
Bt848/848A/849A
Single-Chip Video Capture for PCI
Brooktree
30
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
L848A_A
Cropping Registers
The Horizontal Delay Register (HDELAY)
is programmed with the delay be-
tween the falling edge of HRESET and the rising edge of ACTIVE. The count is
programmed with respect to the scaled frequency clock. Note that HDELAY
should always be an even number.
The Horizontal Active Register (HACTIVE)
is programmed with the actual
number of active pixels per line of video. This is equivalent to the number of scaled
pixels that the Bt848 should output on a line. For example, if this register contained
90, and HSCALE was programmed to downscale by 4:1, then 90 active pixels
would be output. The 90 pixels would be a 4:1 scaled image of the 360 pixels (at
CLKx1) starting at count HDELAY. HACTIVE is restricted in the following man-
ner:
HACTIVE + HDELAY
≤
Total Number of Scaled Pixels.
For example, in the NTSC square pixel format, there is a total of 780 pixels, in-
cluding blanking, sync and active regions. Therefore:
HACTIVE + HDELAY
≤
780.
When scaled by 2:1 for CIF, the total number of active pixels is 390. Therefore:
HACTIVE +HDELAY
≤
390.
The HDELAY register is programmed with the number of scaled pixels be-
tween HRESET and the first active pixel. Because the front porch is defined as the
distance between the last active pixel and the next horizontal sync, the video line
can be considered in three components: HDELAY, HACTIVE and the front porch.
See Figure 16. When cropping is not implemented, the number of clocks at the 4x
sample rate (the CLKx1 rate) in each of these regions is shown below:
The value for HDELAY is calculated using the following formula:
HDELAY = [(CLKx1_HDELAY / CLKx1_HACTIVE) * HACTIVE] & 0x3FE
CLKx1_HDELAY and CLKx1_HACTIVE are constant values, so the equation
becomes:
NTSC:HDELAY = [(135 / 754) * HACTIVE] & 0x3FE
PAL/SECAM:HDELAY = [(186 / 922) * HACTIVE] & 0x3FE
In this equation, the HACTIVE value cannot be cropped.
CLKx1
Front Porch
CLKx1
HDELAY
CLKx1
HACTIVE
CLKx1
Total
NTSC
21
135
754
910
PAL/SECAM
27
186
922
1135