Lines Matching refs:shape
33 (self.ind_lf, self.ind_hf, self.shape, self.gain) = \
42 'shape' : self.shape, 'gain' : self.gain,
306 self.shape = np.argmin([ np.min(dMSE[j]) for j in range(4) ])
307 self.gain = np.argmin(dMSE[self.shape])
309 gain = G[self.shape][self.gain]
313 if self.shape == 0:
316 elif self.shape == 1:
319 elif self.shape == 2:
322 elif self.shape == 3:
328 scf_q = st1 + gain * fftpack.idct(xq[self.shape], norm = 'ortho')
342 shape = self.shape
343 gain_msb_bits = np.array([ 1, 1, 2, 2 ])[shape]
344 gain_lsb_bits = np.array([ 0, 1, 0, 1 ])[shape]
349 b.write_bit(shape >> 1)
355 if self.shape == 0:
360 elif self.shape == 1:
364 elif self.shape == 2:
367 elif self.shape == 3:
414 if self.shape == 0:
417 elif self.shape == 1:
420 elif self.shape == 2:
422 elif self.shape == 3:
434 gain = G[self.shape][self.gain]
465 self.shape = 0
469 self.shape = 1
478 self.shape = 2
481 self.shape = 3
546 shape = rng.integers(0, 4)
547 sz_shape_a = [ 2390004, 2390004, 15158272, 774912 ][shape]
548 sz_shape_b = [ 6, 1, 0, 0 ][shape]
549 synthesis.shape = shape
550 synthesis.gain = rng.integers(0, [ 2, 4, 4, 8 ][shape])
580 (y, yn, shape, gain) = lc3.sns_quantize(scf, lf, hf)
585 ok = ok and shape == 2*C.SUBMODE_MSB[i0][i] + C.SUBMODE_LSB[i0][i]
588 scf_q = lc3.sns_unquantize(lf, hf, yn[shape], shape, gain)