YCbCr444ToBGR565LS_MCU, YCbCr444ToBGR555LS_MCU

Create an YCbCr image from 444 MCU and convert it to the BGR color model.

Syntax

IppStatus ippiYCbCr444ToBGR565LS_MCU_16s16u_P3C3R(const Ipp16s* pSrcMCU[3], Ipp16u* pDstBGR, int dstStep);

IppStatus ippiYCbCr444ToBGR555LS_MCU_16s16u_P3C3R(const Ipp16s* pSrcMCU[3], Ipp16u* pDstBGR, int dstStep);

Parameters

pSrcMCU

Array of 3 pointers to the source image blocks.

pDstBGR

Pointer to the destination image ROI.

dstStep

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

Description

The functions ippiYCbCr444ToBGR565LS_MCU and ippiYCbCr444ToBGR555LS_MCU are declared in the ippj.h file. They operate with ROI (see Regions of Interest in Intel IPP). These functions create YCbCr 8x8 image from 444 MCU (see Figure “MCU Structure for Different JPEG Sampling Formats”) and convert it to the BGR format using the same formulas as the ippiYCbCrToRGB_JPEG function for computing B, G, and R component values.

Additionally, the functions convert data from the signed Ipp16s range [-128..127] to the unsigned Ipp8u range [0..255] performing level shift operation (by adding 128). The destination image pDstBGR has a reduced bit depth of 16 bits per pixel (see Figure “16-bit pixel formats”), and it can be in one of two possible formats : BGR565 (5 bits for blue, 6 bits for green, 5 bits for red), or BGR555 (5 bits for blue, green, red).

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

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

ippStsStepErr

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

Submit feedback on this help topic

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