Encodes YCoCg texture images.
IppStatus ippiTextureEncodeBlockFromYCoCg_DXT5_8u_C3C1R(const Ipp8u* pSrc, Ipp32u srcStep, IppiSize roiSize, Ipp8u* pDst);
pSrc |
Pointer to the source image ROI. |
srcStep |
Distance in bytes between starts of consecutive lines in the source image. |
roiSize |
Size of the source image ROI in pixels. |
pDst |
Pointer to the destination array of the encoded blocks. |
The function ippiTextureEncodeBlockFromYCoCg_DXT5 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 YCoCg to DXT5 format. The user must ensure that the pDst buffer contains enough space for compressed data. For the DXT5 compression (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. |
ippStsSizeErr |
Indicates an error condition if roiSize has a field with zero or negative value. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.