Lines Matching defs:state
127 state = Pointer to a pointer to a clLtpState structure
130 state points to the newly created clLtpState structure.
144 Allocates state memory and initializes state memory
159 int cl_ltp_init (clLtpState **state)
163 if (state == (clLtpState **) NULL){
167 *state = NULL;
171 fprintf(stderr, "cl_ltp_init: can not malloc state structure\n");
175 // init the sub state
183 *state = s;
212 Word16 cl_ltp_init(clLtpState **state)
216 if (state == (clLtpState **) NULL)
221 *state = NULL;
226 /*fprint(stderr, "cl_ltp_init: can not malloc state structure\n");*/
230 /* init the sub state */
239 *state = s;
253 state = pointer to the clLtpState structure to be reset
256 The state structure pointed to by clLtpState *state is reset.
270 Initializes state memory to zero.
283 int cl_ltp_reset (clLtpState *state)
285 if (state == (clLtpState *) NULL){
291 Pitch_fr_reset (state->pitchSt);
319 Word16 cl_ltp_reset(clLtpState *state)
321 if (state == (clLtpState *) NULL)
328 Pitch_fr_reset(state->pitchSt);
342 clLtpState **state = Reference to the state object to be freed.
345 The memory used by the structure which is pointed to by 'state'
360 The memory used for state memory is freed
376 void cl_ltp_exit (clLtpState **state)
378 if (state == NULL || *state == NULL)
382 Pitch_fr_exit(&(*state)->pitchSt);
385 free(*state);
386 *state = NULL;
414 void cl_ltp_exit(clLtpState **state)
416 if (state == NULL || *state == NULL)
422 Pitch_fr_exit(&(*state)->pitchSt);
425 free(*state);
426 *state = NULL;