Interpolate luma component at bottom frame boundary

Supported Technologies



FwStatus   fwiInterpolateLumaBottom_H264_8u_C1R ( const Fw8u * pSrcFw32s srcStepFw8u * pDstFw32s dstStepFw32s dxFw32s dyFw32s outPixelsFwiSize 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 bottom boundary of a defined region of a source reference frame. The interpolation method is convolution with a 6X6 kernel, in accordance with JVTG050 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.