Lines Matching refs:itheta
696 int itheta; member
706 int itheta=0; in compute_theta() local
740 itheta = stereo_itheta(X, Y, stereo, N, ctx->arch); in compute_theta()
749 itheta = (itheta*(opus_int32)qn+8192)>>14; in compute_theta()
750 if (!stereo && ctx->avoid_split_noise && itheta > 0 && itheta < qn) in compute_theta()
755 int unquantized = celt_udiv((opus_int32)itheta*16384, qn); in compute_theta()
760 itheta = qn; in compute_theta()
762 itheta = 0; in compute_theta()
767 int bias = itheta > 8192 ? 32767/qn : -32767/qn; in compute_theta()
768 down = IMIN(qn-1, IMAX(0, (itheta*(opus_int32)qn + bias)>>14)); in compute_theta()
770 itheta = down; in compute_theta()
772 itheta = down+1; in compute_theta()
780 int x = itheta; in compute_theta()
795 itheta = x; in compute_theta()
800 ec_enc_uint(ec, itheta, qn+1); in compute_theta()
802 itheta = ec_dec_uint(ec, qn+1); in compute_theta()
810 fs = itheta <= (qn>>1) ? itheta + 1 : qn + 1 - itheta; in compute_theta()
811 fl = itheta <= (qn>>1) ? itheta*(itheta + 1)>>1 : in compute_theta()
812 ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
823 itheta = (isqrt32(8*(opus_uint32)fm + 1) - 1)>>1; in compute_theta()
824 fs = itheta + 1; in compute_theta()
825 fl = itheta*(itheta + 1)>>1; in compute_theta()
829 itheta = (2*(qn + 1) in compute_theta()
831 fs = qn + 1 - itheta; in compute_theta()
832 fl = ft - ((qn + 1 - itheta)*(qn + 2 - itheta)>>1); in compute_theta()
838 celt_assert(itheta>=0); in compute_theta()
839 itheta = celt_udiv((opus_int32)itheta*16384, qn); in compute_theta()
842 if (itheta==0) in compute_theta()
852 inv = itheta > 8192 && !ctx->disable_inv; in compute_theta()
872 itheta = 0; in compute_theta()
877 if (itheta == 0) in compute_theta()
883 } else if (itheta == 16384) in compute_theta()
890 imid = bitexact_cos((opus_int16)itheta); in compute_theta()
891 iside = bitexact_cos((opus_int16)(16384-itheta)); in compute_theta()
901 sctx->itheta = itheta; in compute_theta()
974 int itheta; in quant_partition() local
991 itheta = sctx.itheta; in quant_partition()
1002 if (B0>1 && (itheta&0x3fff)) in quant_partition()
1004 if (itheta > 8192) in quant_partition()
1024 if (rebalance > 3<<BITRES && itheta!=0) in quant_partition()
1032 if (rebalance > 3<<BITRES && itheta!=16384) in quant_partition()
1246 int itheta; in quant_band_stereo() local
1269 itheta = sctx.itheta; in quant_band_stereo()
1290 if (itheta != 0 && itheta != 16384) in quant_band_stereo()
1293 c = itheta > 8192; in quant_band_stereo()
1348 if (rebalance > 3<<BITRES && itheta!=0) in quant_band_stereo()
1359 if (rebalance > 3<<BITRES && itheta!=16384) in quant_band_stereo()