Home
last modified time | relevance | path

Searched refs:int16 (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwbdecoder_acelp.h68 void isf_extrapolation(int16 HfIsf[]);
70 void Init_Lagconc(int16 lag_hist[]);
72 int16 gain_hist[], /* (i) : Gain history */
73 int16 lag_hist[], /* (i) : Subframe size */
74 int16 * T0,
75 int16 * old_T0,
76 int16 * seed,
77 int16 unusable_frame
81 int16 * sig_in, /* input : postfilter input signal */
82 int16 * sig_out, /* in/out: postfilter output signal */
[all …]
Ddtx.h92 int16 isf_hist[M * DTX_HIST_SIZE];
93 int16 log_en_hist[DTX_HIST_SIZE];
94 int16 hist_ptr;
95 int16 log_en_index;
96 int16 cng_seed;
99 int16 dtxHangoverCount;
100 int16 decAnaElapsedCount;
130 int16 since_last_sid;
131 int16 true_sid_period_inv;
132 int16 log_en;
[all …]
De_pv_amrwbdec.h88 int16 old_exc[PIT_MAX + L_INTERPOL]; /* old excitation vector */
89 int16 ispold[M]; /* old isp (immittance spectral pairs)*/
90 int16 isfold[M]; /* old isf (frequency domain) */
91 int16 isf_buf[L_MEANBUF * M]; /* isf buffer(frequency domain) */
92 int16 past_isfq[M]; /* past isf quantizer */
93 int16 tilt_code; /* tilt of code */
94 int16 Q_old; /* old scaling factor */
95 int16 Qsubfr[4]; /* old maximum scaling factor */
97 int16 mem_syn_hi[M]; /* modified synthesis memory (MSB) */
98 int16 mem_syn_lo[M]; /* modified synthesis memory (LSB) */
[all …]
Dpvamrwb_math_op.h81 int16 * exp /* (i/o) : exponent (value = frac x 2^exponent) */
84 int16 exponant, /* (i) Q0 : Integer part. (range: 0<=val<=30) */
85 int16 fraction /* (i) Q15 : Fractionnal part. (range: 0.0<=val<1.0) */
88 int16 x[], /* (i) 12bits: x vector */
89 int16 y[], /* (i) 12bits: y vector */
90 int16 lg, /* (i) : vector length */
91 int16 * exp /* (o) : exponent of result (0..+30) */
97 int16 *exponent, /* (o) : Integer part of Log2. (range: 0<=val<=30) */
98 int16 *fraction /* (o) : Fractional part of Log2. (range: 0<=val<1)*/
103 int16 exp, /* (i) : norm_l (L_x) */
[all …]
Dpvamrwb_math_op.cpp94 int16 mult_int16_r(int16 var1, int16 var2) in mult_int16_r()
106 return ((int16)L_product_arr); in mult_int16_r()
152 int16 shr_rnd(int16 var1, int16 var2) in shr_rnd()
154 int16 var_out; in shr_rnd()
156 var_out = (int16)(var1 >> (var2 & 0xf)); in shr_rnd()
159 if ((var1 & ((int16) 1 << (var2 - 1))) != 0) in shr_rnd()
204 int16 div_16by16(int16 var1, int16 var2) in div_16by16()
207 int16 var_out = 0; in div_16by16()
208 int16 iteration; in div_16by16()
281 int16 exp; in one_ov_sqrt()
[all …]
Dq_pulse.h66 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]);
67 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]);
68 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]);
69 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]);
70 void dec_4p_4N(int32 index, int16 N, int16 offset, int16 pos[]);
71 void dec_5p_5N(int32 index, int16 N, int16 offset, int16 pos[]);
72 void dec_6p_6N_2(int32 index, int16 N, int16 offset, int16 pos[]);
Dpvamrwbdecoder.h102 int16 prev_ft;
103 int16 prev_mode;
119 void pvDecoder_AmrWb_Init(void **spd_state, void *st, int16 ** ScratchMem);
122 int16 mode, /* input : used mode */
123 int16 prms[], /* input : parameter vector */
124 int16 synth16k[], /* output: synthesis speech */
125 int16 * frame_length, /* output: lenght of the frame */
127 int16 frame_type, /* input : received frame type */
128 int16 ScratchMem[]
131 void pvDecoder_AmrWb_Reset(void *st, int16 reset_all);
[all …]
Dpvamrwbdecoder_basic_op_cequivalent.h88 __inline int16 add_int16(int16 var1, int16 var2) in add_int16()
97 return ((int16)(L_sum)); in add_int16()
127 __inline int16 sub_int16(int16 var1, int16 var2) in sub_int16()
136 return ((int16)(L_diff)); in sub_int16()
165 __inline int16 mult_int16(int16 var1, int16 var2) in mult_int16()
176 return ((int16)L_product); in mult_int16()
294 __inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32()
342 __inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32()
376 __inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32()
401 __inline int16 amr_wb_round(int32 L_var1) in amr_wb_round()
[all …]
Dhoming_amr_wb_dec.cpp127 int16 dhf_test(int16 input_frame[], int32 mode, int16 nparms);
137 static const int16 prmnofsf[NUM_OF_SPMODES] =
145 static const int16 dfh_M7k[PRMN_7k] =
152 static const int16 dfh_M9k[PRMN_9k] =
159 static const int16 dfh_M12k[PRMN_12k] =
168 static const int16 dfh_M14k[PRMN_14k] =
177 static const int16 dfh_M16k[PRMN_16k] =
187 static const int16 dfh_M18k[PRMN_18k] =
198 static const int16 dfh_M20k[PRMN_20k] =
209 static const int16 dfh_M23k[PRMN_23k] =
[all …]
Doversamp_12k8_to_16k.cpp116 int16 * sig_d, /* input: signal to oversampling */
117 int16 * sig_u, /* output: oversampled signal */
118 int16 L_frame /* input: length of output */
122 int16 AmrWbInterpol( /* return result of interpolation */
123 int16 * x, /* input vector */
124 const int16 * fir, /* filter coefficient */
125 int16 nb_coef /* number of coefficients */
144 const int16 fir_up[4][24] =
189 void oversamp_12k8_to_16k_init(int16 mem[]) in oversamp_12k8_to_16k_init()
200 int16 sig12k8[], /* input: signal to oversampling */ in oversamp_12k8_to_16k()
[all …]
Ddec_alg_codebook.cpp118 void dec_1p_N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_1p_N1()
120 int16 pos1; in dec_1p_N1()
145 void dec_2p_2N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_2p_2N1()
147 int16 pos1, pos2, tmp; in dec_2p_2N1()
155 pos1 = (int16)(add_int32((shr_int32(index, N) & mask), (int32)(offset))); in dec_2p_2N1()
158 pos2 = add_int16((int16)(index & mask), offset); /* pos2 = ((index & mask) + offset); */ in dec_2p_2N1()
192 void dec_3p_3N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_3p_3N1()
194 int16 j, tmp; in dec_3p_3N1()
213 dec_2p_2N1(idx, (int16)(N - 1), j, pos); in dec_3p_3N1()
229 void dec_4p_4N1(int32 index, int16 N, int16 offset, int16 pos[]) in dec_4p_4N1()
[all …]
Dpvamrwbdecoder_basic_op_gcc_armv5.h59 static inline int16 sub_int16(int16 var1, int16 var2) in sub_int16()
76 return (int16)L_var_out; in sub_int16()
80 static inline int16 add_int16(int16 var1, int16 var2) in add_int16()
97 return (int16)L_var_out; in add_int16()
101 static inline int32 mul_32by16(int16 hi, int16 lo, int16 n) in mul_32by16()
155 static inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32()
174 static inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32()
193 static inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32()
210 static inline int16 mult_int16(int16 var1, int16 var2) in mult_int16()
223 return (int16)L_var_out; in mult_int16()
[all …]
Dmime_io.h74 extern const int16 unpacked_size[16];
77 extern const int16 packed_size[16];
80 extern const int16 unused_size[16];
84 extern const int16 sort_660[132];
86 extern const int16 sort_885[177];
88 extern const int16 sort_1265[253];
90 extern const int16 sort_1425[285];
92 extern const int16 sort_1585[317];
94 extern const int16 sort_1825[365];
96 extern const int16 sort_1985[397];
[all …]
Dlagconceal.cpp101 void insertion_sort(int16 array[], int16 n);
102 void insert(int16 array[], int16 num, int16 x);
124 void Init_Lagconc(int16 lag_hist[]) in Init_Lagconc()
126 int16 i; in Init_Lagconc()
139 int16 gain_hist[], /* (i) : Gain history */ in lagconceal()
140 int16 lag_hist[], /* (i) : Subframe size */ in lagconceal()
141 int16 * T0, in lagconceal()
142 int16 * old_T0, in lagconceal()
143 int16 * seed, in lagconceal()
144 int16 unusable_frame in lagconceal()
[all …]
Dsynthesis_amr_wb.cpp116 const int16 HP_gain[16] =
137 int16 Aq[], /* A(z) : quantized Az */ in synthesis_amr_wb()
138 int16 exc[], /* (i) : excitation at 12kHz */ in synthesis_amr_wb()
139 int16 Q_new, /* (i) : scaling performed on exc */ in synthesis_amr_wb()
140 int16 synth16k[], /* (o) : 16kHz synthesis signal */ in synthesis_amr_wb()
141 int16 prms, /* (i) : parameter */ in synthesis_amr_wb()
142 int16 HfIsf[], in synthesis_amr_wb()
143 int16 nb_bits, in synthesis_amr_wb()
144 int16 newDTXState, in synthesis_amr_wb()
146 int16 bfi, /* (i) : bad frame indicator */ in synthesis_amr_wb()
[all …]
Ddec_gain2_amr_wb.cpp119 const int16 pdown_unusable[7] = {32767, 31130, 29491, 24576, 7537, 1638, 328};
120 const int16 cdown_unusable[7] = {32767, 16384, 8192, 8192, 8192, 4915, 3277};
122 const int16 pdown_usable[7] = {32767, 32113, 31457, 24576, 7537, 1638, 328};
123 const int16 cdown_usable[7] = {32767, 32113, 32113, 32113, 32113, 32113, 22938};
127 const int16 pred[PRED_ORDER] = {4096, 3277, 2458, 1638};
145 void dec_gain2_amr_wb_init(int16 * mem) in dec_gain2_amr_wb_init()
170 int16 index, /* (i) : index of quantization. */ in dec_gain2_amr_wb()
171 int16 nbits, /* (i) : number of bits (6 or 7) */ in dec_gain2_amr_wb()
172 int16 code[], /* (i) Q9 : Innovative vector. */ in dec_gain2_amr_wb()
173 int16 L_subfr, /* (i) : Subframe lenght. */ in dec_gain2_amr_wb()
[all …]
Dpvamrwbdecoder_basic_op_armv5.h62 __inline int16 add_int16(int16 var1, int16 var2) in add_int16()
79 __inline int16 sub_int16(int16 var1, int16 var2) in sub_int16()
108 __inline int32 mac_16by16_to_int32(int32 L_var3, int16 var1, int16 var2) in mac_16by16_to_int32()
132 __inline int32 msu_16by16_from_int32(int32 L_var3, int16 var1, int16 var2) in msu_16by16_from_int32()
145 __inline int32 mul_16by16_to_int32(int16 var1, int16 var2) in mul_16by16_to_int32()
157 __inline int16 mult_int16(int16 var1, int16 var2) in mult_int16()
170 __inline int16 amr_wb_round(int32 L_var1) in amr_wb_round()
184 __inline int16 amr_wb_shl1_round(int32 L_var1) in amr_wb_shl1_round()
197 __inline int32 mul_32by16(int16 hi, int16 lo, int16 n) in mul_32by16()
212 __inline int32 fxp_mac_16by16(const int16 var1, const int16 var2, int32 L_add) in fxp_mac_16by16()
[all …]
Dqpisf_2s_tab.cpp43 const int16 mean_isf[ORDER] =
69 const int16 dico1_isf[SIZE_BK1*9] =
334 const int16 dico2_isf[SIZE_BK2*7] =
600 const int16 dico21_isf[SIZE_BK21*3] =
676 const int16 dico22_isf[SIZE_BK22*3] =
815 const int16 dico23_isf[SIZE_BK23*3] =
953 const int16 dico24_isf[SIZE_BK24*3] =
995 const int16 dico25_isf[SIZE_BK25*4] =
1048 const int16 dico21_isf_36b[SIZE_BK21_36b*5] =
1181 const int16 dico22_isf_36b[SIZE_BK22_36b*4] =
[all …]
Dmime_io.cpp161 const int16 unpacked_size[16] =
170 const int16 packed_size[16] = {17, 23, 32, 36, 40, 46, 50, 58,
175 const int16 unused_size[16] = {4, 7, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, 0, 0};
179 const int16 sort_660[132] =
197 const int16 sort_885[177] =
219 const int16 sort_1265[253] =
249 const int16 sort_1425[285] =
282 const int16 sort_1585[317] =
318 const int16 sort_1825[365] =
359 const int16 sort_1985[397] =
[all …]
Dqpisf_2s.h86 extern const int16 mean_isf[ORDER];
87 extern const int16 dico1_isf[SIZE_BK1*9];
88 extern const int16 dico2_isf[SIZE_BK2*7];
89 extern const int16 dico21_isf[SIZE_BK21*3];
90 extern const int16 dico22_isf[SIZE_BK22*3];
91 extern const int16 dico23_isf[SIZE_BK23*3];
92 extern const int16 dico24_isf[SIZE_BK24*3];
93 extern const int16 dico25_isf[SIZE_BK25*4];
94 extern const int16 dico21_isf_36b[SIZE_BK21_36b*5];
95 extern const int16 dico22_isf_36b[SIZE_BK22_36b*4];
[all …]
Dsynthesis_amr_wb.h77 int16 Aq[], /* A(z) : quantized Az */
78 int16 exc[], /* (i) : excitation at 12kHz */
79 int16 Q_new, /* (i) : scaling performed on exc */
80 int16 synth16k[], /* (o) : 16kHz synthesis signal */
81 int16 prms, /* (i) : parameter */
82 int16 HfIsf[],
83 int16 nb_bits,
84 int16 newDTXState,
86 int16 bfi, /* (i) : bad frame indicator */
87 int16 * ScratchMemory
Disp_az.cpp107 void Get_isp_pol(int16 * isp, int32 * f, int16 n);
108 void Get_isp_pol_16kHz(int16 * isp, int32 * f, int16 n);
134 int16 isp[], /* (i) Q15 : Immittance spectral pairs */ in Isp_Az()
135 int16 a[], /* (o) Q12 : predictor coefficients (order=M) */ in Isp_Az()
136 int16 m, /* (i) : order */ in Isp_Az()
137 int16 adaptive_scaling /* (i) 0 : adaptive scaling disabled */ in Isp_Az()
141 int16 i, j; in Isp_Az()
143 int16 nc; in Isp_Az()
146 int16 q, q_sug; in Isp_Az()
218 a[i] = (int16)((t0 >> 12) + ((t0 >> 11) & 1)); in Isp_Az()
[all …]
Dpred_lt4.cpp112 const int16 inter4_2[UP_SAMP][ 2*L_INTERPOL2] =
163 int16 exc[], /* in/out: excitation buffer */ in Pred_lt4()
164 int16 T0, /* input : integer pitch lag */ in Pred_lt4()
165 int16 frac, /* input : fraction of lag */ in Pred_lt4()
166 int16 L_subfr /* input : subframe size */ in Pred_lt4()
169 int16 i, j, *pt_exc; in Pred_lt4()
176 const int16 *pt_inter4_2; in Pred_lt4()
200 int16 tmp1 = pt_exc[i ]; in Pred_lt4()
201 int16 tmp2 = pt_exc[i+1]; in Pred_lt4()
202 int16 tmp3 = pt_exc[i+2]; in Pred_lt4()
[all …]
Dqpisf_2s.cpp131 int16 * indice, /* input: quantization indices */ in Dpisf_2s_46b()
132 int16 * isf_q, /* output: quantized ISF in frequency domain (0..0.5) */ in Dpisf_2s_46b()
133 int16 * past_isfq,/* i/0 : past ISF quantizer */ in Dpisf_2s_46b()
134 int16 * isfold, /* input : past quantized ISF */ in Dpisf_2s_46b()
135 int16 * isf_buf, /* input : isf buffer */ in Dpisf_2s_46b()
136 int16 bfi, /* input : Bad frame indicator */ in Dpisf_2s_46b()
137 int16 enc_dec in Dpisf_2s_46b()
140 int16 ref_isf[M]; in Dpisf_2s_46b()
141 int16 i, j, tmp; in Dpisf_2s_46b()
227 int16 * indice, /* input: quantization indices */ in Dpisf_2s_36b()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Didct.h48 void idctrow0(int16 *blk, uint8 *pred, uint8 *dst, int width);
49 void idctrow1(int16 *blk, uint8 *pred, uint8 *dst, int width);
50 void idctrow2(int16 *blk, uint8 *pred, uint8 *dst, int width);
51 void idctrow3(int16 *blk, uint8 *pred, uint8 *dst, int width);
52 void idctrow4(int16 *blk, uint8 *pred, uint8 *dst, int width);
53 void idctcol0(int16 *blk);
54 void idctcol1(int16 *blk);
55 void idctcol2(int16 *blk);
56 void idctcol3(int16 *blk);
57 void idctcol4(int16 *blk);
[all …]

1234