SampleDownH2V2_JPEG

Downsample block (H2V2)

Synopsis

FwStatus   fwiSampleDownH2V2_JPEG_8u_C1R ( const Fw8u * pSrcint srcStepFwiSize srcSizeFw8u * pDstint dstStepFwiSize dstSize );

Parameters

dstSize   Destination image size.
dstStep   Destination buffer step size (width of the buffer in bytes).
pDst   Pointer to a location in a destination buffer.
pSrc   Pointer to a location in a source buffer.
srcSize   Source image size.
srcStep   Source buffer step size (width of the buffer in bytes).

Description

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

Ordered dither rounding is used (0.5 is rounded up or down at alternate pixel locations).