Lines Matching refs:fmt
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()
280 int Decode(const uint8_t *in, int block_size, PcmFormat fmt, void *pcm) { in Decode() argument
283 switch (fmt) { in Decode()
286 return DecodeImpl(in, block_size, fmt, in Decode()
291 return DecodeImpl(in, block_size, fmt, in Decode()
295 return DecodeImpl(in, block_size, fmt, in Decode()
300 return DecodeImpl(in, block_size, fmt, reinterpret_cast<float *>(pcm)); in Decode()