Gets the size of the ippsRSEncodeSpec_8u context in bytes.
IppStatus ippsRSEncodeGetSize_8u(int codeLength, int dataLength, int* pSize);
codeLength |
The desired codeword length. |
dataLength |
The desired data length. |
pSize |
Pointer to the size of the context (in bytes). |
This function is declared in the ippdi.h file. The function computes the size of a buffer to be allocated by the application and used in future as the RS (codeLength, dataLength) encoder context having the IppsRSEncodeSpec_8u type.
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsRangeErr |
Indicates an error condition if values of the parameters codeLength and/or dataLength are out of bounds determined by the inequalities: 2 ≤ codeLength < 256; 0 < dataLength < codeLength. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.