123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- #ifndef SILK_API_H
- #define SILK_API_H
- #include "control.h"
- #include "typedef.h"
- #include "errors.h"
- #include "entenc.h"
- #include "entdec.h"
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define SILK_MAX_FRAMES_PER_PACKET 3
- typedef struct {
- opus_int VADFlag;
- opus_int VADFlags[ SILK_MAX_FRAMES_PER_PACKET ];
- opus_int inbandFECFlag;
- } silk_TOC_struct;
- opus_int silk_Get_Encoder_Size(
- opus_int *encSizeBytes
- );
- opus_int silk_InitEncoder(
- void *encState,
- int arch,
- silk_EncControlStruct *encStatus
- );
- opus_int silk_Encode(
- void *encState,
- silk_EncControlStruct *encControl,
- const opus_int16 *samplesIn,
- opus_int nSamplesIn,
- ec_enc *psRangeEnc,
- opus_int32 *nBytesOut,
- const opus_int prefillFlag
- );
- opus_int silk_Get_Decoder_Size(
- opus_int *decSizeBytes
- );
- opus_int silk_InitDecoder(
- void *decState
- );
- opus_int silk_Decode(
- void* decState,
- silk_DecControlStruct* decControl,
- opus_int lostFlag,
- opus_int newPacketFlag,
- ec_dec *psRangeDec,
- opus_int16 *samplesOut,
- opus_int32 *nSamplesOut,
- int arch
- );
- #if 0
- opus_int silk_get_TOC(
- const opus_uint8 *payload,
- const opus_int nBytesIn,
- const opus_int nFramesPerPayload,
- silk_TOC_struct *Silk_TOC
- );
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|