Home
last modified time | relevance | path

Searched refs:equiv_rate (Results 1 – 3 of 3) sorted by relevance

/external/libopus/src/
Dopus_encoder.c1089 opus_int32 equiv_rate; in opus_encode_native() local
1295 equiv_rate = compute_equiv_rate(st->bitrate_bps, st->channels, st->Fs/frame_size, in opus_encode_native()
1331 st->stream_channels = (equiv_rate > stereo_threshold) ? 2 : 1; in opus_encode_native()
1338 equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, in opus_encode_native()
1383 st->mode = (equiv_rate >= threshold) ? MODE_CELT_ONLY: MODE_SILK_ONLY; in opus_encode_native()
1445 equiv_rate = compute_equiv_rate(st->bitrate_bps, st->stream_channels, st->Fs/frame_size, in opus_encode_native()
1487 if (equiv_rate >= threshold) in opus_encode_native()
1532 if (equiv_rate <= 18000*st->stream_channels && st->mode == MODE_CELT_ONLY) in opus_encode_native()
1534 else if (equiv_rate <= 24000*st->stream_channels && st->mode == MODE_CELT_ONLY) in opus_encode_native()
1536 else if (equiv_rate <= 30000*st->stream_channels) in opus_encode_native()
[all …]
Dopus_multistream_encoder.c900 opus_int32 equiv_rate; in opus_multistream_encode_native() local
901 equiv_rate = st->bitrate_bps; in opus_multistream_encode_native()
903 equiv_rate -= 60*(Fs/frame_size - 50)*st->layout.nb_channels; in opus_multistream_encode_native()
904 if (equiv_rate > 10000*st->layout.nb_channels) in opus_multistream_encode_native()
906 else if (equiv_rate > 7000*st->layout.nb_channels) in opus_multistream_encode_native()
908 else if (equiv_rate > 5000*st->layout.nb_channels) in opus_multistream_encode_native()
/external/libopus/celt/
Dcelt_encoder.c789 int intensity, opus_val16 surround_trim, opus_int32 equiv_rate, int arch) in alloc_trim_analysis() argument
799 if (equiv_rate < 64000) { in alloc_trim_analysis()
801 } else if (equiv_rate < 80000) { in alloc_trim_analysis()
802 opus_int32 frac = (equiv_rate-64000) >> 10; in alloc_trim_analysis()
1475 opus_int32 equiv_rate; in celt_encode_with_ec() local
1574 equiv_rate = ((opus_int32)nbCompressedBytes*8*50 >> (3-LM)) - (40*C+20)*((400>>LM) - 50); in celt_encode_with_ec()
1576 equiv_rate = IMIN(equiv_rate, st->bitrate - (40*C+20)*((400>>LM) - 50)); in celt_encode_with_ec()
2032 st->intensity = hysteresis_decision((opus_val16)(equiv_rate/1000), in celt_encode_with_ec()
2047 st->intensity, surround_trim, equiv_rate, st->arch); in celt_encode_with_ec()
2078 target = compute_vbr(mode, &st->analysis, base_target, LM, equiv_rate, in celt_encode_with_ec()
[all …]