YCbCr4112ToRGB_JPEG

Converts 4:1:1 YCbCr image to the RGB image.

Syntax

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

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

Parameters

pSrc

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

srcStep

Array of distance values in bytes between starts of consecutive lines in each plane of 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.

aval

Constant value to create the fourth channel.

Description

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

This function converts an YCbCr planar image pSrc, packed in 4:1:1 sampling format (see Figure “Different JPEG Sampling Formats” for more details) to the RGB image pDst according to the same formulas as the function ippiYCbCrToRGB_JPEG does. The output RGB values are saturated to the range [0..255].

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if pSrc or pDst pointer is NULL.

ippStsSizeErr

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

Submit feedback on this help topic

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