FDPResetGroup

Resets predictors for group of spectral lines.

Syntax

IppStatus ippsFDPResetGroup_32f (int resetGroupNumber, int step, IppsFDPState_32f* pFDPState);

Parameters

resetGroupNumber

Number of the group to be reset.

step

Distance between two neighboring spectral lines in the group.

pFDPState

Pointer to the predictor specific state structure.

Description

This function is declared in the ippac.h header file. The function ippsFDPResetGroup resets predictors for each step-th spectral line beginning from the start up to the end of spectrum.

Below see code example  of using ippsFDPInv and ippsFDPResetGroup_32f functions.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pFDPState pointer is NULL.

ippStsSizeErr

Indicates an error when resetGroupNumber or step is less than or equal to 0.

ippStsContextMatchErr

Indicates an error when the state structure is invalid.

ippsFDPInv and ippsFDPResetGroup Usage  

/* 1 step - initialization */
IppsFDPState_32f* pFDPState;
ippsFDPInitAlloc_32f(&pFDPState, 1024);

		
/* 2 step - using inside decoder. Something like this (from AAC)*/ 

		
ippsFDPInv_32f_I(p_spectrum, sfb_offset_long_window,
                 pred_max_sfb, prediction_used,
                 pFDPState);

		
if ((predictor_reset) &&
    predictor_reset_group_number > 0 &&
    predictor_reset_group_number < 31) {

		
    ippsFDPResetGroup_32f(30, predictor_reset_group_number - 1, pFDPState);
 }

		
 /* 3 step - freeing */
 ippsFDPFree_32f(pFDPState);

Submit feedback on this help topic

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