/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
pitch_fr.h | 101 Word16 T0_prev_subframe; /* integer pitch lag of previous sub-frame */ 109 Word16 Pitch_fr_init(Pitch_frState **st); 116 Word16 Pitch_fr_reset(Pitch_frState *st); 126 Word16 Pitch_fr( /* o : pitch period (integer) */ 129 Word16 T_op[], /* i : open loop pitch lags */ 130 Word16 exc[], /* i : excitation buffer */ 131 Word16 xn[], /* i : target vector */ 132 Word16 h[], /* i : impulse response of synthesis and 134 Word16 L_subfr, /* i : Length of subframe */ 135 Word16 i_subfr, /* i : subframe offset * [all...] |
calc_cor.cpp | 105 scal_sig = array of input samples. (Word16) 106 L_frame = length of frame used to compute pitch(Word16) 107 lag_max = maximum lag (Word16) 108 lag_min = minimum lag (Word16) 151 Word16 scal_sig[], // i : scaled signal. 152 Word16 L_frame, // i : length of frame to compute pitch 153 Word16 lag_max, // i : maximum lag 154 Word16 lag_min, // i : minimum lag 157 Word16 i, j; 158 Word16 *p, *p1 [all...] |
inter_36.cpp | 105 pX = pointer to input vector of type Word16 106 frac = fraction (-2..2 for 3*, -3..3 for 6*) of type Word16 107 flag3 = if set, upsampling rate = 3 (6 otherwise) of type Word16 142 Word16 i, k; 143 Word16 *x1, *x2; 144 const Word16 *c1, *c2; 194 Word16 Interpol_3or6( /* o : interpolated value */ 195 Word16 *pX, /* i : input vector */ 196 Word16 frac, /* i : fraction (-2..2 for 3*, -3..3 for 6*) */ 197 Word16 flag3, /* i : if set, upsampling rate = 3 (6 otherwise) * [all...] |
prm2bits.h | 73 Word16 prm[], /* input : analysis parameters */ 74 Word16 bits[] /* output: serial bits */
|
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/ |
d_plsf_3.cpp | 43 bfi -- Word16 -- bad frame indicator (set to 1 if a bad frame is received) 44 indice -- Pointer to type Word16 -- quantization indices of 49 lsp1_q -- Pointer to type Word16 -- quantized 1st LSP vector Q15 165 Word16 bfi, /* i : bad frame indicator (set to 1 if a */ 167 Word16 * indice, /* i : quantization indices of 3 submatrices, Q0 */ 168 Word16 * lsp1_q, /* o : quantized 1st LSP vector, Q15 */ 172 Word16 i; 173 Word16 temp; 174 Word16 index; 176 Word16 lsf1_r[M] [all...] |
int_lsf.cpp | 105 lsf_old = LSF vector at the 4th SF of past frame (Word16) 106 lsf_new = LSF vector at the 4th SF of present frame (Word16) 107 i_subfr = Current subframe (equal to 0,40,80 or 120) (Word16) 108 lsf_out = interpolated LSF parameters for current subframe (Word16) 152 Word16 lsf_old[], // i : LSF vector at the 4th SF of past frame 153 Word16 lsf_new[], // i : LSF vector at the 4th SF of present frame 154 Word16 i_subfr, // i : Pointer to current sf (equal to 0,40,80 or 120) 155 Word16 lsf_out[] // o : interpolated LSF parameters for current sf 158 Word16 i; 214 Word16 lsf_old[], /* i : LSF vector at the 4th SF of past frame * [all...] |
ec_gains.cpp | 110 extern const Word16 qua_gain_pitch[]; 111 extern const Word16 qua_gain_code[]; 161 Word16 i; 199 Word16 ec_gain_code_reset(ec_gain_codeState *state) 201 Word16 i; 227 state = state of the state machine of type Word16 228 gain_code = pointer to decoded innovation gain of type Word16 265 static const Word16 cdown[7] = 271 Word16 tmp; 272 Word16 qua_ener_MR122 [all...] |
d_gain_c.cpp | 60 index = received quantization index of type Word16 61 code[] = pointer to innovation codevector of type Word16 66 gain_code = pointer to decoded innovation gain of type Word16 179 extern const Word16 qua_gain_code[]; 193 Word16 index, /* i : received quantization index */ 194 Word16 code[], /* i : innovation codevector */ 195 Word16 *gain_code, /* o : decoded innovation gain */ 199 Word16 gcode0, exp, frac; 200 const Word16 *p; 201 Word16 qua_ener_MR122, qua_ener [all...] |
dec_lag3.cpp | 63 index -- Word16 -- received pitch index 64 t0_min -- Word16 -- minimum of search range 65 t0_max -- Word16 -- maximum of search range 66 i_subfr -- Word16 -- subframe flag 67 T0_prev -- Word16 -- integer pitch delay of last subframe 69 flag4 -- Word16 -- flag for encoding with 4 bits 73 T0 -- Pointer to type Word16 -- integer part of pitch lag 74 T0_frac -- Pointer to type Word16 -- fractional part of pitch lag 186 void Dec_lag3(Word16 index, /* i : received pitch index */ 187 Word16 t0_min, /* i : minimum of search range * [all...] |
dec_lag6.cpp | 63 index -- Word16 -- received pitch index 64 pit_min -- Word16 -- minimum pitch lag 65 pit_max -- Word16 -- maximum pitch lag 66 i_subfr -- Word16 -- subframe flag 67 T0 -- Pointer to type Word16 -- integer part of pitch lag 71 T0 -- Pointer to type Word16 -- integer part of pitch lag 72 T0_frac -- Pointer to type Word16 -- fractional part of pitch lag 186 Word16 index, /* input : received pitch index */ 187 Word16 pit_min, /* input : minimum pitch lag */ 188 Word16 pit_max, /* input : maximum pitch lag * [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioStreamInALSA.cpp | 347 memcpy(buffer, mSurroundOutputBuffer, processed_pending * sizeof(Word16)); 348 buffer += processed_pending * sizeof(Word16); 354 (mSurroundOutputBufferIdx - processed_pending) * sizeof(Word16)); 390 SSR_INPUT_FRAME_SIZE * sizeof(Word16), mFp_4ch); 396 (Word16 *)mSurroundInputBuffer); 402 (-read_pending) * sizeof(Word16)); 408 1, SSR_OUTPUT_FRAME_SIZE * sizeof(Word16), mFp_6ch); 414 read = processed * sizeof(Word16); 647 mSurroundInputBuffer = (Word16 *) calloc(2 * SSR_INPUT_FRAME_SIZE, 648 sizeof(Word16)); [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
voAMRWBEnc.c | 47 static Word16 interpol_frac[NB_SUBFR] = {14746, 26214, 31457, 32767}; 50 static Word16 isp_init[M] = 56 static Word16 isf_init[M] = 63 static const Word16 HP_gain[16] = 70 static Word16 synthesis( 71 Word16 Aq[], /* A(z) : quantized Az */ 72 Word16 exc[], /* (i) : excitation at 12kHz */ 73 Word16 Q_new, /* (i) : scaling performed on exc */ 74 Word16 synth16k[], /* (o) : 16kHz synthesis signal */ 79 void Reset_encoder(void *st, Word16 reset_all [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/ |
vad2.h | 155 Word16 pre_emp_mem; 156 Word16 update_cnt; 157 Word16 hyster_cnt; 158 Word16 last_update_cnt; 159 Word16 ch_enrg_long_db[NUM_CHAN]; /* scaled as 7,8 */ 165 Word16 last_normb_shift; /* last block norm shift count */ 167 Word16 tsnr; /* total signal-to-noise ratio in dB (scaled as 7,8) */ 168 Word16 hangover; 169 Word16 burstcount; 170 Word16 fupdate_flag; /* forced update flag from previous frame * [all...] |
gc_pred.h | 97 Word16 past_qua_en[4]; /* normal MA predictor memory, Q10 */ 99 Word16 past_qua_en_MR122[4]; /* MA predictor memory for MR122 mode, Q10 */ 108 Word16 gc_pred_reset(gc_predState *st); 131 Word16 *code, /* i : innovative codebook vector (L_SUBFR) */ 133 Word16 *exp_gcode0, /* o : exponent of predicted gain factor, Q0 */ 134 Word16 *frac_gcode0,/* o : fraction of predicted gain factor Q15 */ 135 Word16 *exp_en, /* o : exponent of innovation energy, Q0 */ 137 Word16 *frac_en, /* o : fraction of innovation energy, Q15 */ 148 Word16 qua_ener_MR122, /* i : quantized energy for update, Q10 */ 150 Word16 qua_ener /* i : quantized energy for update, Q10 * [all...] |
q_plsf.h | 116 Word16 past_rq[M]; /* Past quantized prediction error, Q15 */ 125 Word16 Q_plsf_init(Q_plsfState **st); 132 Word16 Q_plsf_reset(Q_plsfState *st); 145 Word16 *lsp1, /* i : 1st LSP vector Q15 */ 146 Word16 *lsp1_q, /* o : quantized 1st LSP vector Q15 */ 147 Word16 *indice, /* o : quantization indices of 3 vectors Q0 */ 148 Word16 *pred_init_i,/* o : init index for MA prediction in DTX mode */ 154 Word16 *lsp1, /* i : 1st LSP vector, Q15 */ 155 Word16 *lsp2, /* i : 2nd LSP vector, Q15 */ 156 Word16 *lsp1_q, /* o : quantized 1st LSP vector, Q15 * [all...] |
bits2prm.h | 83 Word16 bits[], /* input : serial bits, (244 + bfi) */ 84 Word16 prm[] /* output: analysis parameters, (57+1 parameters) */
|
d_gain_p.h | 71 Word16 d_gain_pitch( /* return value: gain (Q14) */ 73 Word16 index /* i : index of quantization */
|
set_zero.h | 71 Word16 x[], /* (o) : vector to clear */ 72 Word16 L /* (i) : length of vector */
|
d_plsf.h | 102 Word16 past_r_q[M]; /* Past quantized prediction error, Q15 */ 103 Word16 past_lsf_q[M]; /* Past dequantized lsfs, Q15 */ 120 Word16 D_plsf_reset(D_plsfState *st); 151 Word16 bfi, /* i : bad frame indicator (set to 1 if a bad 153 Word16 *indice, /* i : quantization indices of 5 submatrices, Q0 */ 154 Word16 *lsp1_q, /* o : quantized 1st LSP vector (M) Q15 */ 155 Word16 *lsp2_q, /* o : quantized 2nd LSP vector (M) Q15 */ 172 Word16 bfi, /* i : bad frame indicator (set to 1 if a */ 174 Word16 * indice, /* i : quantization indices of 3 submatrices, Q0 */ 175 Word16 * lsp1_q, /* o : quantized 1st LSP vector, Q15 * [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/ |
q_plsf.cpp | 78 Word16 Q_plsf_init(Q_plsfState **state) 110 Word16 Q_plsf_reset(Q_plsfState *state) 112 Word16 i;
|
weight_a.cpp | 100 a = LPC coefficients (Word16) 101 fac = Spectral expansion factors (Word16) 102 a_exp = Spectral expanded LPC coefficients (Word16) 137 Word16 a[], // (i) : a[M+1] LPC coefficients (M=10) 138 const Word16 fac[], // (i) : Spectral expansion factors. 139 Word16 a_exp[] // (o) : Spectral expanded LPC coefficients 142 Word16 i; 176 Word16 a[], /* (i) : a[M+1] LPC coefficients (M=10) */ 177 const Word16 fac[], /* (i) : Spectral expansion factors. */ 178 Word16 a_exp[] /* (o) : Spectral expanded LPC coefficients * [all...] |
bits2prm.cpp | 118 static Word16 Bin2int ( // Reconstructed parameter 119 Word16 no_of_bits, // input : number of bits associated with value 120 Word16 *bitstream // output: address where bits are written 123 Word16 value, i, bit; 162 static Word16 Bin2int( /* Reconstructed parameter */ 163 Word16 no_of_bits, /* input : number of bits associated with value */ 164 Word16 *bitstream /* input: address where bits are read from */ 167 Word16 value; 168 Word16 i; 169 Word16 single_bit [all...] |
vad1.cpp | 103 data -- array of type Word16 -- filter memory 104 in -- array of type Word16 -- input signal 107 data -- array of type Word16 -- filter memory 108 out -- array of type Word16 -- output values, every other 167 Word16 in[], /* i : input signal */ 168 Word16 out[], /* o : output values, every other */ 171 Word16 data[], /* i/o : filter memory */ 175 Word16 temp0; 176 Word16 temp1; 177 Word16 temp2 [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
transform.c | 397 static void shiftMdctDelayBuffer(Word16 *mdctDelayBuffer, /*! start of mdct delay buffer */ 398 Word16 *timeSignal, /*! pointer to new time signal samples, interleaved */ 399 Word16 chIncrement /*! number of channels */ 403 Word16 *srBuf = mdctDelayBuffer; 404 Word16 *dsBuf = mdctDelayBuffer+FRAME_LEN_LONG; 438 static Word16 getScalefactorOfShortVectorStride(const Word16 *vector, /*!< Pointer to input vector */ 439 Word16 len, /*!< Length of input vector */ 440 Word16 stride) /*!< Stride of input vector */ 442 Word16 maxVal = 0 [all...] |
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/ |
lag_wind.tab | 47 static Word16 volag_h[M] = { 65 static Word16 volag_l[M] = {
|