Searched refs:fmt (Results 1 – 6 of 6) sorted by relevance
/liblc3-3.7.0-3.6.0/fuzz/ |
D | dfuzz.cc | 44 PcmFormat fmt = fdp.PickValueInArray( in LLVMFuzzerTestOneInput() local 51 fmt == PcmFormat::kS16 ? sizeof(int16_t) : in LLVMFuzzerTestOneInput() 52 fmt == PcmFormat::kS24 ? sizeof(int32_t) : in LLVMFuzzerTestOneInput() 53 fmt == PcmFormat::kS24In3Le ? sizeof(uint8_t) * 3 : in LLVMFuzzerTestOneInput() 54 fmt == PcmFormat::kF32 ? sizeof(float) : 0; in LLVMFuzzerTestOneInput() 61 fmt, std::vector<uint8_t>(nchannels * frame_samples * sample_bytes).data()); in LLVMFuzzerTestOneInput()
|
D | efuzz.cc | 53 PcmFormat fmt, FuzzedDataProvider &fdp) in encode() argument 56 fmt == PcmFormat::kS16 ? sizeof(int16_t) : in encode() 57 fmt == PcmFormat::kS24 ? sizeof(int32_t) : in encode() 58 fmt == PcmFormat::kS24In3Le ? sizeof(uint8_t) * 3 : in encode() 59 fmt == PcmFormat::kF32 ? sizeof(float) : 0; in encode() 65 e.Encode(fmt, fdp.ConsumeBytes<uint8_t>(pcm_bytes).data(), in encode() 88 PcmFormat fmt = fdp.PickValueInArray( in LLVMFuzzerTestOneInput() local 95 switch (fmt) { in LLVMFuzzerTestOneInput() 113 return encode(enc, nchannels, frame_size, fmt, fdp); in LLVMFuzzerTestOneInput()
|
/liblc3-3.7.0-3.6.0/include/ |
D | lc3_cpp.h | 88 int EncodeImpl(PcmFormat fmt, const T *pcm, int frame_size, uint8_t *out) { in EncodeImpl() argument 91 enum lc3_pcm_format cfmt = static_cast<lc3_pcm_format>(fmt); in EncodeImpl() 154 int Encode(PcmFormat fmt, const void *pcm, int frame_size, uint8_t *out) { in Encode() argument 157 switch (fmt) { in Encode() 160 return EncodeImpl(fmt, reinterpret_cast<const int16_t *>(pcm), in Encode() 165 return EncodeImpl(fmt, reinterpret_cast<const int32_t *>(pcm), in Encode() 169 return EncodeImpl(fmt, reinterpret_cast<const int8_t(*)[3]>(pcm), in Encode() 174 return EncodeImpl(fmt, reinterpret_cast<const float *>(pcm), frame_size, in Encode() 186 int DecodeImpl(const uint8_t *in, int frame_size, PcmFormat fmt, T *pcm) { in DecodeImpl() argument 189 enum lc3_pcm_format cfmt = static_cast<enum lc3_pcm_format>(fmt); in DecodeImpl() [all …]
|
D | lc3.h | 266 int lc3_encode(lc3_encoder_t encoder, enum lc3_pcm_format fmt, 306 enum lc3_pcm_format fmt, void *pcm, int stride);
|
/liblc3-3.7.0-3.6.0/tools/ |
D | wave.c | 66 uint16_t fmt; member 106 || format.fmt != WAVE_FORMAT_PCM in wave_read_header() 159 .fmt = WAVE_FORMAT_PCM, in wave_write_header()
|
/liblc3-3.7.0-3.6.0/src/ |
D | lc3.c | 380 int lc3_encode(struct lc3_encoder *encoder, enum lc3_pcm_format fmt, in lc3_encode() argument 401 load[fmt](encoder, pcm, stride); in lc3_encode() 673 enum lc3_pcm_format fmt, void *pcm, int stride) in lc3_decode() argument 699 store[fmt](decoder, pcm, stride); in lc3_decode()
|