FIRSparseGetStateSize

Computes the size of the external buffer for the sparse FIR filter structure.

Syntax

IppStatus ippsFIRSparseGetStateSize_32f(int nzTapsLen, int order, int* pStateSize);

Parameters

nzTapsLen

Number of elements in the array containing the non-zero tap values.

order

Order of the sparse FIR filter.

pStateSize

Pointer to the computed value of the external buffer.

Description

The function ippsFIRSparseGetStateSize is declared in the ipps.h file. This function computes the size of the external buffer for a sparse FIR filter structure that is required for the function ippsFIRSparseInit . Computation is based on the specified number of non-zero filter coefficients nzTapsLen and filter order order that is equal to the number of elements in the delay line pNZTapPos [nzTapsLen -1] (see description of the function ippsFIRSparseInit). The result value is stored in the pStateSize.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error if pStateSize pointer is NULL.

ippStsFIRLenErr

Indicates an error if nzTapsLen or order is less than or equal to 0; or nzTapsLen is more than order.

Submit feedback on this help topic

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