Lines Matching refs:tot_size
106 opus_int32 tot_size; in opus_repacketizer_out_range_impl() local
121 tot_size = 1 + (len[count-1]>=252); in opus_repacketizer_out_range_impl()
123 tot_size = 0; in opus_repacketizer_out_range_impl()
129 tot_size += len[0]+1; in opus_repacketizer_out_range_impl()
130 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
138 tot_size += 2*len[0]+1; in opus_repacketizer_out_range_impl()
139 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
144 tot_size += len[0]+len[1]+2+(len[0]>=252); in opus_repacketizer_out_range_impl()
145 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
151 if (count > 2 || (pad && tot_size < maxlen)) in opus_repacketizer_out_range_impl()
160 tot_size = 1 + (len[count-1]>=252); in opus_repacketizer_out_range_impl()
162 tot_size = 0; in opus_repacketizer_out_range_impl()
174 tot_size += 2; in opus_repacketizer_out_range_impl()
176 tot_size += 1 + (len[i]>=252) + len[i]; in opus_repacketizer_out_range_impl()
177 tot_size += len[count-1]; in opus_repacketizer_out_range_impl()
179 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
184 tot_size += count*len[0]+2; in opus_repacketizer_out_range_impl()
185 if (tot_size > maxlen) in opus_repacketizer_out_range_impl()
190 pad_amount = pad ? (maxlen-tot_size) : 0; in opus_repacketizer_out_range_impl()
199 tot_size += pad_amount; in opus_repacketizer_out_range_impl()
227 return tot_size; in opus_repacketizer_out_range_impl()