RSEncodeGetSize

Gets the size of the ippsRSEncodeSpec_8u context in bytes.

Syntax

IppStatus ippsRSEncodeGetSize_8u(int codeLength, int dataLength, int* pSize);

Parameters

codeLength

The desired codeword length.

dataLength

The desired data length.

pSize

Pointer to the size of the context (in bytes).

Description

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.

Return Values

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.

Submit feedback on this help topic

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