SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
In UYVY and NV12 mode, the pixel interpolation type can be set to bicubic interpolation for best quality or bilinear interpolation for faster performance. In Bayer mode, bilinear interpolation is always used.
As the coordinates ( haff, vaff) calculated by the back-mapping function are not generally integer values, bicubic or bilinear interpolation is applied to the distorted pixels.
Depending on register configuration, bicubic or bilinear interpolation is used to interpolate the output Y pixels:
In the case of bicubic interpolation, the distorted pixel is interpolated from the 16 Y pixels in the 4 x 4 grid around the distorted location, as shown in Figure 9-212. Bicubic interpolation is used first along the horizontal direction, then the vertical direction.
If bilinear interpolation is selected, the distorted pixel is interpolated from the four Y pixels in the 2 x 2 grid around the distorted location, as shown in Figure 9-213.
For Cb and Cr components, simple bilinear interpolation is used. Each distorted pixel is interpolated from the four same-color pixels on the 2 x 2 grid around the distorted location. For UYVY data, the Cb/Cr grid is not square, but is 2x wider compared to the height. This is shown in Figure 9-214.
In Bayer mode processing, bilinear interpolation is used. The red and blue distorted pixels are interpolated from the four same-color pixels on the 2 x 2 grid around the distorted location.