Sound Open Firmware
Loading...
Searching...
No Matches
cadence.h File Reference
Include dependency graph for cadence.h:

Go to the source code of this file.

Data Structures

struct  cadence_api
struct  cadence_codec_data

Macros

#define LIB_NAME_MAX_LEN   30
#define LIB_NO_ERROR   XA_NO_ERROR
#define LIB_IS_FATAL_ERROR(e)
#define CODEC_GET_API_ID(id)
#define CADENCE_MP3_ENCODER_DEFAULT_BITRATE   320
#define DEFAULT_CODEC_ID   CADENCE_CODEC_WRAPPER_ID
#define API_CALL(cd, cmd, sub_cmd, value, ret)

Enumerations

enum  cadence_api_id {
  CADENCE_CODEC_WRAPPER_ID = 0x01 , CADENCE_CODEC_AAC_DEC_ID = 0x02 , CADENCE_CODEC_BSAC_DEC_ID = 0x03 , CADENCE_CODEC_DAB_DEC_ID = 0x04 ,
  CADENCE_CODEC_DRM_DEC_ID = 0x05 , CADENCE_CODEC_MP3_DEC_ID = 0x06 , CADENCE_CODEC_SBC_DEC_ID = 0x07 , CADENCE_CODEC_VORBIS_DEC_ID = 0x08 ,
  CADENCE_CODEC_SRC_PP_ID = 0x09 , CADENCE_CODEC_MP3_ENC_ID = 0x0A , SOF_COMPRESS_CODEC_PCM_DEC_ID = 0xC0
}

Functions

int cadence_codec_set_configuration (struct processing_module *mod, uint32_t config_id, enum module_cfg_fragment_position pos, uint32_t data_offset_size, const uint8_t *fragment, size_t fragment_size, uint8_t *response, size_t response_size)
int cadence_codec_resolve_api_with_id (struct processing_module *mod, uint32_t codec_id, uint32_t direction)
int cadence_codec_apply_params (struct processing_module *mod, int size, void *data)
int cadence_codec_process_data (struct processing_module *mod, XA_ERRORCODE *api_error_code)
int cadence_codec_apply_config (struct processing_module *mod)
void cadence_codec_free_memory_tables (struct processing_module *mod)
int cadence_codec_init_memory_tables (struct processing_module *mod)
unsigned int cadence_codec_get_samples (struct processing_module *mod)
int cadence_codec_init_process (struct processing_module *mod)
int cadence_init_codec_object (struct processing_module *mod)
int cadence_codec_resolve_api (struct processing_module *mod)
int cadence_codec_free (struct processing_module *mod)
size_t cadence_api_table_size (void)
void cadence_copy_data_from_buffer (void *dest, const void *buffer_ptr, size_t bytes_to_copy, size_t buffer_size, void const *buffer_start)
void cadence_copy_data_to_buffer (void *buffer_ptr, size_t bytes_to_copy, size_t buffer_size, void *buffer_start, const void *src)

Variables

xa_codec_func_t cadence_api_function
xa_codec_func_t xa_aac_dec
xa_codec_func_t xa_bsac_dec
xa_codec_func_t xa_dabplus_dec
xa_codec_func_t xa_drm_dec
xa_codec_func_t xa_mp3_dec
xa_codec_func_t xa_mp3_enc
xa_codec_func_t xa_sbc_dec
xa_codec_func_t xa_vorbis_dec
xa_codec_func_t xa_src_pp
xa_codec_func_t xa_pcm_dec
struct cadence_api cadence_api_table []

Macro Definition Documentation

◆ API_CALL

#define API_CALL ( cd,
cmd,
sub_cmd,
value,
ret )
Value:
do { \
ret = (cd)->api((cd)->self, \
(cmd), \
(sub_cmd), \
(value)); \
} while (0)
char value[]
Definition tlv.h:2

◆ CADENCE_MP3_ENCODER_DEFAULT_BITRATE

#define CADENCE_MP3_ENCODER_DEFAULT_BITRATE   320

◆ CODEC_GET_API_ID

#define CODEC_GET_API_ID ( id)
Value:
((id) & 0xFF)

◆ DEFAULT_CODEC_ID

#define DEFAULT_CODEC_ID   CADENCE_CODEC_WRAPPER_ID

