Home
last modified time | relevance | path

Searched refs:nchannels (Results 1 – 8 of 8) sorted by relevance

/liblc3-3.7.0-3.6.0/tools/
Dlc3bin.c46 int *frame_us, int *srate_hz, int *nchannels, int *nsamples) in lc3bin_read_header() argument
54 *nchannels = hdr.channels; in lc3bin_read_header()
67 int lc3bin_read_data(FILE *fp, int nchannels, void *buffer) in lc3bin_read_data() argument
72 || nbytes > nchannels * LC3_MAX_FRAME_BYTES in lc3bin_read_data()
73 || nbytes % nchannels in lc3bin_read_data()
77 return nbytes / nchannels; in lc3bin_read_data()
84 int frame_us, int srate_hz, int bitrate, int nchannels, int nsamples) in lc3bin_write_header() argument
91 .channels = nchannels, in lc3bin_write_header()
104 const void *data, int nchannels, int frame_bytes) in lc3bin_write_data() argument
106 uint16_t nbytes = nchannels * frame_bytes; in lc3bin_write_data()
Dlc3bin.h37 int *frame_us, int *srate_hz, int *nchannels, int *nsamples);
46 int lc3bin_read_data(FILE *fp, int nchannels, void *buffer);
58 int frame_us, int srate_hz, int bitrate, int nchannels, int nsamples);
68 const void *data, int nchannels, int frame_bytes);
Dwave.c93 int *samplerate, int *nchannels, int *nframes) in wave_read_header() argument
122 *nchannels = format.channels; in wave_read_header()
141 int samplerate, int nchannels, int nframes) in wave_write_header() argument
149 long data_size = nchannels * nframes * samplesize; in wave_write_header()
160 .channels = nchannels, in wave_write_header()
162 .byterate = samplerate * nchannels * samplesize, in wave_write_header()
163 .framesize = nchannels * samplesize, in wave_write_header()
Dwave.h37 int *samplerate, int *nchannels, int *nframes);
60 int samplerate, int nchannels, int nframes);
/liblc3-3.7.0-3.6.0/fuzz/
Defuzz.cc35 int encode(Encoder &e, int nchannels, int frame_size, FuzzedDataProvider &fdp, in encode() argument
38 int pcm_samples = nchannels * e.GetFrameSamples(); in encode()
47 frame_size, std::vector<uint8_t>(nchannels * frame_size).data()); in encode()
52 int encode(Encoder &e, int frame_size, int nchannels, in encode() argument
61 int pcm_bytes = nchannels * e.GetFrameSamples() * sample_bytes; in encode()
66 frame_size, std::vector<uint8_t>(nchannels * frame_size).data()); in encode()
80 int nchannels = fdp.PickValueInArray({1, 2}); in LLVMFuzzerTestOneInput() local
86 Encoder enc(dt_us, sr_hz, sr_pcm_hz, nchannels); in LLVMFuzzerTestOneInput()
98 return encode<int16_t>(enc, nchannels, frame_size, fdp); in LLVMFuzzerTestOneInput()
103 return encode<int32_t>(enc, nchannels, frame_size, fdp, s24_min, s24_max); in LLVMFuzzerTestOneInput()
[all …]
Ddfuzz.cc33 int nchannels =fdp.PickValueInArray({1, 2}); in LLVMFuzzerTestOneInput() local
39 Decoder dec(dt_us, sr_hz, sr_pcm_hz, nchannels); in LLVMFuzzerTestOneInput()
56 if (fdp.remaining_bytes() < frame_size * nchannels) in LLVMFuzzerTestOneInput()
60 fdp.ConsumeBytes<uint8_t>(nchannels * frame_size).data(), frame_size, in LLVMFuzzerTestOneInput()
61 fmt, std::vector<uint8_t>(nchannels * frame_samples * sample_bytes).data()); in LLVMFuzzerTestOneInput()
/liblc3-3.7.0-3.6.0/include/
Dlc3_cpp.h53 Base(int dt_us, int sr_hz, int sr_pcm_hz, size_t nchannels) in Base() argument
57 nchannels_(nchannels) { in Base()
112 Encoder(int dt_us, int sr_hz, int sr_pcm_hz = 0, size_t nchannels = 1)
113 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels) { in Base() argument
210 Decoder(int dt_us, int sr_hz, int sr_pcm_hz = 0, size_t nchannels = 1)
211 : Base(dt_us, sr_hz, sr_pcm_hz, nchannels) { in Base() argument
/liblc3-3.7.0-3.6.0/test/
Ddecoder.py150 nchannels = header[4] variable