• Home
  • Raw
  • Download

Lines Matching refs:int16_t

73 #define SPL_MUL_16_16(a, b) ((int32_t) (((int16_t)(a)) * ((int16_t)(b))))
77 int16_t lsf[LSF_NSPLIT*LPC_N_MAX];
78 int16_t cb_index[CB_NSTAGES*(NASUB_MAX + 1)];
79 int16_t gain_index[CB_NSTAGES*(NASUB_MAX + 1)];
80 int16_t ifm;
81 int16_t state_first;
82 int16_t idx[STATE_SHORT_LEN_30MS];
83 int16_t firstbits;
84 int16_t start;
100 int16_t nasub;
101 int16_t nsub;
103 int16_t no_of_words;
104 int16_t no_of_bytes;
105 int16_t lsfdeq[LPC_FILTERORDER*LPC_N_MAX];
106 int16_t lsfold[LPC_FILTERORDER];
107 int16_t syntMem[LPC_FILTERORDER];
108 int16_t lsfdeqold[LPC_FILTERORDER];
109 int16_t weightdenum[(LPC_FILTERORDER + 1) * NSUB_MAX];
110 int16_t syntdenum[NSUB_MAX * (LPC_FILTERORDER + 1)];
111 int16_t old_syntdenum[NSUB_MAX * (LPC_FILTERORDER + 1)];
112 int16_t enh_buf[ENH_BUFL+ENH_BUFL_FILTEROVERHEAD];
113 int16_t enh_period[ENH_NBLOCKS_TOT];
114 int16_t prevResidual[NSUB_MAX*SUBL];
115 int16_t decresidual[BLOCKL_MAX];
116 int16_t plc_residual[BLOCKL_MAX + LPC_FILTERORDER];
117 int16_t seed;
118 int16_t prevPLI;
119 int16_t prevScale;
120 int16_t prevLag;
121 int16_t per_square;
122 int16_t prev_lpc[LPC_FILTERORDER + 1];
123 int16_t plc_lpc[LPC_FILTERORDER + 1];
124 int16_t hpimemx[2];
125 int16_t hpimemy[4];
268 static void index_conv(int16_t *index) in index_conv()
281 static void lsf_dequantization(int16_t *lsfdeq, int16_t *index, int16_t lpc_n) in lsf_dequantization()
309 static void lsf_check_stability(int16_t *lsf, int dim, int nb_vectors) in lsf_check_stability()
332 static void lsf_interpolate(int16_t *out, int16_t *in1, in lsf_interpolate()
333 int16_t *in2, int16_t coef, in lsf_interpolate()
342 static void lsf2lsp(int16_t *lsf, int16_t *lsp, int order) in lsf2lsp()
344 int16_t diff, freq; in lsf2lsp()
365 static void get_lsp_poly(int16_t *lsp, int32_t *f) in get_lsp_poly()
367 int16_t high, low; in get_lsp_poly()
392 static void lsf2poly(int16_t *a, int16_t *lsf) in lsf2poly()
395 int16_t lsp[10]; in lsf2poly()
419 static void lsp_interpolate2polydec(int16_t *a, int16_t *lsf1, in lsp_interpolate2polydec()
420 int16_t *lsf2, int coef, int length) in lsp_interpolate2polydec()
422 int16_t lsftmp[LPC_FILTERORDER]; in lsp_interpolate2polydec()
428 static void bw_expand(int16_t *out, const int16_t *in, const int16_t *coef, int length) in bw_expand()
437 static void lsp_interpolate(int16_t *syntdenum, int16_t *weightdenum, in lsp_interpolate()
438 int16_t *lsfdeq, int16_t length, in lsp_interpolate()
441 int16_t lp[LPC_FILTERORDER + 1], *lsfdeq2; in lsp_interpolate()
479 static void filter_mafq12(int16_t *in_ptr, int16_t *out_ptr, in filter_mafq12()
480 int16_t *B, int16_t B_length, in filter_mafq12()
481 int16_t length) in filter_mafq12()
486 const int16_t *b_ptr = &B[0]; in filter_mafq12()
487 const int16_t *x_ptr = &in_ptr[i]; in filter_mafq12()
499 static void filter_arfq12(const int16_t *data_in, in filter_arfq12()
500 int16_t *data_out, in filter_arfq12()
501 const int16_t *coefficients, in filter_arfq12()
521 static void state_construct(int16_t ifm, int16_t *idx, in state_construct()
522 int16_t *synt_denum, int16_t *Out_fix, in state_construct()
523 int16_t len) in state_construct()
526 int16_t maxVal; in state_construct()
527 int16_t *tmp1, *tmp2, *tmp3; in state_construct()
529 int16_t numerator[1 + LPC_FILTERORDER]; in state_construct()
530 int16_t sampleValVec[2 * STATE_SHORT_LEN_30MS + LPC_FILTERORDER]; in state_construct()
531 int16_t sampleMaVec[2 * STATE_SHORT_LEN_30MS + LPC_FILTERORDER]; in state_construct()
532 int16_t *sampleVal = &sampleValVec[LPC_FILTERORDER]; in state_construct()
533 int16_t *sampleMa = &sampleMaVec[LPC_FILTERORDER]; in state_construct()
534 int16_t *sampleAr = &sampleValVec[LPC_FILTERORDER]; in state_construct()
554 (*tmp1) = (int16_t) ((SPL_MUL_16_16(maxVal, ilbc_state[(*tmp2)]) + 2097152) >> 22); in state_construct()
562 (*tmp1) = (int16_t) ((SPL_MUL_16_16(maxVal, ilbc_state[(*tmp2)]) + 262144) >> 19); in state_construct()
570 (*tmp1) = (int16_t) ((SPL_MUL_16_16(maxVal, ilbc_state[(*tmp2)]) + 65536) >> 17); in state_construct()
600 static int16_t gain_dequantization(int index, int max_in, int stage) in gain_dequantization()
602 int16_t scale = FFMAX(1638, FFABS(max_in)); in gain_dequantization()
607 static void vector_rmultiplication(int16_t *out, const int16_t *in, in vector_rmultiplication()
608 const int16_t *win, in vector_rmultiplication()
615 static void vector_multiplication(int16_t *out, const int16_t *in, in vector_multiplication()
616 const int16_t *win, int length, in vector_multiplication()
623 static void add_vector_and_shift(int16_t *out, const int16_t *in1, in add_vector_and_shift()
624 const int16_t *in2, int length, in add_vector_and_shift()
631 static void create_augmented_vector(int index, int16_t *buffer, int16_t *cbVec) in create_augmented_vector()
633 int16_t cbVecTmp[4]; in create_augmented_vector()
635 int16_t ilow = index - interpolation_length; in create_augmented_vector()
646 static void get_codebook(int16_t * cbvec, /* (o) Constructed codebook vector */ in get_codebook()
647 int16_t * mem, /* (i) Codebook buffer */ in get_codebook()
648 int16_t index, /* (i) Codebook index */ in get_codebook()
649 int16_t lMem, /* (i) Length of codebook buffer */ in get_codebook()
650 int16_t cbveclen /* (i) Codebook vector length */ in get_codebook()
653 int16_t k, base_size; in get_codebook()
654 int16_t lag; in get_codebook()
656 int16_t tempbuff2[SUBL + 5]; in get_codebook()
676 k = (int16_t) SPL_MUL_16_16(2, (index - (lMem - cbveclen + 1))) + cbveclen; in get_codebook()
682 int16_t memIndTest; in get_codebook()
697 … filter_mafq12(&mem[memIndTest + 4], cbvec, (int16_t *) kCbFiltersRev, CB_FILTERLEN, cbveclen); in get_codebook()
705 …filter_mafq12(&mem[memIndTest + 7], tempbuff2, (int16_t *) kCbFiltersRev, CB_FILTERLEN, (int16_t) … in get_codebook()
716 int16_t *decvector, /* (o) Decoded vector */ in construct_vector()
717 int16_t *index, /* (i) Codebook indices */ in construct_vector()
718 int16_t *gain_index, /* (i) Gain quantization indices */ in construct_vector()
719 int16_t *mem, /* (i) Buffer for codevector construction */ in construct_vector()
720 int16_t lMem, /* (i) Length of buffer */ in construct_vector()
721 int16_t veclen) in construct_vector()
723 int16_t gain[CB_NSTAGES]; in construct_vector()
724 int16_t cbvec0[SUBL]; in construct_vector()
725 int16_t cbvec1[SUBL]; in construct_vector()
726 int16_t cbvec2[SUBL]; in construct_vector()
728 int16_t *gainPtr; in construct_vector()
754 static void reverse_memcpy(int16_t *dest, int16_t *source, int length) in reverse_memcpy()
756 int16_t* destPtr = dest; in reverse_memcpy()
757 int16_t* sourcePtr = source; in reverse_memcpy()
766 int16_t *decresidual, in decode_residual()
767 int16_t *syntdenum) in decode_residual()
769 int16_t meml_gotten, Nfor, Nback, diff, start_pos; in decode_residual()
770 int16_t subcount, subframe; in decode_residual()
771int16_t *reverseDecresidual = s->enh_buf; /* Reversed decoded data, used for decoding backw… in decode_residual()
772 int16_t *memVec = s->prevResidual; in decode_residual()
773 int16_t *mem = &memVec[CB_HALFFILTERLEN]; /* Memory for codebook */ in decode_residual()
789 memset(mem, 0, (int16_t) (CB_MEML - s->state_short_len) * 2); in decode_residual()
794 …ncbits->cb_index, encbits->gain_index, mem + CB_MEML - ST_MEM_L_TBL, ST_MEM_L_TBL, (int16_t) diff); in decode_residual()
800 memset(mem, 0, (int16_t) (CB_MEML - meml_gotten) * 2); in decode_residual()
845 memset(mem, 0, (int16_t) (CB_MEML - meml_gotten) * 2); in decode_residual()
865 static int16_t max_abs_value_w16(const int16_t* vector, int length) in max_abs_value_w16()
883 static int16_t get_size_in_bits(uint32_t n) in get_size_in_bits()
885 int16_t bits; in get_size_in_bits()
902 static int32_t scale_dot_product(const int16_t *v1, const int16_t *v2, int length, int scaling) in scale_dot_product()
912 static void correlation(int32_t *corr, int32_t *ener, int16_t *buffer, in correlation()
913 int16_t lag, int16_t blen, int16_t srange, int16_t scale) in correlation()
915 int16_t *w16ptr; in correlation()
930 static int16_t norm_w32(int32_t a) in norm_w32()
941 static int32_t div_w32_w16(int32_t num, int16_t den) in div_w32_w16()
949 static void do_plc(int16_t *plc_residual, /* (o) concealed residual */ in do_plc()
950 int16_t *plc_lpc, /* (o) concealed LP parameters */ in do_plc()
951 int16_t PLI, /* (i) packet loss indicator in do_plc()
953 int16_t *decresidual, /* (i) decoded residual */ in do_plc()
954 int16_t *lpc, /* (i) decoded LPC (only used for no PL) */ in do_plc()
955 int16_t inlag, /* (i) pitch lag */ in do_plc()
958 int16_t i, pick; in do_plc()
961 int16_t max, cross_square_max, cross_square; in do_plc()
962 int16_t j, lag, tmp1, tmp2, randlag; in do_plc()
963 int16_t shift1, shift2, shift3, shift_max; in do_plc()
964 int16_t scale3; in do_plc()
965 int16_t corrLen; in do_plc()
967 int16_t use_gain; in do_plc()
968 int16_t tot_gain; in do_plc()
969 int16_t max_perSquare; in do_plc()
970 int16_t scale1, scale2; in do_plc()
971 int16_t totscale; in do_plc()
973 int16_t denom; in do_plc()
974 int16_t pitchfact; in do_plc()
975 int16_t use_lag; in do_plc()
977 int16_t randvec[BLOCKL_MAX]; in do_plc()
1012 …cross_square_max = (int16_t) SPL_MUL_16_16_RSFT(SPL_SHIFT_W32(cross, -shift_max), SPL_SHIFT_W32(cr… in do_plc()
1021 …cross_square = (int16_t) SPL_MUL_16_16_RSFT(SPL_SHIFT_W32(cross_comp, -shift1), SPL_SHIFT_W32(cros… in do_plc()
1203 static int xcorr_coeff(int16_t *target, int16_t *regressor, in xcorr_coeff()
1204 int16_t subl, int16_t searchLen, in xcorr_coeff()
1205 int16_t offset, int16_t step) in xcorr_coeff()
1207 int16_t maxlag; in xcorr_coeff()
1208 int16_t pos; in xcorr_coeff()
1209 int16_t max; in xcorr_coeff()
1210 int16_t cross_corr_scale, energy_scale; in xcorr_coeff()
1211 int16_t cross_corr_sg_mod, cross_corr_sg_mod_max; in xcorr_coeff()
1213 int16_t cross_corr_mod, energy_mod, enery_mod_max; in xcorr_coeff()
1214 int16_t *tp, *rp; in xcorr_coeff()
1215 int16_t *rp_beg, *rp_end; in xcorr_coeff()
1216 int16_t totscale, totscale_max; in xcorr_coeff()
1217 int16_t scalediff; in xcorr_coeff()
1231 max = max_abs_value_w16(regressor, (int16_t) (subl + searchLen - 1)); in xcorr_coeff()
1235 max = max_abs_value_w16(&regressor[-searchLen], (int16_t) (subl + searchLen - 1)); in xcorr_coeff()
1262 cross_corr_mod = (int16_t) SPL_SHIFT_W32(cross_corr, cross_corr_scale); in xcorr_coeff()
1264 energy_mod = (int16_t) SPL_SHIFT_W32(energy, energy_scale); in xcorr_coeff()
1267 cross_corr_sg_mod = (int16_t) SPL_MUL_16_16_RSFT(cross_corr_mod, cross_corr_mod, 16); in xcorr_coeff()
1315 static void hp_output(int16_t *signal, const int16_t *ba, int16_t *y, in hp_output()
1316 int16_t *x, int16_t len) in hp_output()
1364 int16_t *plc_data = &s->plc_residual[LPC_FILTERORDER]; in ilbc_decode_frame()
1398 int16_t lag, i; in ilbc_decode_frame()
1431 hp_output((int16_t *)frame->data[0], hp_out_coeffs, in ilbc_decode_frame()