Interpolate luma component at top frame boundary
SSE2
FwStatus | fwiInterpolateLumaTop_H264_8u_C1R | ( | const Fw8u * pSrc, Fw32s srcStep, Fw8u * pDst, Fw32s dstStep, Fw32s dx, Fw32s dy, Fw32s outPixels, FwiSize roiSize ); |
dstStep | Step of the destination array. | |
dx | Fractional part of the x-coordinate in a source image. | |
dy | Fractional part of the y-coordinate in a source image. | |
outPixels | The number of pixels by which the data specified by pSrc reaches over the frame top boundary. | |
pDst | Pointer to a location in a destination buffer, a location in a destination array or to a destination result. | |
pSrc | Pointer to a block of DCT coefficients. | |
roiSize | Specifies the height and width of an ROI. | |
srcStep | Source buffer step size (width of the buffer in bytes). |
This function increases the accuracy of inter-frame motion prediction by performing quarter-pixel luma-component interpolation near the top boundary of a defined region of a source reference frame. The interpolation method is convolution with a 6X6 kernel, in accordance with JVTG050 8.4.2.2.1. Results are written to a defined ROI in a destination buffer.
The function uses only the fractional portion of the complex motion vector to perform interpolation. The integer portion of the vector is used to define the source location pSrc. When the source region overlaps a frame boundary, the region of interpolation is adjusted according to the value specified by outPixels to assure that the closest line of pixel data in the frame is used.