diff options
author | Koen Vos <koen.vos@skype.net> | 2011-10-28 19:44:26 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2011-10-28 19:44:26 -0400 |
commit | acc7a6c78b266e3ef0e1f91ee405af92a0989dec (patch) | |
tree | d3e32cc66cf96fecdaffc924ff0d051028b72f31 /silk/API.h | |
parent | 2d4f61409186c7efa831387bf14e2164607a805a (diff) | |
download | opus-acc7a6c78b266e3ef0e1f91ee405af92a0989dec.tar.gz |
Reformatting changes with an update to the MSVC project files
Diffstat (limited to 'silk/API.h')
-rw-r--r-- | silk/API.h | 70 |
1 files changed, 35 insertions, 35 deletions
@@ -43,9 +43,9 @@ extern "C" /* Struct for TOC (Table of Contents) */ typedef struct { - opus_int VADFlag; /* Voice activity for packet */ - opus_int VADFlags[ SILK_MAX_FRAMES_PER_PACKET ]; /* Voice activity for each frame in packet */ - opus_int inbandFECFlag; /* Flag indicating if packet contains in-band FEC */ + opus_int VADFlag; /* Voice activity for packet */ + opus_int VADFlags[ SILK_MAX_FRAMES_PER_PACKET ]; /* Voice activity for each frame in packet */ + opus_int inbandFECFlag; /* Flag indicating if packet contains in-band FEC */ } silk_TOC_struct; /****************************************/ @@ -55,24 +55,24 @@ typedef struct { /***********************************************/ /* Get size in bytes of the Silk encoder state */ /***********************************************/ -opus_int silk_Get_Encoder_Size( /* O: Returns error code */ - opus_int *encSizeBytes /* O: Number of bytes in SILK encoder state */ +opus_int silk_Get_Encoder_Size( /* O Returns error code */ + opus_int *encSizeBytes /* O Number of bytes in SILK encoder state */ ); /*************************/ /* Init or reset encoder */ /*************************/ -opus_int silk_InitEncoder( /* O: Returns error code */ - void *encState, /* I/O: State */ - silk_EncControlStruct *encStatus /* O: Encoder Status */ +opus_int silk_InitEncoder( /* O Returns error code */ + void *encState, /* I/O State */ + silk_EncControlStruct *encStatus /* O Encoder Status */ ); /***************************************/ /* Read control structure from encoder */ /***************************************/ -opus_int silk_QueryEncoder( /* O: Returns error code */ - const void *encState, /* I: State */ - silk_EncControlStruct *encStatus /* O: Encoder Status */ +opus_int silk_QueryEncoder( /* O Returns error code */ + const void *encState, /* I State */ + silk_EncControlStruct *encStatus /* O Encoder Status */ ); /**************************/ @@ -80,14 +80,14 @@ opus_int silk_QueryEncoder( /* O: Returns error c /**************************/ /* Note: if prefillFlag is set, the input must contain 10 ms of audio, irrespective of what */ /* encControl->payloadSize_ms is set to */ -opus_int silk_Encode( /* O: Returns error code */ - void *encState, /* I/O: State */ - silk_EncControlStruct *encControl, /* I: Control status */ - const opus_int16 *samplesIn, /* I: Speech sample input vector */ - opus_int nSamplesIn, /* I: Number of samples in input vector */ - ec_enc *psRangeEnc, /* I/O Compressor data structure */ - opus_int *nBytesOut, /* I/O: Number of bytes in payload (input: Max bytes) */ - const opus_int prefillFlag /* I: Flag to indicate prefilling buffers no coding */ +opus_int silk_Encode( /* O Returns error code */ + void *encState, /* I/O State */ + silk_EncControlStruct *encControl, /* I Control status */ + const opus_int16 *samplesIn, /* I Speech sample input vector */ + opus_int nSamplesIn, /* I Number of samples in input vector */ + ec_enc *psRangeEnc, /* I/O Compressor data structure */ + opus_int *nBytesOut, /* I/O Number of bytes in payload (input: Max bytes) */ + const opus_int prefillFlag /* I Flag to indicate prefilling buffers no coding */ ); /****************************************/ @@ -97,38 +97,38 @@ opus_int silk_Encode( /* O: Returns error c /***********************************************/ /* Get size in bytes of the Silk decoder state */ /***********************************************/ -opus_int silk_Get_Decoder_Size( /* O: Returns error code */ - opus_int *decSizeBytes /* O: Number of bytes in SILK decoder state */ +opus_int silk_Get_Decoder_Size( /* O Returns error code */ + opus_int *decSizeBytes /* O Number of bytes in SILK decoder state */ ); /*************************/ /* Init or Reset decoder */ /*************************/ -opus_int silk_InitDecoder( /* O: Returns error code */ - void *decState /* I/O: State */ +opus_int silk_InitDecoder( /* O Returns error code */ + void *decState /* I/O State */ ); /******************/ /* Decode a frame */ /******************/ -opus_int silk_Decode( /* O: Returns error code */ - void* decState, /* I/O: State */ - silk_DecControlStruct* decControl, /* I/O: Control Structure */ - opus_int lostFlag, /* I: 0: no loss, 1 loss, 2 decode fec */ - opus_int newPacketFlag, /* I: Indicates first decoder call for this packet */ - ec_dec *psRangeDec, /* I/O Compressor data structure */ - opus_int16 *samplesOut, /* O: Decoded output speech vector */ - opus_int32 *nSamplesOut /* O: Number of samples decoded */ +opus_int silk_Decode( /* O Returns error code */ + void* decState, /* I/O State */ + silk_DecControlStruct* decControl, /* I/O Control Structure */ + opus_int lostFlag, /* I 0: no loss, 1 loss, 2 decode fec */ + opus_int newPacketFlag, /* I Indicates first decoder call for this packet */ + ec_dec *psRangeDec, /* I/O Compressor data structure */ + opus_int16 *samplesOut, /* O Decoded output speech vector */ + opus_int32 *nSamplesOut /* O Number of samples decoded */ ); /**************************************/ /* Get table of contents for a packet */ /**************************************/ opus_int silk_get_TOC( - const opus_uint8 *payload, /* I Payload data */ - const opus_int nBytesIn, /* I: Number of input bytes */ - const opus_int nFramesPerPayload, /* I: Number of SILK frames per payload */ - silk_TOC_struct *Silk_TOC /* O: Type of content */ + const opus_uint8 *payload, /* I Payload data */ + const opus_int nBytesIn, /* I Number of input bytes */ + const opus_int nFramesPerPayload, /* I Number of SILK frames per payload */ + silk_TOC_struct *Silk_TOC /* O Type of content */ ); #ifdef __cplusplus |