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