spf/api/modules/common_enc_dec_api.h
Structures
param_id_placeholder_real_module_id_t
Members
uint32_t
E.g. MODULE_ID_AAC_DEC or MODULE_ID_AAC_ENC, etc}
param_id_pcm_output_format_cfg_t
Members
uint32_t
uint32_t
uint32_t
The struct of payload is defined by combination of data_format and fmt_id. E.g. PCM fixed point (payload_pcm_output_format_cfg_t) and floating point may have different payloads. This size does not include bytes added for 32-bit alignment.}
payload_pcm_output_format_cfg_t
Members
int16_t
E.g. 16 bit, 24 bit or 32 bit}
int16_t
Relevant only when bits_per_sample is 24 and word_size is 32 For bits_per_sample 24, word_size 32, qfactor 23 -> PCM_LSB_ALIGNED
For bits_per_sample 24, word_size 32, qfactor 31 -> PCM_MSB_ALIGNED}
int16_t
16-bits per sample always contain 16-bit samples.
24-bits per sample always contain 24-bit samples.
32-bits per sample have below cases:
If bit width = 24 and alignment = LSB aligned, then 24-bit samples are placed in the lower 24 bits of a 32-bit word. Upper bits may or may not be sign-extended.
If bit width = 24 and alignment = MSB aligned, then 24-bit samples are placed in the upper 24 bits of a 32-bit word. Lower bits may or may not be zeroed.
If bit width = 32, 32-bit samples are placed in the 32-bit words }
int16_t
15 for 16 bit signed data 23 for 24 bit signed packed (24 word size) data 27 for LSB aligned 24 bit unpacked (32 word size) signed data used internal to spf. 31 for MSB aligned 24 bit unpacked (32 word size) signed data 23 for LSB aligned 24 bit unpacked (32 word size) signed data 31 for 32 bit signed data}
int16_t
}
int16_t
int16_t
int16_t
param_id_enc_bitrate_param_t
Members
uint32_t
param_id_enc_frame_size_control_t
Members
uint32_t
}
uint32_t
MTU_SIZE: MTU size in bytes as per the connected BT sink device. NOTE: Expectation is that mtu_size is >= ‘frame size’.
PEAK_BIT_RATE: Peak bit rate in bits/second. Eg : 96000 if 96kbps is the peak bitrate to be set. Assumption is that peak bit rate set is > configured bitrate. BIT_RATE_MODE: Bit rate mode such as Constant
Bit Rate (CBR), Variable Bit Rate (VBR) etc., a) 0: Default(CBR) b) 1: VBR}
param_id_remove_initial_silence_t
Members
uint32_t
}
param_id_remove_trailing_silence_t
Members
uint32_t
}

