Home
last modified time | relevance | path

Searched refs:variable_duration (Results 1 – 4 of 4) sorted by relevance

/external/libopus/src/
Dopus_demo.c264 int variable_duration=OPUS_FRAMESIZE_ARG; in main() local
539 opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(variable_duration)); in main()
597 variable_duration = OPUS_FRAMESIZE_2_5_MS; in main()
599 variable_duration = OPUS_FRAMESIZE_5_MS; in main()
601 variable_duration = OPUS_FRAMESIZE_10_MS; in main()
603 variable_duration = OPUS_FRAMESIZE_20_MS; in main()
605 variable_duration = OPUS_FRAMESIZE_40_MS; in main()
607 variable_duration = OPUS_FRAMESIZE_60_MS; in main()
609 variable_duration = OPUS_FRAMESIZE_80_MS; in main()
611 variable_duration = OPUS_FRAMESIZE_100_MS; in main()
[all …]
Dopus_private.h65 int variable_duration; member
142 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs);
Dopus_encoder.c82 int variable_duration; member
252 st->variable_duration = OPUS_FRAMESIZE_ARG; in opus_encoder_init()
611 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs) in frame_size_select() argument
616 if (variable_duration == OPUS_FRAMESIZE_ARG) in frame_size_select()
618 … else if (variable_duration >= OPUS_FRAMESIZE_2_5_MS && variable_duration <= OPUS_FRAMESIZE_120_MS) in frame_size_select()
620 if (variable_duration <= OPUS_FRAMESIZE_40_MS) in frame_size_select()
621 new_size = (Fs/400)<<(variable_duration-OPUS_FRAMESIZE_2_5_MS); in frame_size_select()
623 new_size = (variable_duration-OPUS_FRAMESIZE_2_5_MS-2)*Fs/50; in frame_size_select()
2195 frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); in opus_encode_float()
2216 frame_size = frame_size_select(analysis_frame_size, st->variable_duration, st->Fs); in opus_encode()
[all …]
Dopus_multistream_encoder.c457 st->variable_duration = OPUS_FRAMESIZE_ARG; in opus_multistream_encoder_init_impl()
847 frame_size = frame_size_select(analysis_frame_size, st->variable_duration, Fs); in opus_multistream_encode_native()
1271 st->variable_duration = value; in opus_multistream_encoder_ctl_va_list()
1281 *value = st->variable_duration; in opus_multistream_encoder_ctl_va_list()