Downsample row (H2V2)
FwStatus | fwiSampleDownRowH2V2_Box_JPEG_8u_C1 | ( | const Fw8u * pSrc1, const Fw8u * pSrc2, int srcWidth, Fw8u * pDst ); |
pDst | Pointer to a location in a destination buffer. | |
pSrc1 | Pointer to a location in source buffer one. | |
pSrc2 | Pointer to a location in source buffer two. | |
srcWidth | Width of the source row in pixels. |
This function steps through a row 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.
Row ends are defined by the two source pointers. Ordered dither rounding is used (0.5 is rounded up or down at alternate pixel locations).