Home
last modified time | relevance | path

Searched refs:pcm (Results 1 – 11 of 11) sorted by relevance

/liblc3-3.7.0-3.6.0/include/
Dlc3_cpp.h88 int EncodeImpl(PcmFormat fmt, const T *pcm, int frame_size, uint8_t *out) { in EncodeImpl() argument
95 ret |= lc3_encode(states[ich].get(), cfmt, pcm + ich, nchannels_, in EncodeImpl()
142 int Encode(const int16_t *pcm, int frame_size, uint8_t *out) { in Encode() argument
143 return EncodeImpl(PcmFormat::kS16, pcm, frame_size, out); in Encode()
146 int Encode(const int32_t *pcm, int frame_size, uint8_t *out) { in Encode() argument
147 return EncodeImpl(PcmFormat::kS24, pcm, frame_size, out); in Encode()
150 int Encode(const float *pcm, int frame_size, uint8_t *out) { in Encode() argument
151 return EncodeImpl(PcmFormat::kF32, pcm, frame_size, out); in Encode()
154 int Encode(PcmFormat fmt, const void *pcm, int frame_size, uint8_t *out) { in Encode() argument
155 uintptr_t pcm_ptr = reinterpret_cast<uintptr_t>(pcm); in Encode()
[all …]
Dlc3.h267 const void *pcm, int stride, int nbytes, void *out);
306 enum lc3_pcm_format fmt, void *pcm, int stride);
/liblc3-3.7.0-3.6.0/src/
Dlc3.c155 const int16_t *pcm = _pcm; in load_s16() local
164 for (int i = 0; i < ns; i++, pcm += stride) in load_s16()
165 xt[i] = *pcm, xs[i] = *pcm; in load_s16()
176 const int32_t *pcm = _pcm; in load_s24() local
185 for (int i = 0; i < ns; i++, pcm += stride) { in load_s24()
186 xt[i] = *pcm >> 8; in load_s24()
187 xs[i] = ldexpf(*pcm, -8); in load_s24()
199 const uint8_t *pcm = _pcm; in load_s24_3le() local
208 for (int i = 0; i < ns; i++, pcm += 3*stride) { in load_s24_3le()
209 int32_t in = ((uint32_t)pcm[0] << 8) | in load_s24_3le()
[all …]
/liblc3-3.7.0-3.6.0/test/
Dlc3_py.c54 int16_t *pcm; in encode_py() local
66 CTYPES_CHECK("x", pcm_obj = to_1d_ptr(pcm_obj, NPY_INT16, ns, &pcm)); in encode_py()
71 lc3_encode(encoder, LC3_PCM_FORMAT_S16, pcm, 1, nbytes, out); in encode_py()
102 int16_t *pcm; in decode_py() local
118 pcm_obj = new_1d_ptr(NPY_INT16, ns, &pcm); in decode_py()
120 lc3_decode(decoder, in, nbytes, LC3_PCM_FORMAT_S16, pcm, 1); in decode_py()
Dencoder.py159 (sr_hz, pcm) = wavfile.read(args.wav_file.name)
162 if pcm.ndim != 1:
179 sr_hz // 100, args.bitrate // 100, 1, int(args.dt * 100), 0, len(pcm))
186 if len(pcm) % frame_samples > 0:
187 pcm = np.append(pcm, np.zeros(frame_samples - (len(pcm) % frame_samples))) variable
189 for i in range(0, len(pcm), frame_samples):
193 frame_pcm = pcm[i:i+frame_samples]
Ddecoder.py109 pcm = lc3.decode(dec_c, bytes(C.BYTES_AC[dt][i]))
110 ok = ok and np.max(np.abs(pcm - C.X_HAT_CLIP[dt][i])) < 1
/liblc3-3.7.0-3.6.0/fuzz/
Defuzz.cc42 std::vector<T> pcm(pcm_samples); in encode() local
43 for (auto &s: pcm) in encode()
46 e.Encode(pcm.data(), in encode()
/liblc3-3.7.0-3.6.0/tools/
Ddlc3.c191 int8_t alignas(int32_t) pcm[2 * LC3_MAX_FRAME_SAMPLES*4]; in main()
227 memset(pcm, 0, nch * frame_samples * pcm_sbytes); in main()
232 pcm_fmt, pcm + ich * pcm_sbytes, nch); in main()
238 wave_write_pcm(fp_out, pcm_sbytes, pcm, nch, pcm_offset, pcm_nwrite); in main()
Delc3.c196 int8_t alignas(int32_t) pcm[2 * LC3_MAX_FRAME_SAMPLES*4]; in main()
220 int nread = wave_read_pcm(fp_in, pcm_sbytes, nch, frame_samples, pcm); in main()
222 memset(pcm + nread * nch * pcm_sbytes, 0, in main()
238 pcm_fmt, pcm + ich * pcm_sbytes, nch, in main()
Dwave.h70 const void *pcm, int nch, int off, int count);
Dwave.c180 const int8_t *pcm = _pcm; in wave_write_pcm() local
181 fwrite(pcm + nch * off * samplesize, nch * samplesize, count, fp); in wave_write_pcm()