Home
last modified time | relevance | path

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

/external/libopus/src/
Dopus_demo.c268 int variable_duration=OPUS_FRAMESIZE_ARG; in main() local
416 variable_duration = OPUS_FRAMESIZE_VARIABLE; in main()
546 opus_encoder_ctl(enc, OPUS_SET_EXPERT_FRAME_DURATION(variable_duration)); in main()
604 if (variable_duration!=OPUS_FRAMESIZE_VARIABLE) in main()
607 variable_duration = OPUS_FRAMESIZE_2_5_MS; in main()
609 variable_duration = OPUS_FRAMESIZE_5_MS; in main()
611 variable_duration = OPUS_FRAMESIZE_10_MS; in main()
613 variable_duration = OPUS_FRAMESIZE_20_MS; in main()
615 variable_duration = OPUS_FRAMESIZE_40_MS; in main()
617 variable_duration = OPUS_FRAMESIZE_60_MS; in main()
[all …]
Dopus_private.h95 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs);
98 int variable_duration, int C, opus_int32 Fs, int bitrate_bps,
Dopus_encoder.c77 int variable_duration; member
232 st->variable_duration = OPUS_FRAMESIZE_ARG; in opus_encoder_init()
800 opus_int32 frame_size_select(opus_int32 frame_size, int variable_duration, opus_int32 Fs) in frame_size_select() argument
805 if (variable_duration == OPUS_FRAMESIZE_ARG) in frame_size_select()
807 else if (variable_duration == OPUS_FRAMESIZE_VARIABLE) in frame_size_select()
809 else if (variable_duration >= OPUS_FRAMESIZE_2_5_MS && variable_duration <= OPUS_FRAMESIZE_60_MS) in frame_size_select()
810 new_size = IMIN(3*Fs/50, (Fs/400)<<(variable_duration-OPUS_FRAMESIZE_2_5_MS)); in frame_size_select()
822 int variable_duration, int C, opus_int32 Fs, int bitrate_bps, in compute_frame_size() argument
830 if (variable_duration == OPUS_FRAMESIZE_VARIABLE && frame_size >= Fs/200) in compute_frame_size()
841 frame_size = frame_size_select(frame_size, variable_duration, Fs); in compute_frame_size()
[all …]
Dopus_multistream_encoder.c76 int variable_duration; member
422 st->variable_duration = OPUS_FRAMESIZE_ARG; in opus_multistream_encoder_init_impl()
647 if (st->variable_duration==OPUS_FRAMESIZE_VARIABLE && frame_size != Fs/50) in surround_rate_allocation()
718 st->variable_duration, channels, Fs, st->bitrate_bps, in opus_multistream_encode_native()
1123 st->variable_duration = value; in opus_multistream_encoder_ctl()
1133 *value = st->variable_duration; in opus_multistream_encoder_ctl()
/external/libopus/celt/
Dcelt_encoder.c77 int variable_duration; member
1136 int variable_duration, int lfe, int has_surround_mask, opus_val16 surround_masking, in compute_vbr() argument
1180 tf_calibration = variable_duration==OPUS_FRAMESIZE_VARIABLE ? in compute_vbr()
1488 …&& st->complexity >= 5 && !(st->consec_transient && LM!=3 && st->variable_duration==OPUS_FRAMESIZE… in celt_encode_with_ec()
1857 st->variable_duration, st->lfe, st->energy_mask!=NULL, surround_masking, in celt_encode_with_ec()
2270 st->variable_duration = value; in opus_custom_encoder_ctl()