Searched refs:bitrate_bps (Results 1 – 5 of 5) sorted by relevance
/external/libopus/src/ |
D | opus_demo.c | 227 opus_int32 bitrate_bps=0; in main() local 333 bitrate_bps = (opus_int32)atol(argv[args]); in main() 488 sweep_min = bitrate_bps; in main() 534 opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); in main() 592 (long)sampling_rate, bitrate_bps*0.001, in main() 640 … while (newsize < sampling_rate/25 && bitrate_bps-fabs(sweep_bps) <= 3*12*sampling_rate/newsize) in main() 709 bitrate_bps += sweep_bps; in main() 712 if (bitrate_bps > sweep_max) in main() 714 else if (bitrate_bps < sweep_min) in main() 718 if (bitrate_bps<1000) in main() [all …]
|
D | opus_multistream_encoder.c | 78 opus_int32 bitrate_bps; member 420 st->bitrate_bps = OPUS_AUTO; in opus_multistream_encoder_init_impl() 612 if (st->bitrate_bps > st->layout.nb_channels*40000) in surround_rate_allocation() 615 stream_offset = st->bitrate_bps/st->layout.nb_channels/2; in surround_rate_allocation() 627 if (st->bitrate_bps==OPUS_AUTO) in surround_rate_allocation() 630 } else if (st->bitrate_bps==OPUS_BITRATE_MAX) in surround_rate_allocation() 644 …channel_rate = 256*(st->bitrate_bps-lfe_offset*nb_lfe-stream_offset*(nb_coupled+nb_uncoupled))/tot… in surround_rate_allocation() 718 st->variable_duration, channels, Fs, st->bitrate_bps, in opus_multistream_encode_native() 760 max_data_bytes = IMIN(max_data_bytes, 3*st->bitrate_bps/(3*8*Fs/frame_size)); in opus_multistream_encode_native() 775 equiv_rate = st->bitrate_bps; in opus_multistream_encode_native() [all …]
|
D | opus_encoder.c | 78 opus_int32 bitrate_bps; member 222 st->bitrate_bps = 3000+Fs*channels; in opus_encoder_init() 822 int variable_duration, int C, opus_int32 Fs, int bitrate_bps, in compute_frame_size() argument 833 LM = optimize_framesize(analysis_pcm, frame_size, C, Fs, bitrate_bps, in compute_frame_size() 1031 st->bitrate_bps = user_bitrate_to_bitrate(st, frame_size, max_data_bytes); in opus_encode_native() 1034 if (max_data_bytes<3 || st->bitrate_bps < 3*frame_rate*8 in opus_encode_native() 1035 || (frame_rate<50 && (max_data_bytes*frame_rate<300 || st->bitrate_bps < 2400))) in opus_encode_native() 1059 cbrBytes = IMIN( (st->bitrate_bps + 4*frame_rate)/(8*frame_rate) , max_data_bytes); in opus_encode_native() 1060 st->bitrate_bps = cbrBytes * (8*frame_rate); in opus_encode_native() 1066 equiv_rate = st->bitrate_bps - (40*st->channels+20)*(st->Fs/frame_size - 50); in opus_encode_native() [all …]
|
D | opus_private.h | 98 int variable_duration, int C, opus_int32 Fs, int bitrate_bps,
|
/external/libopus/tests/ |
D | test_opus_encode.c | 132 opus_int32 bitrate_bps; in run_test1() local 390 bitrate_bps=512000; in run_test1() 407 opus_encoder_ctl(enc, OPUS_SET_BITRATE(bitrate_bps)); in run_test1() 452 bitrate_bps=((fast_rand()%508000+4000)+bitrate_bps)>>1; in run_test1()
|