Searched refs:fmt (Results 1 – 6 of 6) sorted by relevance
/liblc3-latest/fuzz/ |
D | dfuzz.cc | 45 PcmFormat fmt = fdp.PickValueInArray( in LLVMFuzzerTestOneInput() local 54 fmt == PcmFormat::kS16 ? sizeof(int16_t) : in LLVMFuzzerTestOneInput() 55 fmt == PcmFormat::kS24 ? sizeof(int32_t) : in LLVMFuzzerTestOneInput() 56 fmt == PcmFormat::kS24In3Le ? sizeof(uint8_t) * 3 : in LLVMFuzzerTestOneInput() 57 fmt == PcmFormat::kF32 ? sizeof(float) : 0; in LLVMFuzzerTestOneInput() 64 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() 89 PcmFormat fmt = fdp.PickValueInArray( in LLVMFuzzerTestOneInput() local 96 switch (fmt) { in LLVMFuzzerTestOneInput() 114 return encode(enc, nchannels, frame_size, fmt, fdp); in LLVMFuzzerTestOneInput()
|
/liblc3-latest/include/ |
D | lc3_cpp.h | 95 int EncodeImpl(PcmFormat fmt, const T *pcm, int block_size, uint8_t *out) { in EncodeImpl() argument 98 enum lc3_pcm_format cfmt = static_cast<lc3_pcm_format>(fmt); in EncodeImpl() 171 int Encode(PcmFormat fmt, const void *pcm, int block_size, uint8_t *out) { in Encode() argument 174 switch (fmt) { in Encode() 177 return EncodeImpl(fmt, reinterpret_cast<const int16_t *>(pcm), in Encode() 182 return EncodeImpl(fmt, reinterpret_cast<const int32_t *>(pcm), in Encode() 186 return EncodeImpl(fmt, reinterpret_cast<const int8_t(*)[3]>(pcm), in Encode() 191 return EncodeImpl(fmt, reinterpret_cast<const float *>(pcm), block_size, in Encode() 203 int DecodeImpl(const uint8_t *in, int block_size, PcmFormat fmt, T *pcm) { in DecodeImpl() argument 206 enum lc3_pcm_format cfmt = static_cast<enum lc3_pcm_format>(fmt); in DecodeImpl() [all …]
|
D | lc3.h | 368 lc3_encoder_t encoder, enum lc3_pcm_format fmt, 416 enum lc3_pcm_format fmt, void *pcm, int stride);
|
/liblc3-latest/tools/ |
D | wave.c | 67 uint16_t fmt; member 107 || ( format.fmt != WAVE_FORMAT_PCM && in wave_read_header() 108 format.fmt != WAVE_FORMAT_EXT ) in wave_read_header() 163 .fmt = WAVE_FORMAT_PCM, in wave_write_header()
|
/liblc3-latest/src/ |
D | lc3.c | 431 enum lc3_pcm_format fmt, const void *pcm, int stride, int nbytes, void *out) in lc3_encode() argument 450 load[fmt](encoder, pcm, stride); in lc3_encode() 735 const void *in, int nbytes, enum lc3_pcm_format fmt, void *pcm, int stride) in lc3_decode() argument 761 store[fmt](decoder, pcm, stride); in lc3_decode()
|