YCbCr422

Convert 16-bit per pixel YCbCr with 4:2:2 sampling between 2-channel and 3-plane formats

Supported Technologies

MT

Synopsis

FwStatus   fwiYCbCr422_8u_C2P3R ( const Fw8u * pSrcint srcStepFw8u * pDst[3]int dstStep[3]FwiSize roiSize );
FwStatus   fwiYCbCr422_8u_P3C2R ( const Fw8u * const pSrc[3]int srcStep[3]Fw8u * pDstint dstStepFwiSize roiSize );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
dstStep[3]   Destination three-channel planar buffer step size (array values define width of each plane in bytes).
pDst   Pointer to a location in a destination buffer.
pDst[3]   Pointer to a location in a three-channel planar destination buffer (array values point to a location in each plane).
pSrc   Pointer to a location in a source buffer.
pSrc[3]   Pointer to a location in a three-channel planar source buffer (array values point to a location in each plane).
roiSize   Specifies the height and width of an ROI.
srcStep   Source buffer step size (width of the buffer in bytes).
srcStep[3]   Source three-channel planar buffer step size (array values define width of each plane in bytes).

Description

The C2P3R version of the function steps through an ROI in a source buffer, converts a 2-channel YCbCr color image with 4:2:2 chroma subsampling to to a 3-plane image, and writes the converted data to a destination buffer.

The P3C2R version of the function steps through an ROI in a source buffer, converts a 3-plane YCbCr color image with 4:2:2 chroma subsampling to to a 2-channel image, and writes the converted data to a destination buffer.