Lines Matching defs:cng_inst

85 int16_t WebRtcCng_CreateEnc(CNG_enc_inst** cng_inst) {
86 if (cng_inst != NULL) {
87 *cng_inst = (CNG_enc_inst*) malloc(sizeof(WebRtcCngEncInst_t));
88 if (*cng_inst != NULL) {
89 (*(WebRtcCngEncInst_t**) cng_inst)->errorcode = 0;
90 (*(WebRtcCngEncInst_t**) cng_inst)->initflag = 0;
106 int16_t WebRtcCng_CreateDec(CNG_dec_inst** cng_inst) {
107 if (cng_inst != NULL ) {
108 *cng_inst = (CNG_dec_inst*) malloc(sizeof(WebRtcCngDecInst_t));
109 if (*cng_inst != NULL ) {
110 (*(WebRtcCngDecInst_t**) cng_inst)->errorcode = 0;
111 (*(WebRtcCngDecInst_t**) cng_inst)->initflag = 0;
133 * - cng_inst : Instance that should be initialized
140 * - cng_inst : Initialized instance
145 int16_t WebRtcCng_InitEnc(CNG_enc_inst* cng_inst, uint16_t fs, int16_t interval,
148 WebRtcCngEncInst_t* inst = (WebRtcCngEncInst_t*) cng_inst;
172 int16_t WebRtcCng_InitDec(CNG_dec_inst* cng_inst) {
175 WebRtcCngDecInst_t* inst = (WebRtcCngDecInst_t*) cng_inst;
201 * - cng_inst : Pointer to created instance that should be freed
206 int16_t WebRtcCng_FreeEnc(CNG_enc_inst* cng_inst) {
207 free(cng_inst);
211 int16_t WebRtcCng_FreeDec(CNG_dec_inst* cng_inst) {
212 free(cng_inst);
222 * - cng_inst : Pointer to created instance
230 int16_t WebRtcCng_Encode(CNG_enc_inst* cng_inst, int16_t* speech,
233 WebRtcCngEncInst_t* inst = (WebRtcCngEncInst_t*) cng_inst;
406 * - cng_inst : Pointer to created instance that should be freed
413 int16_t WebRtcCng_UpdateSid(CNG_dec_inst* cng_inst, uint8_t* SID,
416 WebRtcCngDecInst_t* inst = (WebRtcCngDecInst_t*) cng_inst;
468 * - cng_inst : Pointer to created instance that should be freed
475 int16_t WebRtcCng_Generate(CNG_dec_inst* cng_inst, int16_t* outData,
477 WebRtcCngDecInst_t* inst = (WebRtcCngDecInst_t*) cng_inst;
592 int16_t WebRtcCng_GetErrorCodeEnc(CNG_enc_inst* cng_inst) {
594 WebRtcCngEncInst_t* inst = (WebRtcCngEncInst_t*) cng_inst;
598 int16_t WebRtcCng_GetErrorCodeDec(CNG_dec_inst* cng_inst) {
600 WebRtcCngDecInst_t* inst = (WebRtcCngDecInst_t*) cng_inst;