• Home
  • Raw
  • Download

Lines Matching refs:max_data_bytes

546 static opus_int32 user_bitrate_to_bitrate(OpusEncoder *st, int frame_size, int max_data_bytes)  in user_bitrate_to_bitrate()  argument
552 return max_data_bytes*8*st->Fs/frame_size; in user_bitrate_to_bitrate()
1019 static int compute_redundancy_bytes(opus_int32 max_data_bytes, opus_int32 bitrate_bps, int frame_ra… in compute_redundancy_bytes() argument
1036 available_bits = max_data_bytes*8 - 2*base_bits; in compute_redundancy_bytes()
1076 opus_int32 max_data_bytes; /* Max number of bytes we're allowed to use */ in opus_encode_native() local
1092 max_data_bytes = IMIN(1276, out_data_bytes); in opus_encode_native()
1095 if (frame_size <= 0 || max_data_bytes <= 0) in opus_encode_native()
1102 if (max_data_bytes==1 && st->Fs==(frame_size*10)) in opus_encode_native()
1206 st->bitrate_bps = user_bitrate_to_bitrate(st, frame_size, max_data_bytes); in opus_encode_native()
1215 cbrBytes = IMIN( (12*st->bitrate_bps/8 + frame_rate12/2)/frame_rate12, max_data_bytes); in opus_encode_native()
1218 max_data_bytes = IMAX(1, cbrBytes); in opus_encode_native()
1220 if (max_data_bytes<3 || st->bitrate_bps < 3*frame_rate*8 in opus_encode_native()
1221 || (frame_rate<50 && (max_data_bytes*frame_rate<300 || st->bitrate_bps < 2400))) in opus_encode_native()
1271 max_data_bytes = IMAX(max_data_bytes, ret); in opus_encode_native()
1278 ret = opus_packet_pad(data, ret, max_data_bytes); in opus_encode_native()
1280 ret = max_data_bytes; in opus_encode_native()
1287 max_rate = frame_rate*max_data_bytes*8; in opus_encode_native()
1398 if (max_data_bytes < (frame_rate > 50 ? 9000 : 6000)*frame_size / (st->Fs * 8)) in opus_encode_native()
1615 …redundancy_bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->strea… in opus_encode_native()
1621 …bytes_target = IMIN(max_data_bytes-redundancy_bytes, st->bitrate_bps * frame_size / (st->Fs * 8)) … in opus_encode_native()
1625 ec_enc_init(&enc, data, max_data_bytes-1); in opus_encode_native()
1776 st->silk_mode.maxBits = (max_data_bytes-1)*8; in opus_encode_native()
1867 …redundancy_bytes = compute_redundancy_bytes(max_data_bytes, st->bitrate_bps, frame_rate, st->strea… in opus_encode_native()
1973 …t->mode != MODE_CELT_ONLY && ec_tell(&enc)+17+20*(st->mode == MODE_HYBRID) <= 8*(max_data_bytes-1)) in opus_encode_native()
1986 max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+8+3+7)>>3); in opus_encode_native()
1989 max_redundancy = (max_data_bytes-1)-((ec_tell(&enc)+7)>>3); in opus_encode_native()
2014 nb_compr_bytes = (max_data_bytes-1)-redundancy_bytes; in opus_encode_native()
2149 if (ec_tell(&enc) > (max_data_bytes-1)*8) in opus_encode_native()
2151 if (max_data_bytes < 2) in opus_encode_native()
2173 if (opus_packet_pad(data, ret, max_data_bytes) != OPUS_OK) in opus_encode_native()
2178 ret = max_data_bytes; in opus_encode_native()
2188 unsigned char *data, opus_int32 max_data_bytes) in opus_encode_float() argument
2205 ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, in opus_encode_float()
2223 unsigned char *data, opus_int32 max_data_bytes) in opus_encode() argument
2240 ret = opus_encode_native(st, in, frame_size, data, max_data_bytes, 16, in opus_encode()