/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
H A D | agc.cpp | 508 state = pointer to a structure of type agcState 511 Structure pointed to by state is initialized to zeros 526 Reset of agc (i.e. set state memory to 1.0). 541 int agc_reset (agcState *state) 543 if (state == (agcState *) NULL) 549 state->past_gain = 4096; // initial value of past_gain = 1.0 577 Word16 agc_reset(agcState *state) argument 579 if (state == (agcState *) NULL) 585 state->past_gain = 4096; /* initial value of past_gain = 1.0 */ 599 st = pointer to agc state [all...] |
H A D | bgnscd.cpp | 91 state = points to memory of type Bgn_scdState. 94 The memory of type Bgn_scdState pointed to by state is set to all 110 Resets state memory. 125 Word16 Bgn_scd_reset (Bgn_scdState *state) 127 if (state == (Bgn_scdState *) NULL){ 133 Set_zero (state->frameEnergyHist, L_ENERGYHIST); 136 state->bgHangover = 0; 164 Word16 Bgn_scd_reset(Bgn_scdState *state) argument 166 if (state == (Bgn_scdState *) NULL) 173 memset(state [all...] |
H A D | c_g_aver.cpp | 121 state = pointer to a structure of type Cb_gain_averageState 124 Structure pointed to by state is initialized to zeros 139 Resets state memory 154 Word16 Cb_gain_average_reset (Cb_gain_averageState *state) 156 if (state == (Cb_gain_averageState *) NULL){ 162 Set_zero (state->cbGainHistory, L_CBGAINHIST); 165 state->hangVar = 0; 166 state->hangCount= 0; 194 Word16 Cb_gain_average_reset(Cb_gain_averageState *state) argument 196 if (state [all...] |
H A D | d_plsf.cpp | 114 state = pointer to structure of type D_plsf_reset 117 fields of the structure pointed to by state is initialized to zero 131 Resets state memory 146 int D_plsf_reset (D_plsfState *state) 150 if (state == (D_plsfState *) NULL){ 156 state->past_r_q[i] = 0; // Past quantized prediction error 160 Copy(mean_lsf, &state->past_lsf_q[0], M); 187 Word16 D_plsf_reset(D_plsfState *state) argument 191 if (state == (D_plsfState *) NULL) 199 state [all...] |
H A D | dec_amr.cpp | 117 state = pointer to a pointer to structures of type Decoder_amrState 120 structure pointed to by the pointer which is pointed to by state is 123 state pointer points to the address of the memory allocated by 138 This function allocates and initializes state memory used by the Decoder_amr 139 function. It stores the pointer to the filter status structure in state. This 156 int Decoder_amr_init (Decoder_amrState **state) 161 if (state == (Decoder_amrState **) NULL){ 165 *state = NULL; 169 fprintf(stderr, "Decoder_amr_init: can not malloc state structure\n"); 200 *state 395 Decoder_amr_reset(Decoder_amrState *state, enum Mode mode) argument [all...] |
H A D | dec_amr.h | 134 Word16 state; member in struct:Decoder_amrState 166 * Purpose : Allocates initializes state memory 175 * Purpose : Resets state memory
|
H A D | ec_gains.cpp | 126 state = pointer to a pointer to a structure containing code state data of 144 This function resets the state data for the ec_gain module. 159 int ec_gain_code_reset (ec_gain_codeState *state) 163 if (state == (ec_gain_codeState *) NULL){ 169 state->gbuf[i] = 1; 170 state->past_gain_code = 0; 171 state->prev_gc = 1; 199 Word16 ec_gain_code_reset(ec_gain_codeState *state) argument 203 if (state 315 ec_gain_code( ec_gain_codeState *st, gc_predState *pred_state, Word16 state, Word16 *gain_code, Flag *pOverflow ) argument 577 ec_gain_pitch( ec_gain_pitchState *st, Word16 state, Word16 *gain_pitch, Flag *pOverflow ) argument 686 ec_gain_pitch_reset(ec_gain_pitchState *state) argument [all...] |
H A D | ph_disp.cpp | 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 208 ph_disp_reset(ph_dispState *state) argument 299 ph_disp_lock(ph_dispState *state) argument 376 ph_disp_release(ph_dispState *state) argument 654 ph_disp( ph_dispState *state, enum Mode mode, Word16 x[], Word16 cbGain, Word16 ltpGain, Word16 inno[], Word16 pitch_fac, Word16 tmp_shift, Flag *pOverflow ) argument [all...] |
H A D | post_pro.cpp | 141 state = pointer to a structure of type Post_ProcessState 144 structure pointed to by state will have all its fields initialized 159 This function initializes state memory to zero. 174 int Post_Process_reset (Post_ProcessState *state) 176 if (state == (Post_ProcessState *) NULL){ 181 state->y2_hi = 0; 182 state->y2_lo = 0; 183 state->y1_hi = 0; 184 state->y1_lo = 0; 185 state 213 Post_Process_reset(Post_ProcessState *state) argument [all...] |
H A D | preemph.cpp | 118 Initializes state memory to zero 156 Word16 preemphasis_reset(preemphasisState *state) argument 158 if (state == (preemphasisState *) NULL) 164 state->mem_pre = 0; 176 st -- Pointer to preemphasisState -- preemphasis filter state 182 st -- Pointer to preemphasisState -- preemphasis filter state 237 preemphasisState *st, /* (i/o) : preemphasis filter state */
|
H A D | pstfilt.cpp | 166 state = pointer to structure of type Post_FilterState 169 fields of the structure pointed to by state is initialized to zero 183 This function initializes the state memory used by the Post_Filter function 199 int Post_Filter_reset (Post_FilterState *state) 201 if (state == (Post_FilterState *) NULL){ 206 Set_zero (state->mem_syn_pst, M); 207 Set_zero (state->res2, L_SUBFR); 208 Set_zero (state->synth_buf, L_FRAME + M); 209 agc_reset(state->agc_state); 210 preemphasis_reset(state 238 Post_Filter_reset(Post_FilterState *state) argument [all...] |
H A D | sp_dec.cpp | 137 state = pointer to an array of pointers to structures of type 145 to by state is set to NULL 147 by state is set to NULL 149 by state is set to NULL 151 to by state is set to the input no_hp_post_MR122 166 This function allocates memory for filter structure and initializes state 185 int Speech_Decode_Frame_init (Speech_Decode_FrameState **state, 190 if (state == (Speech_Decode_FrameState **) NULL){ 194 *state = NULL; 199 fprintf(stderr, "Speech_Decode_Frame_init: can not malloc state " 376 Speech_Decode_FrameState *state = local 487 Speech_Decode_FrameState **state = local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
H A D | cl_ltp.cpp | 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 212 cl_ltp_init(clLtpState **state) argument 319 cl_ltp_reset(clLtpState *state) argument 414 cl_ltp_exit(clLtpState **state) argument [all...] |
H A D | cod_amr.cpp | 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, Fla argument 631 cod_amr_exit(cod_amrState **state) argument [all...] |
H A D | gain_q.cpp | 135 Allocates state memory and initializes state memory 174 Word16 gainQuant_init(gainQuantState **state) argument 178 if (state == (gainQuantState **) NULL) 183 *state = NULL; 188 /* fprintf(stderr, "gainQuant_init: can not malloc state structure\n"); */ 206 *state = s; 236 Initializes state memory to zero 274 Word16 gainQuant_reset(gainQuantState *state) argument 277 if (state 361 gainQuant_exit(gainQuantState **state) argument [all...] |
H A D | levinson.cpp | 91 state = pointer to an array of pointers to structures of type 95 pointer pointed to by state points to the newly allocated memory to 110 This function allocates and initializes the state memory used by the 126 int Levinson_init (LevinsonState **state) 130 if (state == (LevinsonState **) NULL){ 134 *state = NULL; 138 //fprint(stderr, "Levinson_init: can not malloc state structure\n"); 143 *state = s; 171 Word16 Levinson_init(LevinsonState **state) argument 175 if (state 279 Levinson_reset(LevinsonState *state) argument 375 Levinson_exit(LevinsonState **state) argument [all...] |
H A D | lpc.cpp | 100 state = pointer to pointer of state data of type lpcState 117 This function initializes the state data for the LPC module. 135 if (state == (lpcState **) NULL){ 139 *state = NULL; 143 // fprintf(stderr, "lpc_init: can not malloc state structure\n"); 157 *state = s; 183 Word16 lpc_init(lpcState **state) argument 187 if (state == (lpcState **) NULL) 192 *state 286 lpc_reset(lpcState *state) argument 374 lpc_exit(lpcState **state) argument [all...] |
H A D | p_ol_wgh.cpp | 110 state = pointer to a pointer of structure type pitchOLWghtState 128 This function allocates state memory and initializes state memory 143 int p_ol_wgh_init (pitchOLWghtState **state) 147 if (state == (pitchOLWghtState **) NULL){ 151 *state = NULL; 155 // fprintf(stderr, "p_ol_wgh_init: can not malloc state structure\n"); 161 *state = s; 189 Word16 p_ol_wgh_init(pitchOLWghtState **state) argument 193 if (state 391 p_ol_wgh_exit(pitchOLWghtState **state) argument [all...] |
H A D | pitch_fr.cpp | 762 state = pointer to a pointer of structure type Pitch_fr_State. 780 Purpose: Allocates state memory and initializes state memory 795 int Pitch_fr_init (Pitch_frState **state) 799 if (state == (Pitch_frState **) NULL){ 803 *state = NULL; 807 // fprintf(stderr, "Pitch_fr_init: can not malloc state structure\n"); 812 *state = s; 839 Word16 Pitch_fr_init(Pitch_frState **state) argument 843 if (state 942 Pitch_fr_reset(Pitch_frState *state) argument 1034 Pitch_fr_exit(Pitch_frState **state) argument [all...] |
H A D | pre_proc.cpp | 131 state = pointer to an array of pointer to structures of type 135 Structure pointed to by the pointer pointed to by state is 137 state points to the allocated memory 152 Allocates state memory and initializes state memory. 167 int Pre_Process_init (Pre_ProcessState **state) 171 if (state == (Pre_ProcessState **) NULL){ 175 *state = NULL; 179 fprintf(stderr, "Pre_Process_init: can not malloc state structure\n"); 184 *state 212 Pre_Process_init(Pre_ProcessState **state) argument 320 Pre_Process_reset(Pre_ProcessState *state) argument 416 Pre_Process_exit(Pre_ProcessState **state) argument [all...] |
H A D | sid_sync.cpp | 46 Description: Changed type definition of state pointer to 'void' for 107 state = pointer containing a pointer to the state structure used for 114 return_value = status of sid_sync_reset function; -1, if state is pointing 127 the pointer to state struct in *st. This pointer has to be passed to sid_sync 166 Word16 sid_sync_init(void **state) argument 170 if (state == NULL) 172 /* fprintf(stderr, "sid_sync_init:invalid state parameter\n"); */ 176 *state = NULL; 184 "can not malloc state structur 260 sid_syncState *state = (sid_syncState *) st; local 335 sid_sync_exit(void **state) argument 495 sid_sync(void *state, enum Mode mode, enum TXFrameType *tx_frame_type) argument [all...] |
H A D | sp_enc.cpp | 110 state = pointer to an array of pointers to structures of type 117 by state is set to NULL 119 by state is set to NULL 120 dtx field of the structure pointed to by the pointer pointed to by state 136 This function allocates memory for filter structure and initializes state 168 fprintf(stderr, "Speech_Encode_Frame_init: can not malloc state " 233 /* fprintf(stderr, "Speech_Encode_Frame_init: can not malloc state " 264 state = pointer to structures of type Speech_Decode_FrameState 281 This function resets state memory 299 Speech_Encode_FrameState *state 344 Speech_Encode_FrameState *state = local 453 Speech_Encode_FrameState **state = local [all...] |
H A D | ton_stab.cpp | 104 state = pointer to pointer to structure type tonStabState. 122 Purpose: Allocates state memory and initializes state memory 137 int ton_stab_init (tonStabState **state) 141 if (state == (tonStabState **) NULL){ 145 *state = NULL; 149 // fprintf(stderr, "ton_stab_init: can not malloc state structure\n"); 155 *state = s; 184 Word16 ton_stab_init(tonStabState **state) argument 188 if (state 381 ton_stab_exit(tonStabState **state) argument [all...] |
/frameworks/av/media/libstagefright/codecs/amrwb/src/ |
H A D | dec_gain2_amr_wb.cpp | 55 int16 state, (i) : State of BFH 178 int16 state, /* (i) : State of BFH */ 230 *gain_pit = mult_int16(pdown_unusable[state], *past_gain_pit); 234 *gain_pit = mult_int16(pdown_usable[state], *past_gain_pit); 247 *past_gain_code = mult_int16(cdown_unusable[state], tmp); 251 *past_gain_code = mult_int16(cdown_usable[state], tmp); 169 dec_gain2_amr_wb( int16 index, int16 nbits, int16 code[], int16 L_subfr, int16 * gain_pit, int32 * gain_cod, int16 bfi, int16 prev_bfi, int16 state, int16 unusable_frame, int16 vad_hist, int16 * mem ) argument
|
H A D | e_pv_amrwbdec.h | 117 int16 state; member in struct:__anon604 126 Decoder_State state; member in struct:__anon605
|