RSDecodeBMGetBufferSize, RSDecodeEEGetBufferSize

Gets size of work buffer for the decoding operation.

Syntax

IppStatus ippsRSDecodeBMGetBufferSize_8u(const IppsRSDecodeSpec_8u* pRS, int* pSize);

IppStatus ippsRSDecodeEEGetBufferSize_8u(const IppsRSDecodeSpec_8u* pRS, int* pSize);

Parameters

pRS

Pointer to the RS decoder context.

pSize

Pointer to the size of the work buffer (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 work buffer for the RS decoder that the context pointed by pRS defines. The functions ippsRSDecodeBMGetBufferSizeand ippsRSDecodeEEGetBufferSize compute the size of the work buffer for the Berlekamp-Massey (BM) and Extended Euclidean (EE) decoding algorithms, respectively.

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.

ippStsContextMatchErr

Indicates an error condition if the context pointed by pRS is not valid.

Submit feedback on this help topic

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