Lines Matching refs:state

52           product of state->prevCbGain and ONFACTPLUS1 in the ph_disp
133 state = pointer to a structure of type ph_dispState
136 Structure pointed to by state is initialized to zeros
165 int ph_disp_reset (ph_dispState *state)
169 if (state == (ph_dispState *) NULL){
175 state->gainMem[i] = 0;
177 state->prevState = 0;
178 state->prevCbGain = 0;
179 state->lockFull = 0;
180 state->onset = 0; // assume no onset in start
208 Word16 ph_disp_reset(ph_dispState *state)
212 if (state == (ph_dispState *) NULL)
219 state->gainMem[i] = 0;
221 state->prevState = 0;
222 state->prevCbGain = 0;
223 state->lockFull = 0;
224 state->onset = 0; /* assume no onset in start */
238 state = pointer to a structure of type ph_dispState
241 lockFull field of the structure pointed to by state is set to 1
270 void ph_disp_lock (ph_dispState *state)
272 state->lockFull = 1;
299 void ph_disp_lock(ph_dispState *state)
301 state->lockFull = 1;
315 state = pointer to a structure of type ph_dispState
318 lockFull field of the structure pointed to by state is set to 0
332 This function clears the lockFull flag to indicate an unlocked state.
347 void ph_disp_release (ph_dispState *state)
349 state->lockFull = 0;
376 void ph_disp_release(ph_dispState *state)
378 state->lockFull = 0;
392 state = pointer to a structure of type ph_dispState
404 structure pointed to by state contains the updated gainMem array,
439 ph_dispState *state, // i/o : State struct
466 state->gainMem[i] = state->gainMem[i-1];
468 state->gainMem[0] = ltpGain;
488 tmp1 = pv_round(L_shl(L_mult(state->prevCbGain, ONFACTPLUS1), 2));
491 state->onset = ONLENGTH;
495 if (state->onset > 0)
497 state->onset = sub (state->onset, 1);
503 if (state->onset == 0)
509 if (sub(state->gainMem[i], PHDTHR1LTP) < 0)
521 if ((sub(impNr, add(state->prevState, 1)) > 0) && (state->onset == 0))
526 if((sub(impNr, 2) < 0) && (state->onset > 0))
537 if(sub(state->lockFull, 1) == 0)
543 state->prevState = impNr;
544 state->prevCbGain = cbGain;
655 ph_dispState *state, /* i/o : State struct */
693 /* state->gainMem[i] = state->gainMem[i-1]; */
695 state->gainMem[4] = state->gainMem[3];
696 state->gainMem[3] = state->gainMem[2];
697 state->gainMem[2] = state->gainMem[1];
698 state->gainMem[1] = state->gainMem[0];
699 state->gainMem[0] = ltpGain;
722 L_temp = ((Word32) state->prevCbGain * ONFACTPLUS1) << 1;
744 state->onset = ONLENGTH;
749 if (state->onset > 0)
751 state->onset -= 1;
757 if (state->onset == 0)
763 if (state->gainMem[i] < PHDTHR1LTP)
775 if ((impNr > ((state->prevState) + 1)) && (state->onset == 0))
781 if ((impNr < 2) && (state->onset > 0))
792 if (state->lockFull == 1)
798 state->prevState = impNr;
799 state->prevCbGain = cbGain;