Encodes RGBA texture images.
IppStatus ippiTextureEncodeBlock4x4FromRGBA_BC7_8u_C4C1R(const Ipp8u* pSrc, Ipp32u srcStep, Ipp8u* pDst, Ipp32u* pMSE, Ipp32u mode);
pSrc |
Pointer to the source data. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
pDst |
Pointer to the destination image. |
pMSE |
Pointer to the calculated mean square error. |
mode |
Block coding mode (0,.., 7) |
The function ippiTextureEncodeBlock4x4FromRGBA is declared in the ippj.h file. It operates with ROI (see Regions of Interest in Intel IPP).
This function encodes the source image ROI pSrc from RGBA to BC7 format. Your must ensure that the pDst buffer contains enough space for compressed data. For BC7 (compression ratio 4:1) the size of one compressed block is 16 bytes.
Negative step values are not supported.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if pSrc or pDst pointer is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.