SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Two methods are supported to resample chrominance:
To convert the YUV4:2:2 encoded pixel values into YUV4:4:4 format, the averaging of the chrominance technique can be used as shown in Figure 11-54. The missing chrominance samples (Cb and Cr) are interpolated using the average values of the two closest values on the same line (, ) or are repeated from the second pixel in the same 32-bit container (see Figure 11-55). For the last pixel, the chrominance samples are duplicated using the values from the previous pixel; otherwise, the chrominance samples are averaged using the two adjacent values. Figure 11-56 shows the flow of the pixel.
The scaler unit can be used to resample the chrominance of YUV4:2:0 and YUV4:2:2, as shown in Figure 11-57 and Figure 11-58, respectively. The settings of the scaler unit to perform chrominance resampling are described in Section 11.2.4.10.4, DISPC Scaler Unit.
If rotation must be supported, YUV4:2:2 and YUV4:2:0 (0-/180-degree rotation) chrominance resampling is done as shown in Figure 11-58 and Figure 11-57, respectively.
For YUV4:2:2 (90-/270-degree rotation) data are preprocessed to present YUV4:4:4 on the scaler input (duplication of the missing chroma), as shown in Figure 11-56.