YCbCrToBGR5X5_JPEG

Convert YCbCr to 16-bit BGR (JPEG)

Synopsis

FwStatus   fwiYCbCrToBGR565_JPEG_8u16u_P3C3R ( const Fw8u * pSrcYCbCr[3]int srcStepFw16u * pDstBGRint dstStepFwiSize roiSize );
FwStatus   fwiYCbCrToBGR555_JPEG_8u16u_P3C3R ( const Fw8u * pSrcYCbCr[3]int srcStepFw16u * 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

These function step through an ROI in a source buffer, convert source data from the YCbCr color space to the 16-bit BGR color model, and write the converted data to a destination buffer.

There are separate functions for 555 and 565 bit-per-channel BGR destination encoding.

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