123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #ifndef SKP_SILK_SDK_API_H
- #define SKP_SILK_SDK_API_H
- #include "SKP_Silk_control.h"
- #include "SKP_Silk_typedef.h"
- #include "SKP_Silk_errors.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define SILK_MAX_FRAMES_PER_PACKET 5
- typedef struct {
- SKP_int framesInPacket;
- SKP_int fs_kHz;
- SKP_int inbandLBRR;
- SKP_int corrupt;
- SKP_int vadFlags[ SILK_MAX_FRAMES_PER_PACKET ];
- SKP_int sigtypeFlags[ SILK_MAX_FRAMES_PER_PACKET ];
- } SKP_Silk_TOC_struct;
- SKP_int SKP_Silk_SDK_Get_Encoder_Size(
- SKP_int32 *encSizeBytes
- );
- SKP_int SKP_Silk_SDK_InitEncoder(
- void *encState,
- SKP_SILK_SDK_EncControlStruct *encStatus
- );
- SKP_int SKP_Silk_SDK_QueryEncoder(
- const void *encState,
- SKP_SILK_SDK_EncControlStruct *encStatus
- );
- SKP_int SKP_Silk_SDK_Encode(
- void *encState,
- const SKP_SILK_SDK_EncControlStruct *encControl,
- const SKP_int16 *samplesIn,
- SKP_int nSamplesIn,
- SKP_uint8 *outData,
- SKP_int16 *nBytesOut
- );
- SKP_int SKP_Silk_SDK_Get_Decoder_Size(
- SKP_int32 *decSizeBytes
- );
- SKP_int SKP_Silk_SDK_InitDecoder(
- void *decState
- );
- SKP_int SKP_Silk_SDK_Decode(
- void* decState,
- SKP_SILK_SDK_DecControlStruct* decControl,
- SKP_int lostFlag,
- const SKP_uint8 *inData,
- const SKP_int nBytesIn,
- SKP_int16 *samplesOut,
- SKP_int16 *nSamplesOut
- );
- void SKP_Silk_SDK_search_for_LBRR(
- const SKP_uint8 *inData,
- const SKP_int nBytesIn,
- SKP_int lost_offset,
- SKP_uint8 *LBRRData,
- SKP_int16 *nLBRRBytes
- );
- void SKP_Silk_SDK_get_TOC(
- const SKP_uint8 *inData,
- const SKP_int nBytesIn,
- SKP_Silk_TOC_struct *Silk_TOC
- );
-
- const char *SKP_Silk_SDK_get_version();
- #ifdef __cplusplus
- }
- #endif
- #endif
|