YCbCrToRGB_JPEG

Converts an YCbCr image to the RGB color model.

Syntax

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

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

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

Parameters

pSrc

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

srcStep

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

pDst

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

dstStep

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

roiSize

Size of the source and destination ROI in pixels.

aval

Constant value to create the fourth channel.

Description

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

This function converts an YCbCr image to the RGB image according to the following formulas:

R = Y + 1.402*Cr - 179.456

G = Y - 0.34414*Cb - 0.71414*Cr + 135.45984

B = Y + 1.772*Cb - 226.816

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsSizeErr

Indicates an error condition if roiSize has a field with zero or negative value.

ippStsStepErr

Indicates an error condition if srcStep or dstStep has a zero or negative value.

Submit feedback on this help topic

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