Convert YCCK MCU to CMYK


FwStatus   fwiYCCK444ToCMYKLS_MCU_16s8u_P4C4R ( const Fw16s * pSrcMCU[4]Fw8u * pDstCMYKint dstStep );
FwStatus   fwiYCCK422ToCMYKLS_MCU_16s8u_P4C4R ( const Fw16s * pSrcMCU[4]Fw8u * pDstCMYKint dstStep );
FwStatus   fwiYCCK411ToCMYKLS_MCU_16s8u_P4C4R ( const Fw16s * pSrcMCU[4]Fw8u * pDstCMYKint dstStep );


dstStep   Destination buffer step size (width of the buffer in bytes).
pDstCMYK   Pointer to destination image ROI for CMYK image format.
pSrcMCU[4]   Array of pointers to source MCU image blocks.


These functions step through a minimum coded unit in a source buffer, convert the data from the YCCK color space to the CMYK color model, level-shift the signed values to 8-bit unsigned values, and write the converted data to a destination buffer.

There are functions to convert minimum coded units with 4:4:4, 4:2:2, and 4:1:1 sampling.

The following formulas are used to convert luminance and chrominance values to red, green, and blue values.

 R = Y + 1.402*Cr - 179.456
 G = Y - 0.34414*Cb - 0.71414*Cr + 135.45984
 B = Y + 1.772*Cb - 226.816

The following formulas are used to convert red, green, and blue values to cyan, magenta, and yellow values.

 C = 255 - R
 M = 255 - G
 Y = 255 - B

The black (K) channel value remains the same during conversion.