Converts from YUV with 4:2:0 sampling to BGR
MT, SSE2, Family10h
FwStatus | fwiYUV420ToBGR_8u_P3C3R | ( | const Fw8u * const pSrc[3], int srcStep[3], Fw8u * pDst, int dstStep, FwiSize roiSize ); |
dstStep | Destination buffer step size (width of the buffer in bytes). | |
pDst | Pointer to a location in a destination 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[3] | Source three-channel planar buffer step size (array values define width of each plane in bytes). |
This function steps through an ROI in a source buffer, converts the source data from the YUV color space with 4:2:0 chroma subsampling to the BGR model, and writes the converted data to a destination buffer.
A YUV image with 4:2:0 chroma subsampling (pSrc) is converted to a gamma-corrected BGR image (pDst).
The following conversion formulas are used:
R = Y + 1.140*V G = Y - 0.394*U - 0.581*V B = Y + 2.032*U