YCoCgToRGB

Converts a YCoCg image to the RGB image.

Syntax

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

Parameters

pSrc

Array of pointers to the source image ROI in each plane.

srcStep

Distance in bytes between starts of consecutive lines in the source image.

pDst

Pointer to the destination image ROI.

dstStep

Distance in bytes between starts of consecutive lines in the destination image.

roiSize

Size of the source and destination ROI in pixels.

Description

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

This function converts the YCoCg image pSrc to the RGB image pDst according to the following formulas:

R = Y + Co - Cg

G = Y + Cg

B = Y - Co - Cg

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

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

Submit feedback on this help topic

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