Lines Matching refs:bitpool
208 bitpool = 0 variable in SBCFrame
224 …def __init__(self, nr_blocks=16, nr_subbands=4, nr_channels=1, bitpool=31, sampling_frequency=4410… argument
229 self.bitpool = bitpool
275 res += "\n - bitpool %d" % self.bitpool
329 if bitcount + slicecount >= frame.bitpool:
332 if bitcount + slicecount == frame.bitpool:
346 while bitcount < frame.bitpool and sb < frame.nr_subbands:
350 elif (bitneed[ch][sb] == bitslice+1) and (frame.bitpool > bitcount+1):
362 while bitcount < frame.bitpool and sb < frame.nr_subbands:
373 if bits.sum() != frame.bitpool:
374 print("bit allocation failed, bitpool %d, allocated %d" % (bits.sum() , frame.bitpool))
424 if bitcount + slicecount >= frame.bitpool:
427 if bitcount + slicecount == frame.bitpool:
438 while bitcount < frame.bitpool and sb < frame.nr_subbands:
443 elif (bitneed[ch][sb] == bitslice+1) and (frame.bitpool > bitcount+1):
450 while bitcount < frame.bitpool and sb < frame.nr_subbands:
557 add_bits(frame.bitpool, 8)
592 add_bits(frame.bitpool, 8)