Home
last modified time | relevance | path

Searched refs:fine_quant (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/third_party/opus/src/celt/
Dquant_bands.c361 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, in… in quant_fine_energy() argument
368 opus_int16 frac = 1<<fine_quant[i]; in quant_fine_energy()
369 if (fine_quant[i] <= 0) in quant_fine_energy()
377 q2 = (error[i+c*m->nbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]); in quant_fine_energy()
385 ec_enc_bits(enc, q2, fine_quant[i]); in quant_fine_energy()
387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy()
389 offset = (q2+.5f)*(1<<(14-fine_quant[i]))*(1.f/16384) - .5f; in quant_fine_energy()
398 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_prior… in quant_energy_finalise() argument
407 if (fine_quant[i] >= MAX_FINE_BITS || fine_priority[i]!=prio) in quant_energy_finalise()
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise()
[all …]
Dquant_bands.h56 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, in…
58 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_prior…
62 …rgy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, ec_dec *dec, in…
64 …ise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, int *fine_prior…
Dcelt_decoder.c663 VARDECL(int, fine_quant);
877 ALLOC(fine_quant, nbEBands, int);
890 fine_quant, fine_priority, C, LM, dec, 0, 0, 0);
892 unquant_fine_energy(mode, st->start, st->end, oldBandE, fine_quant, dec, C);
908 fine_quant, fine_priority, len*8-ec_tell(dec), dec, C);
Dcelt_encoder.c1259 VARDECL(int, fine_quant); in celt_encode_with_ec()
1925 ALLOC(fine_quant, nbEBands, int); in celt_encode_with_ec()
1955 fine_quant, fine_priority, C, LM, enc, 1, st->lastCodedBands, signalBandwidth); in celt_encode_with_ec()
1961 quant_fine_energy(mode, st->start, st->end, oldBandE, error, fine_quant, enc, C); in celt_encode_with_ec()
1977 …quant_energy_finalise(mode, st->start, st->end, oldBandE, error, fine_quant, fine_priority, nbComp… in celt_encode_with_ec()
/external/libopus/celt/
Dquant_bands.c361 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, in… in quant_fine_energy() argument
368 opus_int16 frac = 1<<fine_quant[i]; in quant_fine_energy()
369 if (fine_quant[i] <= 0) in quant_fine_energy()
377 q2 = (error[i+c*m->nbEBands]+QCONST16(.5f,DB_SHIFT))>>(DB_SHIFT-fine_quant[i]); in quant_fine_energy()
385 ec_enc_bits(enc, q2, fine_quant[i]); in quant_fine_energy()
387 …offset = SUB16(SHR32(SHL32(EXTEND32(q2),DB_SHIFT)+QCONST16(.5f,DB_SHIFT),fine_quant[i]),QCONST16(.… in quant_fine_energy()
389 offset = (q2+.5f)*(1<<(14-fine_quant[i]))*(1.f/16384) - .5f; in quant_fine_energy()
398 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_prior… in quant_energy_finalise() argument
407 if (fine_quant[i] >= MAX_FINE_BITS || fine_priority[i]!=prio) in quant_energy_finalise()
416 offset = SHR16(SHL16(q2,DB_SHIFT)-QCONST16(.5f,DB_SHIFT),fine_quant[i]+1); in quant_energy_finalise()
[all …]
Dquant_bands.h56 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, ec_enc *enc, in…
58 …*m, int start, int end, opus_val16 *oldEBands, opus_val16 *error, int *fine_quant, int *fine_prior…
62 …rgy(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, ec_dec *dec, in…
64 …ise(const CELTMode *m, int start, int end, opus_val16 *oldEBands, int *fine_quant, int *fine_prior…
Dcelt_decoder.c663 VARDECL(int, fine_quant);
877 ALLOC(fine_quant, nbEBands, int);
890 fine_quant, fine_priority, C, LM, dec, 0, 0, 0);
892 unquant_fine_energy(mode, st->start, st->end, oldBandE, fine_quant, dec, C);
908 fine_quant, fine_priority, len*8-ec_tell(dec), dec, C);
Dcelt_encoder.c1259 VARDECL(int, fine_quant); in celt_encode_with_ec()
1925 ALLOC(fine_quant, nbEBands, int); in celt_encode_with_ec()
1955 fine_quant, fine_priority, C, LM, enc, 1, st->lastCodedBands, signalBandwidth); in celt_encode_with_ec()
1961 quant_fine_energy(mode, st->start, st->end, oldBandE, error, fine_quant, enc, C); in celt_encode_with_ec()
1977 …quant_energy_finalise(mode, st->start, st->end, oldBandE, error, fine_quant, fine_priority, nbComp… in celt_encode_with_ec()