YCbCrToBGR_JPEG

Convert YCbCr to BGR (JPEG)

Synopsis

FwStatus   fwiYCbCrToBGR_JPEG_8u_P3C3R ( const Fw8u * const pSrcYCbCr[3]int srcStepFw8u * pDstBGRint dstStepFwiSize roiSize );

Parameters

dstStep   Destination buffer step size (width of the buffer in bytes).
pDstBGR   Pointer to destination image ROI for BGR image format.
pSrcYCbCr[3]   Pointer to source image ROI for YCbCr image format (three-channel planar).
roiSize   Specifies the height and width of an ROI.
srcStep   Source buffer step size (width of the buffer in bytes).

Description

This function steps through an ROI in a source buffer, converts the source data from the YCbCr color space to the BGR color model, and writes the converted data to a destination buffer.

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

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