SampleUpRowH2V1_JPEG

Upsample row (H2V1)

Synopsis

FwStatus   fwiSampleUpRowH2V1_Triangle_JPEG_8u_C1 ( const Fw8u * pSrcint srcWidthFw8u * pDst );

Parameters

pDst   Pointer to a location in a destination buffer.
pSrc   Pointer to a location in a source buffer.
srcWidth   Width of the source row in pixels.

Description

This function steps through a row of pixel data in a source buffer, performs 2:1 horizontal and 1:1 vertical (4:2:2) chrominance upsampling without smoothing, and writes the output data to a destination buffer.

A "triangular" linear interpolation algorithm is used for upsampling; the interpolated pixels are 1/4 and 3/4 of the distance between the source pixels. Ordered dither rounding is used (0.5 is rounded up or down at alternate pixel locations).