• Home
  • Raw
  • Download

Lines Matching refs:balance

44    spx_word32_t balance;      /**< Left/right balance info */  member
86 stereo->balance = 65536; in speex_stereo_state_reset()
93 stereo->balance = 1.0f; in speex_stereo_state_reset()
112 float balance, e_ratio; in speex_encode_stereo() local
120 balance=(e_left+1)/(e_right+1); in speex_encode_stereo()
127 balance=4*log(balance); in speex_encode_stereo()
130 if (balance>0) in speex_encode_stereo()
134 balance=floor(.5+fabs(balance)); in speex_encode_stereo()
135 if (balance>30) in speex_encode_stereo()
136 balance=31; in speex_encode_stereo()
138 speex_bits_pack(bits, (int)balance, 5); in speex_encode_stereo()
150 spx_word32_t balance, e_ratio; in speex_encode_stereo_int() local
190 balance = DIV32(largest, ADD32(smallest, 1)); in speex_encode_stereo_int()
191 if (balance > 32767) in speex_encode_stereo_int()
192 balance = 32767; in speex_encode_stereo_int()
193 balance_id = scal_quant(EXTRACT16(balance), balance_bounds, 32); in speex_encode_stereo_int()
195 balance=(largest+1.)/(smallest+1.); in speex_encode_stereo_int()
196 balance=4*log(balance); in speex_encode_stereo_int()
197 balance_id=floor(.5+fabs(balance)); in speex_encode_stereo_int()
224 spx_word32_t balance; in speex_decode_stereo() local
230 balance=stereo->balance; in speex_decode_stereo()
234 …ight = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)))); in speex_decode_stereo()
235 e_left = SHR32(MULT16_16(spx_sqrt(balance), e_right), 8); in speex_decode_stereo()
251 spx_word32_t balance; in speex_decode_stereo_int() local
257 balance=stereo->balance; in speex_decode_stereo_int()
261 …ight = DIV32(QCONST32(1., 22), spx_sqrt(MULT16_32_Q15(e_ratio, ADD32(QCONST32(1., 16), balance)))); in speex_decode_stereo_int()
262 e_left = SHR32(MULT16_16(spx_sqrt(balance), e_right), 8); in speex_decode_stereo_int()
288 stereo->balance = exp(sign*.25*dexp); in speex_std_stereo_request_handler()
290 stereo->balance = spx_exp(MULT16_16(sign, SHL16(dexp, 9))); in speex_std_stereo_request_handler()