
www.ti.com
Video Input Filtering
The filtering for the luminance portion of the scaling filter changes depending on if chrominance
Figure 3-9. 1/2 Scaled Co-Sited Filtering
a b c d e
YCbCr 4:2:2
1/2 scaled
Luma (Y) | Chroma (Cb/Cr) |
- sample | - samples |
f | g | h | i | j | k | l |
Y’h =
Y’f =
Cb’f =
Cr’f =
Figure 3-10. 1/2 Scaled Chrominance Re-sampled Filtering
a b c d e
YCbCr 4:2:2
1/2 scaled
Luma (Y) | Chroma (Cb/Cr) |
- sample | - samples |
f g | h | i | j k | l |
Y’g =
Cb’f =
Note that because input scaling is limited to 1/2, true CIF horizontal resolution is not achieved if the full BT.656 horizontal line (720 pixels) is captured. A CIF size line can be captured by selecting a 704
Note that when 1/2 scaling is selected, horizontal timing applies to the incoming data (before scaling). The VCTHRLD value applies to the data written into the FIFO after scaling.
Also note when using the scalar, standard BT.601 values should be used for the luma and chroma
3.5.4 Edge Pixel Replication
Because the filters make use of preceding and trailing samples, filtering artifacts can occur at the beginning of the BT.656 or Y/C active line because no samples exist before the SAV code, and at the end of the BT.656 active line because no samples exist after the EAV code. In order to minimize artifacts, the first m samples after sample 0 (where m is the maximum number of preceding samples used by any of the filters) are mirrored to the left of sample 0 and the last m samples before the last sample are mirrored to the right of the last sample.
Figure 3-11 shows edge pixel replication assuming an m value of 3. Sample a is the first sample after the SAV code. Therefore, samples b-d are mirrored to the left of sample a to provide values for the filter calculations on the first few pixels in the line. Likewise, samples n - 1 to n - 3 are mirrored to the right of the last sample n to provide values for the last few pixels on the line.
SPRUEM1 | Video Capture Port | 59 |