Lines Matching defs:state

157     state = pointer to a pointer to a structure of type cod_amrState
160 Structure pointed to by the pointer pointed to by state is
162 state points to the allocated memory
177 This function allocates memory and initializes state variables.
192 int cod_amr_init (cod_amrState **state, Flag dtx)
196 if (state == (cod_amrState **) NULL){
200 *state = NULL;
204 fprintf(stderr, "cod_amr_init: can not malloc state structure\n");
237 *state = s;
265 Word16 cod_amr_init(cod_amrState **state, Flag dtx)
269 if (state == (cod_amrState **) NULL)
274 *state = NULL;
280 can not malloc state structure\n"); */
319 *state = s;
333 state = pointer to a structure of type cod_amrState
336 Structure pointed to by state is initialized to initial values.
351 This function resets the state memory for cod_amr.
550 state = pointer to a pointer to a structure of type cod_amrState
553 state points to a NULL address
567 This function frees the memory used for state memory.
582 void cod_amr_exit (cod_amrState **state)
584 if (state == NULL || *state == NULL)
588 lpc_exit(&(*state)->lpcSt);
589 lsp_exit(&(*state)->lspSt);
590 gainQuant_exit(&(*state)->gainQuantSt);
591 cl_ltp_exit(&(*state)->clLtpSt);
592 p_ol_wgh_exit(&(*state)->pitchOLWghtSt);
593 ton_stab_exit(&(*state)->tonStabSt);
595 vad1_exit(&(*state)->vadSt);
597 vad2_exit(&(*state)->vadSt);
599 dtx_enc_exit(&(*state)->dtx_encSt);
602 free(*state);
603 *state = NULL;
631 void cod_amr_exit(cod_amrState **state)
633 if (state == NULL || *state == NULL)
639 lpc_exit(&(*state)->lpcSt);
640 lsp_exit(&(*state)->lspSt);
641 gainQuant_exit(&(*state)->gainQuantSt);
642 cl_ltp_exit(&(*state)->clLtpSt);
643 p_ol_wgh_exit(&(*state)->pitchOLWghtSt);
644 ton_stab_exit(&(*state)->tonStabSt);
646 vad1_exit(&(*state)->vadSt);
648 vad2_exit(&(*state)->vadSt);
650 dtx_enc_exit(&(*state)->dtx_encSt);
653 free(*state); // BX
654 *state = NULL;