Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference

ID 790148
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

YCoCgToBGR

Converts a YCoCg image to the 24-bit BGR image.

Syntax

IppStatus ippiYCoCgToBGR_16s8u_P3C3R(const Ipp16s* pYCC[3], int yccStep, Ipp8u* pBGR,int bgrStep, IppiSize roiSize);

IppStatus ippiYCoCgToBGR_16s8u_P3C4R(const Ipp16s* pYCC[3], int yccStep, Ipp8u* pBGR, int bgrStep, IppiSize roiSize, Ipp8u aval);

Include Files

ippcc.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h, ippi.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib, ippi.lib

Parameters

pYCC

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

yccStep

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

pBGR

Pointer to the destination image ROI.

bgrStep

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

This function operates with ROI (see Regions of Interest in Intel IPP).

This function converts the YCoCg image pYCC to the 24-bit BGR image pBGR according to the following formulas:

R = Y + Co - Cg

G = Y + Cg

B = Y - Co - Cg

The fourth channel is created by setting channel values to the constant value aval.

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.