diff options
Diffstat (limited to 'inc/rcu/ima_adpcm_enc.h')
-rw-r--r-- | inc/rcu/ima_adpcm_enc.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/inc/rcu/ima_adpcm_enc.h b/inc/rcu/ima_adpcm_enc.h new file mode 100644 index 0000000..4c5f06e --- /dev/null +++ b/inc/rcu/ima_adpcm_enc.h @@ -0,0 +1,29 @@ +/** +************************************************************************************************************ +* Copyright(c) 2014-2015, Realtek Semiconductor Corporation. All rights reserved. +************************************************************************************************************ +* @file ima_adpcm_enc.h +* @brief +* @author Chenjie Jin +* @date 2018-05-14 +* @version v0.2 +************************************************************************************************************* +*/ + +#ifndef __IMA_ADPCM_ENCODE_H__ +#define __IMA_ADPCM_ENCODE_H__ + +#include "stdint.h" + +typedef struct +{ + short valprev; /* Previous output value */ + char index; /* Index into stepsize table */ + uint16_t seq_id; /* sequence index */ +} T_IMA_ADPCM_STATE; + +int ima_adpcm_encode(short *indata, unsigned char *outdata, int len, T_IMA_ADPCM_STATE *state); + +extern T_IMA_ADPCM_STATE ima_adpcm_global_state; + +#endif /* __CVSD_ENCODE_H__ */ |