User guide

Table Of Contents
Chapter 8: Chroma Resampler MegaCore Function 8–3
Functional Description
January 2013 Altera Corporation Video and Image Processing Suite
User Guide
Figure 8–2 shows 4:2:2 data at an edge transition. Without taking any account of the
luma, the interpolation to produce chroma values for sample 4 would weight samples
3 and 5 equally. From the luma, you can see that sample 4 falls on an the low side of an
edge, so sample 5 is more significant than sample 3.
The luma-adaptive mode looks for such situations and chooses how to adjust the
interpolation filter. From phase 0, it can shift to -1/4, 0, or 1/4; from phase 1/2, it can
shift to 1/4, 1/2, or 3/4. This makes the interpolated chroma samples line up better
with edges in the luma channel and is particularly noticeable for bold synthetic edges
such as text.
The luma-adaptive mode uses no memory or multipliers, but requires more logic
elements than the straightforward filtered algorithm.
Vertical Resampling (4:2:0)
The Chroma Resampler MegaCore function does not distinguish interlaced data with
its vertical resampling mode. It only supports the co-sited form of vertical resampling
shown in Figure 8–3.
For both upsampling and downsampling, the vertical resampling algorithm is fixed at
nearest-neighbor.
Vertical resampling does not use any multipliers. For upsampling, it uses four line
buffers, each buffer being half the width of the image. For downsampling it uses one
line buffer which is half the width of the image.
Figure 8–2. 4:2:2 Data at an Edge Transition
1234
Sample No
567
+
+
+
+
+
+
+
+
= Y’
+
= Cb
+
= Cr
+
+
= CbCr
+
+
= Y’CbCr
Y’ Intensity
CbCr Color
Value
+
+
+
+
+
+
+
+
Figure 8–3. Resampling 4.4.4 to a 4.2.0 Image
1234
1
2
Sample No 567
8
+
+
+
+
+
+
+
+
3
4
= Y’
+
= Cb
+
= Cr
+
+
= CbCr
+
+
= Y’CbCr
+
+
+
+
+
+
+
+