TextureDecodeBlockToRGB

Decodes compressed RGB texture images.

Syntax

IppStatus ippiTextureDecodeBlockToRGB_BC6_16u_C1C3R(const Ipp8u* pSrc, Ipp16u* pDst, Ipp32u dstStep, IppiSize roiSize);

IppStatus ippiTextureDecodeBlockToRGB_BC6_16s_C1C3R(const Ipp8u* pSrc, Ipp16s* pDst, Ipp32u dstStep, IppiSize roiSize);

Parameters

pSrc

Pointer to the source array of the encoded blocks.

pDst

Pointer to the destination image ROI.

dstStep

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

roiSize

Size of the destination image ROI in pixels.

Description

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

This function decodes the source data pSrc and restores the RGB texture image pDst. Source data are the encoded blocks in BC6 format. You must ensure that the pSrc buffer contains enough compressed data. For the BC6 format (compression ratio 6:1) the size of one compressed block is 16 bytes.

Note iconNote

Negative step values are not supported.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error 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.