Lines Matching refs:max_data_bytes

506 static opus_int32 user_bitrate_to_bitrate(OpusEncoder *st, int frame_size, int max_data_bytes)  in user_bitrate_to_bitrate()  argument
512 return max_data_bytes*8*st->Fs/frame_size; in user_bitrate_to_bitrate()
953 opus_int32 max_data_bytes; /* Max number of bytes we're allowed to use */ in opus_encode_native() local
964 max_data_bytes = IMIN(1276, out_data_bytes); in opus_encode_native()
970 || max_data_bytes<=0 in opus_encode_native()
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()
1061 max_data_bytes = cbrBytes; in opus_encode_native()
1063 max_rate = frame_rate*max_data_bytes*8; in opus_encode_native()
1170 if (max_data_bytes < (frame_rate > 50 ? 12000 : 8000)*frame_size / (st->Fs * 8)) in opus_encode_native()
1213 … redundancy_bytes = IMIN(257, max_data_bytes*(opus_int32)(st->Fs/200)/(frame_size+st->Fs/200)); in opus_encode_native()
1420 …bytes_target = IMIN(max_data_bytes-redundancy_bytes, st->bitrate_bps * frame_size / (st->Fs * 8)) … in opus_encode_native()
1424 ec_enc_init(&enc, data, max_data_bytes-1); in opus_encode_native()
1576 nBytes = IMIN(1275, max_data_bytes-1-redundancy_bytes); in opus_encode_native()
1717 nb_compr_bytes = max_data_bytes-1-redundancy_bytes; in opus_encode_native()
1767 …t->mode != MODE_CELT_ONLY && ec_tell(&enc)+17+20*(st->mode == MODE_HYBRID) <= 8*(max_data_bytes-1)) in opus_encode_native()
1777 max_redundancy = (max_data_bytes-1)-nb_compr_bytes; in opus_encode_native()
1779 max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+7)>>3); in opus_encode_native()
1804 nb_compr_bytes = IMIN((max_data_bytes-1)-redundancy_bytes, nb_compr_bytes); in opus_encode_native()
1898 if (ec_tell(&enc) > (max_data_bytes-1)*8) in opus_encode_native()
1900 if (max_data_bytes < 2) in opus_encode_native()
1922 if (opus_packet_pad(data, ret, max_data_bytes) != OPUS_OK) in opus_encode_native()
1928 ret = max_data_bytes; in opus_encode_native()
1938 unsigned char *data, opus_int32 max_data_bytes) in opus_encode_float() argument
1958 …ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, pcm, analysis_frame_size, 0… in opus_encode_float()
1985 unsigned char *data, opus_int32 max_data_bytes) in opus_encode() argument
2005 …ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, pcm, analysis_frame_size, 0… in opus_encode()