Home
last modified time | relevance | path

Searched refs:shape (Results 1 – 5 of 5) sorted by relevance

/liblc3-latest/test/
Dsns.py33 (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')
[all …]
Dsns_py.c95 int shape, gain; in unquantize_py() local
99 &lfcb_idx, &hfcb_idx, &y_obj, &shape, &gain)) in unquantize_py()
105 CTYPES_CHECK("shape", (unsigned)shape < 4); in unquantize_py()
107 (unsigned)gain < (unsigned)lc3_sns_vq_gains[shape].count); in unquantize_py()
111 unquantize(lfcb_idx, hfcb_idx, y, shape, gain, scf); in unquantize_py()
Dctypes.h430 new_scalar(NPY_INT, &data->shape)); in new_sns_data()
464 CTYPES_CHECK("sns.shape", to_scalar(item, NPY_INT, &data->shape)); in to_sns_data()
/liblc3-latest/src/
Dsns.c586 const float *c, int shape, int gain, float *scf) in unquantize() argument
590 float g = lc3_sns_vq_gains[shape].v[gain]; in unquantize()
677 static void enumerate(int shape, const int *c, in enumerate() argument
680 enum_mvpq(c, shape < 2 ? 10 : 16, idx_a, ls_a); in enumerate()
682 if (shape == 0) in enumerate()
693 static void deenumerate(int shape, in deenumerate() argument
696 int npulses_a = (const int []){ 10, 10, 8, 6 }[shape]; in deenumerate()
698 deenum_mvpq(idx_a, ls_a, npulses_a, c, shape < 2 ? 10 : 16); in deenumerate()
700 if (shape == 0) in deenumerate()
702 else if (shape == 1) in deenumerate()
[all …]
Dsns.h32 int shape, gain; member