◆ LIB_IS_FATAL_ERROR

#define LIB_IS_FATAL_ERROR ( e)
Value:
#define XA_FATAL_ERROR
Definition xa_error_standards.h:40

◆ LIB_NAME_MAX_LEN

#define LIB_NAME_MAX_LEN   30

◆ LIB_NO_ERROR

#define LIB_NO_ERROR   XA_NO_ERROR

Enumeration Type Documentation

◆ cadence_api_id

Enumerator
CADENCE_CODEC_WRAPPER_ID 
CADENCE_CODEC_AAC_DEC_ID 
CADENCE_CODEC_BSAC_DEC_ID 
CADENCE_CODEC_DAB_DEC_ID 
CADENCE_CODEC_DRM_DEC_ID 
CADENCE_CODEC_MP3_DEC_ID 
CADENCE_CODEC_SBC_DEC_ID 
CADENCE_CODEC_VORBIS_DEC_ID 
CADENCE_CODEC_SRC_PP_ID 
CADENCE_CODEC_MP3_ENC_ID 
SOF_COMPRESS_CODEC_PCM_DEC_ID 

Function Documentation

◆ cadence_api_table_size()

size_t cadence_api_table_size ( void )

◆ cadence_codec_apply_config()

int cadence_codec_apply_config ( struct processing_module * mod)

◆ cadence_codec_apply_params()

int cadence_codec_apply_params ( struct processing_module * mod,
int size,
void * data )

◆ cadence_codec_free()

int cadence_codec_free ( struct processing_module * mod)

◆ cadence_codec_free_memory_tables()

void cadence_codec_free_memory_tables ( struct processing_module * mod)

◆ cadence_codec_get_samples()

unsigned int cadence_codec_get_samples ( struct processing_module * mod)

◆ cadence_codec_init_memory_tables()

int cadence_codec_init_memory_tables ( struct processing_module * mod)

◆ cadence_codec_init_process()

int cadence_codec_init_process ( struct processing_module * mod)

◆ cadence_codec_process_data()

int cadence_codec_process_data ( struct processing_module * mod,
XA_ERRORCODE * api_error_code )

◆ cadence_codec_resolve_api()

int cadence_codec_resolve_api ( struct processing_module * mod)

◆ cadence_codec_resolve_api_with_id()

int cadence_codec_resolve_api_with_id ( struct processing_module * mod,
uint32_t codec_id,
uint32_t direction )

◆ cadence_codec_set_configuration()

int cadence_codec_set_configuration ( struct processing_module * mod,
uint32_t config_id,
enum module_cfg_fragment_position pos,
uint32_t data_offset_size,
const uint8_t * fragment,
size_t fragment_size,
uint8_t * response,
size_t response_size )

◆ cadence_copy_data_from_buffer()

void cadence_copy_data_from_buffer ( void * dest,
const void * buffer_ptr,
size_t bytes_to_copy,
size_t buffer_size,
void const * buffer_start )

◆ cadence_copy_data_to_buffer()

void cadence_copy_data_to_buffer ( void * buffer_ptr,
size_t bytes_to_copy,
size_t buffer_size,
void * buffer_start,
const void * src )

◆ cadence_init_codec_object()

int cadence_init_codec_object ( struct processing_module * mod)

Variable Documentation

◆ cadence_api_function

xa_codec_func_t cadence_api_function
extern

◆ cadence_api_table

struct cadence_api cadence_api_table[]
extern

◆ xa_aac_dec

xa_codec_func_t xa_aac_dec
extern

◆ xa_bsac_dec

xa_codec_func_t xa_bsac_dec
extern

◆ xa_dabplus_dec

xa_codec_func_t xa_dabplus_dec
extern

◆ xa_drm_dec

xa_codec_func_t xa_drm_dec
extern

◆ xa_mp3_dec

xa_codec_func_t xa_mp3_dec
extern

◆ xa_mp3_enc

xa_codec_func_t xa_mp3_enc
extern

◆ xa_pcm_dec

xa_codec_func_t xa_pcm_dec
extern

◆ xa_sbc_dec

xa_codec_func_t xa_sbc_dec
extern

◆ xa_src_pp

xa_codec_func_t xa_src_pp
extern

◆ xa_vorbis_dec

xa_codec_func_t xa_vorbis_dec
extern