Lines Matching refs:state
61 EXPORT void speex_encoder_destroy(void *state) in speex_encoder_destroy() argument
63 (*((SpeexMode**)state))->enc_destroy(state); in speex_encoder_destroy()
66 EXPORT void speex_decoder_destroy(void *state) in speex_decoder_destroy() argument
68 (*((SpeexMode**)state))->dec_destroy(state); in speex_decoder_destroy()
73 int speex_encode_native(void *state, spx_word16_t *in, SpeexBits *bits) in speex_encode_native() argument
75 return (*((SpeexMode**)state))->enc(state, in, bits); in speex_encode_native()
78 int speex_decode_native(void *state, SpeexBits *bits, spx_word16_t *out) in speex_decode_native() argument
80 return (*((SpeexMode**)state))->dec(state, bits, out); in speex_decode_native()
88 EXPORT int speex_encode(void *state, float *in, SpeexBits *bits) in speex_encode() argument
93 speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &N); in speex_encode()
103 return (*((SpeexMode**)state))->enc(state, short_in, bits); in speex_encode()
107 EXPORT int speex_encode_int(void *state, spx_int16_t *in, SpeexBits *bits) in speex_encode_int() argument
110 mode = *(SpeexMode**)state; in speex_encode_int()
111 return (mode)->enc(state, in, bits); in speex_encode_int()
115 EXPORT int speex_decode(void *state, SpeexBits *bits, float *out) in speex_decode() argument
120 speex_decoder_ctl(state, SPEEX_GET_FRAME_SIZE, &N); in speex_decode()
121 ret = (*((SpeexMode**)state))->dec(state, bits, short_out); in speex_decode()
128 EXPORT int speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) in speex_decode_int() argument
130 SpeexMode *mode = *(SpeexMode**)state; in speex_decode_int()
131 return (mode)->dec(state, bits, out); in speex_decode_int()
136 EXPORT int speex_encode(void *state, float *in, SpeexBits *bits) in speex_encode() argument
138 return (*((SpeexMode**)state))->enc(state, in, bits); in speex_encode()
141 EXPORT int speex_encode_int(void *state, spx_int16_t *in, SpeexBits *bits) in speex_encode_int() argument
146 speex_encoder_ctl(state, SPEEX_GET_FRAME_SIZE, &N); in speex_encode_int()
149 return (*((SpeexMode**)state))->enc(state, float_in, bits); in speex_encode_int()
152 EXPORT int speex_decode(void *state, SpeexBits *bits, float *out) in speex_decode() argument
154 return (*((SpeexMode**)state))->dec(state, bits, out); in speex_decode()
157 EXPORT int speex_decode_int(void *state, SpeexBits *bits, spx_int16_t *out) in speex_decode_int() argument
163 speex_decoder_ctl(state, SPEEX_GET_FRAME_SIZE, &N); in speex_decode_int()
164 ret = (*((SpeexMode**)state))->dec(state, bits, float_out); in speex_decode_int()
180 EXPORT int speex_encoder_ctl(void *state, int request, void *ptr) in speex_encoder_ctl() argument
182 return (*((SpeexMode**)state))->enc_ctl(state, request, ptr); in speex_encoder_ctl()
185 EXPORT int speex_decoder_ctl(void *state, int request, void *ptr) in speex_decoder_ctl() argument
187 return (*((SpeexMode**)state))->dec_ctl(state, request, ptr); in speex_decoder_ctl()