YCbCr411ToYCrCb422

Converts 4:1:1 YCbCr image to 4:2:2 YCrCb image.

Syntax

IppStatus ippiYCbCr411ToYCrCb422_8u_P3R(const Ipp8u* pSrc[3], int srcStep[3], Ipp8u* pDst[3], int dstStep[3], IppiSize roiSize);

IppStatus ippiYCbCr411ToYCrCb422_8u_P3C2R(const Ipp8u* pSrc[3], int srcStep[3], Ipp8u* pDst, int dstStep, IppiSize roiSize);

Parameters

pSrc

Array of pointers to the ROI in each plane for a three-plane source image.

srcStep

Array of distances in bytes between starts of consecutive lines in each plane for a three-plane source image.

pDst

Pointer to the ROI in the pixel-order destination image. Array of pointers to the ROI in each plane of the planar destination image.

dstStep

Distance in bytes between starts of consecutive lines in the destination image. Array of distance values for the destination image planes.

roiSize

Size of the ROI in pixels, its width should be multiple of 4.

Description

The function ippiYCbCr411ToYCrCb422 is declared in the ippcc.h file. It operates with ROI (see Regions of Interest in Intel IPP).

This function converts the 4:1:1 three-plane image pSrc to the 4:2:2 two-channel or three-plane image pDst with different order of components. The source image has the following order of pointers: Y-plane, Cb-plane, Cr-plane (see Table “Planar Image Formats”). The three-plane destination image has the following order of pointers: Y-plane, Cr-plane, Cb-plane (see Table “Planar Image Formats”), and two-channel destination image has the following sequence of samples: Y0, Cr0, Y1, Cb0, Y2, Cr1, Y3, Cb1, ... (see Table “Pixel-Order Image Formats”).

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if any of the specified pointers is NULL.

ippStsSizeErr

Indicates an error condition if roiSize.width is less than 4.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.