43#ifndef __SW_CODEC_LC3_H__
44#define __SW_CODEC_LC3_H__
46#include <zephyr/types.h>
48#define LC3_USE_BITRATE_FROM_INIT 0
77 uint8_t audio_ch, uint16_t lc3_data_buf_size, uint8_t *
const lc3_data,
78 uint16_t *
const lc3_data_wr_size);
98 uint16_t pcm_data_buf_size, uint8_t audio_ch,
void *
const pcm_data,
99 uint16_t *
const pcm_data_wr_size,
bool bad_frame);
118 uint16_t framesize_us);
139 uint32_t enc_bitrate, uint8_t num_channels,
140 uint16_t *
const pcm_bytes_req);
155 uint8_t num_channels);
int sw_codec_lc3_enc_run(void const *const pcm_data, uint32_t pcm_data_size, uint32_t enc_bitrate, uint8_t audio_ch, uint16_t lc3_data_buf_size, uint8_t *const lc3_data, uint16_t *const lc3_data_wr_size)
Runs the LC3 encoder.
int sw_codec_lc3_enc_uninit_all(void)
Closes the LC3 encoder and frees allocated RAM.
int sw_codec_lc3_dec_init(uint16_t pcm_sample_rate, uint8_t pcm_bit_depth, uint16_t framesize_us, uint8_t num_channels)
Initializes the LC3 decoder and allocates required RAM.
int sw_codec_lc3_dec_run(uint8_t const *const lc3_data, uint16_t lc3_data_size, uint16_t pcm_data_buf_size, uint8_t audio_ch, void *const pcm_data, uint16_t *const pcm_data_wr_size, bool bad_frame)
Runs the LC3 decoder.
int sw_codec_lc3_init(uint8_t *sw_codec_lc3_buffer, uint32_t *sw_codec_lc3_buffer_size, uint16_t framesize_us)
Initializes the LC3 Codec.
int sw_codec_lc3_enc_init(uint16_t pcm_sample_rate, uint8_t pcm_bit_depth, uint16_t framesize_us, uint32_t enc_bitrate, uint8_t num_channels, uint16_t *const pcm_bytes_req)
Initializes the LC3 encoder and allocates required RAM.
int sw_codec_lc3_dec_uninit_all(void)
Closes the LC3 decoder and frees allocated RAM.