| OLD | NEW |
| 1 /*********************************************************************** | 1 /*********************************************************************** |
| 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. | 2 Copyright (c) 2006-2011, Skype Limited. All rights reserved. |
| 3 Redistribution and use in source and binary forms, with or without | 3 Redistribution and use in source and binary forms, with or without |
| 4 modification, are permitted provided that the following conditions | 4 modification, are permitted provided that the following conditions |
| 5 are met: | 5 are met: |
| 6 - Redistributions of source code must retain the above copyright notice, | 6 - Redistributions of source code must retain the above copyright notice, |
| 7 this list of conditions and the following disclaimer. | 7 this list of conditions and the following disclaimer. |
| 8 - Redistributions in binary form must reproduce the above copyright | 8 - Redistributions in binary form must reproduce the above copyright |
| 9 notice, this list of conditions and the following disclaimer in the | 9 notice, this list of conditions and the following disclaimer in the |
| 10 documentation and/or other materials provided with the distribution. | 10 documentation and/or other materials provided with the distribution. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 ); | 60 ); |
| 61 | 61 |
| 62 /*************************/ | 62 /*************************/ |
| 63 /* Init or reset encoder */ | 63 /* Init or reset encoder */ |
| 64 /*************************/ | 64 /*************************/ |
| 65 opus_int silk_InitEncoder( /* O Returns error co
de */ | 65 opus_int silk_InitEncoder( /* O Returns error co
de */ |
| 66 void *encState, /* I/O State
*/ | 66 void *encState, /* I/O State
*/ |
| 67 silk_EncControlStruct *encStatus /* O Encoder Status
*/ | 67 silk_EncControlStruct *encStatus /* O Encoder Status
*/ |
| 68 ); | 68 ); |
| 69 | 69 |
| 70 /***************************************/ | |
| 71 /* Read control structure from encoder */ | |
| 72 /***************************************/ | |
| 73 opus_int silk_QueryEncoder( /* O Returns error co
de */ | |
| 74 const void *encState, /* I State
*/ | |
| 75 silk_EncControlStruct *encStatus /* O Encoder Status
*/ | |
| 76 ); | |
| 77 | |
| 78 /**************************/ | 70 /**************************/ |
| 79 /* Encode frame with Silk */ | 71 /* Encode frame with Silk */ |
| 80 /**************************/ | 72 /**************************/ |
| 81 /* Note: if prefillFlag is set, the input must contain 10 ms of audio, irrespect
ive of what */ | 73 /* Note: if prefillFlag is set, the input must contain 10 ms of audio, irrespect
ive of what */ |
| 82 /* encControl->payloadSize_ms is set to
*/ | 74 /* encControl->payloadSize_ms is set to
*/ |
| 83 opus_int silk_Encode( /* O Returns error co
de */ | 75 opus_int silk_Encode( /* O Returns error co
de */ |
| 84 void *encState, /* I/O State
*/ | 76 void *encState, /* I/O State
*/ |
| 85 silk_EncControlStruct *encControl, /* I Control status
*/ | 77 silk_EncControlStruct *encControl, /* I Control status
*/ |
| 86 const opus_int16 *samplesIn, /* I Speech sample in
put vector */ | 78 const opus_int16 *samplesIn, /* I Speech sample in
put vector */ |
| 87 opus_int nSamplesIn, /* I Number of sample
s in input vector */ | 79 opus_int nSamplesIn, /* I Number of sample
s in input vector */ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 const opus_int nFramesPerPayload, /* I Number of SILK f
rames per payload */ | 123 const opus_int nFramesPerPayload, /* I Number of SILK f
rames per payload */ |
| 132 silk_TOC_struct *Silk_TOC /* O Type of content
*/ | 124 silk_TOC_struct *Silk_TOC /* O Type of content
*/ |
| 133 ); | 125 ); |
| 134 #endif | 126 #endif |
| 135 | 127 |
| 136 #ifdef __cplusplus | 128 #ifdef __cplusplus |
| 137 } | 129 } |
| 138 #endif | 130 #endif |
| 139 | 131 |
| 140 #endif | 132 #endif |
| OLD | NEW |