ResizeYUV422

Resize a YUV422 image

Synopsis

FwStatus   fwiResizeYUV422_8u_C2R ( const Fw8u * pSrcFwiSize srcSizeint srcStepFwiRect srcRoiFw8u * pDstint dstStepFwiSize dstRoiSizedouble xFactordouble yFactorint interpolation );

Parameters

dstRoiSize   Destination image ROI size.
dstStep   Destination buffer step size (width of the buffer in bytes).
interpolation   Specifies the method of interpolation.
pDst   Pointer to a location in a destination buffer.
pSrc   Pointer to a location in a source buffer.
srcRoi   Source image ROI.
srcSize   Source image size.
srcStep   Source buffer step size (width of the buffer in bytes).
xFactor   Factor value for X axis direction.
yFactor   Factor value for Y axis direction .

Description

This function steps through an ROI in a source buffer, scales the source data using x-y scaling factors and a specified method of interpolation, then shifts the data to a destination ROI.

The function is specialized for YUV color space data with 4:2:2 chroma sub-sampling. The source data has two channels in 4:2:2 sampled format with decoupled luminance and chrominance components.

For example, the format could be in the form of alternating YUYVYUYV...

The following interpolation modes are available.

 FWI_INTER_NN: nearest neighbor interpolation
 FWI_INTER_LINEAR: linear interpolation
 FWI_INTER_CUBIC: cubic interpolation
 FWI_INTER_SUPER: supersampling
 FWI_INTER_LANCZOS: interpolation with Lanczos window function

Use the super-sampling interpolation option when both the x and y scaling factors are less than 1.