Home
last modified time | relevance | path

Searched refs:Word16 (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dacelp.h33 Word16 median5(Word16 x[]);
36 Word16 x[], /* (i) : Input signal */
37 Word16 m, /* (i) : LPC order */
38 Word16 r_h[], /* (o) : Autocorrelations (msb) */
39 Word16 r_l[] /* (o) : Autocorrelations (lsb) */
43 Word16 r_h[], /* (i/o) : Autocorrelations (msb) */
44 Word16 r_l[] /* (i/o) : Autocorrelations (lsb) */
48 Word16 * mem /* output :static memory (18 words) */
52Word16 Rh[], /* (i) : Rh[M+1] Vector of autocorrelations (msb) */
53Word16 Rl[], /* (i) : Rl[M+1] Vector of autocorrelations (lsb) */
[all …]
Dcod_main.h35 Word16 mem_decim[2 * L_FILT16k]; /* speech decimated filter memory */
36 Word16 mem_sig_in[6]; /* hp50 filter memory */
37 Word16 mem_preemph; /* speech preemph filter memory */
38 Word16 old_speech[L_TOTAL - L_FRAME]; /* old speech vector at 12.8kHz */
39 Word16 old_wsp[PIT_MAX / OPL_DECIM]; /* old decimated weighted speech vector */
40 Word16 old_exc[PIT_MAX + L_INTERPOL]; /* old excitation vector */
41 Word16 mem_levinson[M + 2]; /* levinson routine memory */
42 Word16 ispold[M]; /* old isp (immittance spectral pairs) */
43 Word16 ispold_q[M]; /* quantized old isp */
44 Word16 past_isfq[M]; /* past isf quantizer */
[all …]
Dbasic_op.h28 #define MAX_16 (Word16)+32767 /* 0x7fff */
29 #define MIN_16 (Word16)-32768 /* 0x8000 */
36 #define abs_s(x) ((Word16)(((x) != MIN_16) ? (((x) >= 0) ? (x) : (-(x))) : MAX_16)) /* Short…
40 #define negate(var1) ((Word16)(((var1) == MIN_16) ? MAX_16 : (-(var1)))) /* Short…
44 #define extract_h(a) ((Word16)(a >> 16))
45 #define extract_l(x) (Word16)((x))
51 #define vo_shr_r(var1, var2) ((var1+((Word16)(1L<<(var2-1))))>>var2)
55 #define vo_extract_l(a) ((Word16)(a))
68 static_vo Word16 add (Word16 var1, Word16 var2); /* Short add,1 */
69 static_vo Word16 sub (Word16 var1, Word16 var2); /* Short sub,1 */
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/
Dbasic_op.h31 #define MAX_16 (Word16)0x7fff
32 #define MIN_16 (Word16)0x8000
36 #define abs_s(x) ((Word16)(((x) != MIN_16) ? (((x) >= 0) ? (x) : (-(x))) : MAX_16))
51 #define negate(var1) ((Word16)(((var1) == MIN_16) ? MAX_16 : (-(var1))))
63 __inline Word16 saturate(Word32 L_var1);
65 Word16 saturate(Word32 L_var1);
70 __inline Word16 shl (Word16 var1, Word16 var2);
72 Word16 shl (Word16 var1, Word16 var2);
77 __inline Word16 shr (Word16 var1, Word16 var2);
79 Word16 shr (Word16 var1, Word16 var2);
[all …]
Dbasicop2.c60 Word16 saturate(Word32 L_var1) in saturate()
62 Word16 var_out; in saturate()
116 Word16 add (Word16 var1, Word16 var2) in add()
118 Word16 var_out; in add()
162 Word16 sub(Word16 var1, Word16 var2) in sub()
164 Word16 var_out; in sub()
261 Word16 shl (Word16 var1, Word16 var2) in shl()
263 Word16 var_out; in shl()
270 var_out = shr (var1, (Word16)-var2); in shl()
276 if ((var2 > 15 && var1 != 0) || (result != (Word32) ((Word16) result))) in shl()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc2_9pf.cpp121 Word16 subNr, /* i : subframe number */
122 Word16 dn[], /* i : correlation between target and h[] */
123 Word16 rr[][L_CODE],/* i : matrix of autocorrelation */
124 Word16 codvec[], /* o : algebraic codebook vector */
128 static Word16 build_code(
129 Word16 subNr, /* i : subframe number */
130 Word16 codvec[], /* i : algebraic codebook vector */
131 Word16 dn_sign[], /* i : sign of dn[] */
132 Word16 cod[], /* o : algebraic (fixed) codebook excitation */
133 Word16 h[], /* i : impulse response of weighted synthesis filter */
[all …]
Dc2_11pf.cpp112 #define _1_2 (Word16)(32768L/2)
113 #define _1_4 (Word16)(32768L/4)
114 #define _1_8 (Word16)(32768L/8)
115 #define _1_16 (Word16)(32768L/16)
122 Word16 dn[], /* i : correlation between target and h[] */
123 Word16 rr[][L_CODE],/* i : matrix of autocorrelation */
124 Word16 codvec[], /* o : algebraic codebook vector */
128 static Word16 build_code(
129 Word16 codvec[], /* i : algebraic codebook vector */
130 Word16 dn_sign[], /* i : sign of dn[] */
[all …]
Dc3_14pf.cpp92 Word16 dn[], /* i : correlation between target and h[] */
93 Word16 dn2[], /* i : maximum of corr. in each track. */
94 Word16 rr[][L_CODE],/* i : matrix of autocorrelation */
95 Word16 codvec[], /* o : algebraic codebook vector */
99 static Word16 build_code(
100 Word16 codvec[], /* i : algebraic codebook vector */
101 Word16 dn_sign[], /* i : sign of dn[] */
102 Word16 cod[], /* o : algebraic (fixed) codebook excitation */
103 Word16 h[], /* i : impulse response of weighted synthesis filter */
104 Word16 y[], /* o : filtered fixed codebook excitation */
[all …]
Dpitch_fr.cpp128 Word16 max_frac_lag; /* lag up to which fractional lags are used */
129 Word16 flag3; /* enable 1/3 instead of 1/6 fract. resolution */
130 Word16 first_frac; /* first fractional to check */
131 Word16 last_frac; /* last fractional to check */
132 Word16 delta_int_low; /* integer lag below TO to start search from */
133 Word16 delta_int_range; /* integer range around T0 */
134 Word16 delta_frc_low; /* fractional below T0 */
135 Word16 delta_frc_range; /* fractional range around T0 */
136 Word16 pit_min; /* minimum pitch */
312 static void Norm_Corr(Word16 exc[], in Norm_Corr()
[all …]
Dqgain475.cpp90 static const Word16 table_gain_MR475[MR475_VQ_SIZE*4] =
476 const Word16 *p, /* i : pointer to selected quantizer table entry */ in MR475_quant_store_results()
477 Word16 gcode0, /* i : predicted CB gain, Q(14 - exp_gcode0) */ in MR475_quant_store_results()
478 Word16 exp_gcode0, /* i : exponent of predicted CB gain, Q0 */ in MR475_quant_store_results()
479 Word16 *gain_pit, /* o : Pitch gain, Q14 */ in MR475_quant_store_results()
480 Word16 *gain_cod, /* o : Code gain, Q1 */ in MR475_quant_store_results()
484 Word16 g_code; in MR475_quant_store_results()
485 Word16 exp; in MR475_quant_store_results()
486 Word16 frac; in MR475_quant_store_results()
487 Word16 tmp; in MR475_quant_store_results()
[all …]
Dc4_17pf.cpp101 Word16 dn[], /* i : correlation between target and h[] */
102 Word16 dn2[], /* i : maximum of corr. in each track. */
103 Word16 rr[][L_CODE],/* i : matrix of autocorrelation */
104 Word16 codvec[], /* o : algebraic codebook vector */
108 static Word16 build_code(
109 Word16 codvec[], /* i : algebraic codebook vector */
110 Word16 dn_sign[], /* i : sign of dn[] */
111 Word16 cod[], /* o : algebraic (fixed) codebook excitation */
112 Word16 h[], /* i : impulse response of weighted synthesis filter */
113 Word16 y[], /* o : filtered fixed codebook excitation */
[all …]
Dpitch_ol.cpp293 static Word16 Lag_max( /* o : lag found */ in Lag_max()
295 Word16 scal_sig[], /* i : scaled signal. */ in Lag_max()
296 Word16 scal_fac, /* i : scaled signal factor. */ in Lag_max()
297 Word16 scal_flag, /* i : if 1 use EFR compatible scaling */ in Lag_max()
298 Word16 L_frame, /* i : length of frame to compute pitch */ in Lag_max()
299 Word16 lag_max, /* i : maximum lag */ in Lag_max()
300 Word16 lag_min, /* i : minimum lag */ in Lag_max()
301 Word16 *cor_max, /* o : normalized correlation of selected lag */ in Lag_max()
308 static Word16 Lag_max( /* o : lag found */ in Lag_max()
311 Word16 scal_sig[], /* i : scaled signal. */ in Lag_max()
[all …]
Dc8_31pf.cpp93 #define NEG_SIGN (Word16) (-32768L)
189 Word16 codvec[], /* i : position of pulses */ in build_code()
190 Word16 sign[], /* i : sign of d[n] */ in build_code()
191 Word16 cod[], /* o : innovative code vector */ in build_code()
192 Word16 h[], /* i : impulse response of weighted synthesis filter*/ in build_code()
193 Word16 y[], /* o : filtered innovative code */ in build_code()
194 Word16 sign_indx[], /* o : signs of 4 pulses (signs only) */ in build_code()
195 Word16 pos_indx[], /* o : position index of 8 pulses(position only) */ in build_code()
199 Word16 i; in build_code()
200 Word16 j; in build_code()
[all …]
Dlevinson.cpp171 Word16 Levinson_init(LevinsonState **state) in Levinson_init()
279 Word16 Levinson_reset(LevinsonState *state) in Levinson_reset()
281 Word16 i; in Levinson_reset()
632 Word16 Levinson( in Levinson()
634 Word16 Rh[], /* i : Rh[m+1] Vector of autocorrelations (msb) */ in Levinson()
635 Word16 Rl[], /* i : Rl[m+1] Vector of autocorrelations (lsb) */ in Levinson()
636 Word16 A[], /* o : A[m] LPC coefficients (m = 10) */ in Levinson()
637 Word16 rc[], /* o : rc[4] First 4 reflection coefficients */ in Levinson()
641 Word16 i; in Levinson()
642 Word16 j; in Levinson()
[all …]
Dqgain795.cpp118 extern const Word16 qua_gain_code[NB_QUA_CODE*3];
207 Word16 exp_gcode0, /* i : predicted CB gain (exponent), Q0 */ in MR795_gain_code_quant3()
208 Word16 gcode0, /* i : predicted CB gain (norm.), Q14 */ in MR795_gain_code_quant3()
209 Word16 g_pitch_cand[], /* i : Pitch gain candidates (3), Q14 */ in MR795_gain_code_quant3()
210 Word16 g_pitch_cind[], /* i : Pitch gain cand. indices (3), Q0 */ in MR795_gain_code_quant3()
211 Word16 frac_coeff[], /* i : coefficients (5), Q15 */ in MR795_gain_code_quant3()
212 Word16 exp_coeff[], /* i : energy coefficients (5), Q0 */ in MR795_gain_code_quant3()
214 Word16 *gain_pit, /* o : Pitch gain, Q14 */ in MR795_gain_code_quant3()
215 Word16 *gain_pit_ind, /* o : Pitch gain index, Q0 */ in MR795_gain_code_quant3()
216 Word16 *gain_cod, /* o : Code gain, Q1 */ in MR795_gain_code_quant3()
[all …]
Dgain_q.h116 Word16 sf0_exp_gcode0;
117 Word16 sf0_frac_gcode0;
118 Word16 sf0_exp_target_en;
119 Word16 sf0_frac_target_en;
120 Word16 sf0_exp_coeff[5];
121 Word16 sf0_frac_coeff[5];
122 Word16 *gain_idx_ptr;
133 Word16 gainQuant_init(gainQuantState **st);
139 Word16 gainQuant_reset(gainQuantState *st);
151 Word16 res[], /* i : LP residual, Q0 */
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/inc/
Dqc_data.h53 Word16 instanceTag;
54 Word16 nChannelsInEl;
55 Word16 ChannelIndex[MAX_CHANNELS];
67 Word16 maxBits; /* maximum number of bits in reservoir */
68 Word16 averageBits; /* average number of bits we should use */
69 Word16 bitRes;
70 Word16 meanPe;
72 Word16 maxBitFac;
80 Word16 *quantSpec; /* [FRAME_LEN_LONG]; */
82 Word16 *scf; /* [MAX_GROUPED_SFB]; */
[all …]
Dpsy_configuration.h32 Word16 sfbCnt;
33 Word16 sfbActive; /* number of sf bands containing energy after lowpass */
34 const Word16 *sfbOffset;
38 Word16 maxAllowedIncreaseFactor; /* preecho control */
39 Word16 minRemainingThresholdFactor;
41 Word16 lowpassLine;
42 Word16 sampRateIdx;
45 Word16 ratio;
46 Word16 sfbMaskLowFactor[MAX_SFB_LONG];
47 Word16 sfbMaskHighFactor[MAX_SFB_LONG];
[all …]
Ddyn_bits.h41 Word16 codeBook;
42 Word16 sfbStart;
43 Word16 sfbCnt;
44 Word16 sectionBits;
53 Word16 blockType;
54 Word16 noOfGroups;
55 Word16 sfbCnt;
56 Word16 maxSfbPerGroup;
57 Word16 sfbPerGroup;
58 Word16 noOfSections;
[all …]
Dinterface.h45 Word16 msDigest;
46 Word16 msMask[MAX_GROUPED_SFB];
51 Word16 sfbCnt;
52 Word16 sfbPerGroup;
53 Word16 maxSfbPerGroup;
54 Word16 windowSequence;
55 Word16 windowShape;
56 Word16 groupingMask;
57 Word16 sfbOffsets[MAX_GROUPED_SFB+1];
58 Word16 mdctScale;
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
Dq_plsf_3.cpp140 extern const Word16 mean_lsf_3[];
142 extern const Word16 pred_fac_3[];
144 extern const Word16 dico1_lsf_3[];
145 extern const Word16 dico2_lsf_3[];
146 extern const Word16 dico3_lsf_3[];
148 extern const Word16 mr515_3_lsf[];
149 extern const Word16 mr795_1_lsf[];
151 extern const Word16 past_rq_init[];
276 static Word16 Vq_subvec4( /* o: quantization index, Q0 */ in Vq_subvec4()
277 Word16 * lsf_r1, /* i: 1st LSF residual vector, Q15 */ in Vq_subvec4()
[all …]
Dq_plsf_5.cpp124 extern const Word16 mean_lsf_5[];
126 extern const Word16 dico1_lsf_5[];
127 extern const Word16 dico2_lsf_5[];
128 extern const Word16 dico3_lsf_5[];
129 extern const Word16 dico4_lsf_5[];
130 extern const Word16 dico5_lsf_5[];
205 static Word16 Vq_subvec( /* o : quantization index, Q0 */ in Vq_subvec()
206 Word16 *lsf_r1, /* i : 1st LSF residual vector, Q15 */ in Vq_subvec()
207 Word16 *lsf_r2, /* i : 2nd LSF residual vector, Q15 */ in Vq_subvec()
208 const Word16 *dico, /* i : quantization codebook, Q15 */ in Vq_subvec()
[all …]
Daz_lsp.cpp243 static Word16 Chebps(Word16 x, in Chebps()
244 Word16 f[], /* (n) */ in Chebps()
245 Word16 n, in Chebps()
248 Word16 i; in Chebps()
249 Word16 cheb; in Chebps()
250 Word16 b1_h; in Chebps()
251 Word16 b1_l; in Chebps()
254 Word16 *p_f = &f[1]; in Chebps()
266 b1_h = (Word16)(t0 >> 16); in Chebps()
267 b1_l = (Word16)((t0 >> 1) - (b1_h << 15)); in Chebps()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dvad1.h102 Word16 bckr_est[COMPLEN]; /* background noise estimate */
103 Word16 ave_level[COMPLEN]; /* averaged input components for stationary */
105 Word16 old_level[COMPLEN]; /* input levels of the previous frame */
106 Word16 sub_level[COMPLEN]; /* input levels calculated at the end of
108 Word16 a_data5[3][2]; /* memory for the filter bank */
109 Word16 a_data3[5]; /* memory for the filter bank */
111 Word16 burst_count; /* counts length of a speech burst */
112 Word16 hang_count; /* hangover counter */
113 Word16 stat_count; /* stationary counter */
118 Word16 vadreg; /* flags for intermediate VAD decisions */
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Ddtx_dec.h108 Word16 since_last_sid;
109 Word16 true_sid_period_inv;
110 Word16 log_en;
111 Word16 old_log_en;
113 Word16 lsp[M];
114 Word16 lsp_old[M];
116 Word16 lsf_hist[M*DTX_HIST_SIZE];
117 Word16 lsf_hist_ptr;
118 Word16 lsf_hist_mean[M*DTX_HIST_SIZE];
119 Word16 log_pg_mean;
[all …]

12345678910>>...19