Crate lc3_sys

Source

Structs§

__fsid_t
lc3_attdet_analysis
Encoder state and memory
lc3_decoder
lc3_decoder_mem_16k_t
lc3_decoder_mem_48k_t
lc3_encoder
lc3_encoder_mem_16k_t
Static memory of encoder/decoder contexts
lc3_encoder_mem_48k_t
lc3_ltpf_analysis
lc3_ltpf_hp50_state
lc3_ltpf_synthesis
Decoder state and memory
lc3_plc_state
lc3_spec_analysis

Constants§

INT8_MAX
INT8_MIN
INT16_MAX
INT16_MIN
INT32_MAX
INT32_MIN
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MAX
INT_FAST8_MIN
INT_FAST16_MAX
INT_FAST16_MIN
INT_FAST32_MAX
INT_FAST32_MIN
INT_LEAST8_MAX
INT_LEAST8_MIN
INT_LEAST16_MAX
INT_LEAST16_MIN
INT_LEAST32_MAX
INT_LEAST32_MIN
LC3_HR_MAX_BITRATE
LC3_HR_MAX_FRAME_BYTES
LC3_MAX_BITRATE
LC3_MAX_FRAME_BYTES
LC3_MIN_BITRATE
LC3_MIN_FRAME_BYTES
PTRDIFF_MAX
PTRDIFF_MIN
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_LEAST_H
_BITS_STDINT_UINTN_H
_BITS_TIME64_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_C2X_STRTOL
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_DEPRECATED_SCANF
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_BFP_EXT_C2X
__GLIBC_USE_IEC_60559_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_ISOC2X
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STATFS_MATCHES_STATFS64
__STDC_IEC_559_COMPLEX__
__STDC_IEC_559__
__STDC_IEC_60559_BFP__
__STDC_IEC_60559_COMPLEX__
__STDC_ISO_10646__
__SYSCALL_WORDSIZE
__TIMESIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__bool_true_false_are_defined
__glibc_c99_flexarr_available
false_
lc3_dt_LC3_DT_2M5
lc3_dt_LC3_DT_5M
lc3_dt_LC3_DT_7M5
lc3_dt_LC3_DT_10M
lc3_dt_LC3_NUM_DT
lc3_pcm_format_LC3_PCM_FORMAT_FLOAT
lc3_pcm_format_LC3_PCM_FORMAT_S16
lc3_pcm_format_LC3_PCM_FORMAT_S24
lc3_pcm_format_LC3_PCM_FORMAT_S24_3LE
lc3_srate_LC3_NUM_SRATE
lc3_srate_LC3_SRATE_8K
lc3_srate_LC3_SRATE_16K
lc3_srate_LC3_SRATE_24K
lc3_srate_LC3_SRATE_32K
lc3_srate_LC3_SRATE_48K
lc3_srate_LC3_SRATE_48K_HR
lc3_srate_LC3_SRATE_96K_HR
true_

Functions§

lc3_decode
Decode a frame decoder Handle of the decoder in, nbytes Input bitstream, and size in bytes, NULL performs PLC fmt PCM output format pcm, stride Output PCM samples, and count between two consecutives return 0: On success 1: PLC operated -1: Wrong parameters
lc3_decoder_size
lc3_delay_samples
lc3_encode
Encode a frame encoder Handle of the encoder fmt PCM input format pcm, stride Input PCM samples, and count between two consecutives nbytes Target size, in bytes, of the frame out Output buffer of nbytes size return 0: On success -1: Wrong parameters
lc3_encoder_size
lc3_frame_bytes
lc3_frame_samples
lc3_hr_decoder_size
Return size needed for an decoder hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 return Size of then decoder in bytes, 0 on bad parameters
lc3_hr_delay_samples
Return algorithmic delay, as a number of samples hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 return Number of algorithmic delay samples, -1 on bad parameters
lc3_hr_encoder_size
Return size needed for an encoder hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 return Size of then encoder in bytes, 0 on bad parameters
lc3_hr_frame_bytes
Return the size of frames, from bitrate hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 bitrate Target bitrate in bit per second, 0 or INT_MAX returns respectively the minimum and maximum allowed size. return The floor size in bytes of the frames, -1 on bad parameters
lc3_hr_frame_samples
Return the number of PCM samples in a frame hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 return Number of PCM samples, -1 on bad parameters
lc3_hr_resolve_bitrate
Resolve the bitrate, from the size of frames hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 nbytes Size in bytes of the frames, 0 or INT_MAX returns respectively the minimum and maximum allowed bitrate. return The according bitrate in bps, -1 on bad parameters
lc3_hr_setup_decoder
Setup decoder hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 sr_pcm_hz Output sample rate, upsampling option of output (or 0) mem Decoder memory space, aligned to pointer type return Decoder as an handle, NULL on bad parameters
lc3_hr_setup_encoder
Setup encoder hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 sr_pcm_hz Input sample rate, downsampling option of input, or 0 mem Encoder memory space, aligned to pointer type return Encoder as an handle, NULL on bad parameters
lc3_resolve_bitrate
lc3_setup_decoder
lc3_setup_encoder

Type Aliases§

__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__int_least8_t
__int_least16_t
__int_least32_t
__int_least64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds64_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uint_least8_t
__uint_least16_t
__uint_least32_t
__uint_least64_t
__uintmax_t
__useconds_t
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
lc3_attdet_analysis_t
Encoder state and memory
lc3_decoder_t
lc3_dt
Frame duration
lc3_encoder_t
Handle
lc3_ltpf_analysis_t
lc3_ltpf_synthesis_t
Decoder state and memory
lc3_pcm_format
PCM Sample Format S16 Signed 16 bits, in 16 bits words (int16_t) S24 Signed 24 bits, using low three bytes of 32 bits words (int32_t). The high byte sign extends (bits 31..24 set to b23). S24_3LE Signed 24 bits packed in 3 bytes little endian FLOAT Floating point 32 bits (float type), in range -1 to 1
lc3_plc_state_t
lc3_spec_analysis_t
lc3_srate
Sampling frequency and high-resolution mode
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t