Convert from YCbCr with 4:2:2 sampling to YCbCr with 4:2:0 sampling
FwStatus | fwiYCbCr422ToYCbCr420_8u_P3R | ( | const Fw8u* pSrc[3], int srcStep[3], Fw8u* pDst[3], int dstStep[3], FwiSize roiSize ); | |
FwStatus | fwiYCbCr422ToYCbCr420_8u_C2P3R | ( | const Fw8u* pSrc, int srcStep, Fw8u* pDst[3], int dstStep[3], FwiSize roiSize ); |
dstStep[3] | Destination three-channel planar buffer step size (array values define width of each plane in bytes). | |
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). |
These functions step through an ROI in a source buffer or buffers, convert the source data from the YCbCr color space with 4:2:2 chroma subsampling to YCbCr color space with 4:2:0 chroma subsampling, and writes the converted data to a destination buffer or buffers.
The source buffer can be two-channel or three-planar data. The destination is planar data with two or three planes.
The format of the two-channel data is Y1, Cb1, Y2, Cr1, Y3, Cb2, Y4, Cr2... etc
The format of the two-plane data is Y1, Y2, Y3, Y4... etc in the first plane and Cb1, Cr1, Cb2, Cr2... etc in the second plane.