Home
last modified time | relevance | path

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

/external/libopus/src/
Dopus_multistream_encoder.c824 opus_int32 max_data_bytes, in opus_multistream_encode_native() argument
895 if (max_data_bytes < smallest_packet) in opus_multistream_encode_native()
917 max_data_bytes = IMIN(max_data_bytes, 3*rate_sum/(3*8*Fs/frame_size)); in opus_multistream_encode_native()
920 max_data_bytes = IMIN(max_data_bytes, IMAX(smallest_packet, in opus_multistream_encode_native()
1013 curr_max = max_data_bytes - tot_size; in opus_multistream_encode_native()
1040 …data, max_data_bytes-tot_size, s != st->layout.nb_streams-1, !vbr && s == st->layout.nb_streams-1); in opus_multistream_encode_native()
1098 opus_int32 max_data_bytes in opus_multistream_encode() argument
1102 pcm, frame_size, data, max_data_bytes, 16, downmix_int, 0); in opus_multistream_encode()
1111 opus_int32 max_data_bytes in opus_multistream_encode_float() argument
1115 pcm, frame_size, data, max_data_bytes, 16, downmix_float, 1); in opus_multistream_encode_float()
[all …]
Dopus_encoder.c512 static opus_int32 user_bitrate_to_bitrate(OpusEncoder *st, int frame_size, int max_data_bytes) in user_bitrate_to_bitrate() argument
518 return max_data_bytes*8*st->Fs/frame_size; in user_bitrate_to_bitrate()
966 opus_int32 max_data_bytes; /* Max number of bytes we're allowed to use */ in opus_encode_native() local
979 max_data_bytes = IMIN(1276, out_data_bytes); in opus_encode_native()
985 || max_data_bytes<=0 in opus_encode_native()
1049 st->bitrate_bps = user_bitrate_to_bitrate(st, frame_size, max_data_bytes); in opus_encode_native()
1058 cbrBytes = IMIN( (3*st->bitrate_bps/8 + frame_rate3/2)/frame_rate3, max_data_bytes); in opus_encode_native()
1060 max_data_bytes = cbrBytes; in opus_encode_native()
1062 if (max_data_bytes<3 || st->bitrate_bps < 3*frame_rate*8 in opus_encode_native()
1063 || (frame_rate<50 && (max_data_bytes*frame_rate<300 || st->bitrate_bps < 2400))) in opus_encode_native()
[all …]
/external/libopus/include/
Dopus_multistream.h382 opus_int32 max_data_bytes
427 opus_int32 max_data_bytes
Dopus.h268 opus_int32 max_data_bytes
309 opus_int32 max_data_bytes