Mercurial > hg > audiostuff
diff intercom/g726/g726_rfc3551.h @ 2:13be24d74cd2
import intercom-0.4.1
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 09:57:52 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/intercom/g726/g726_rfc3551.h Fri Jun 25 09:57:52 2010 +0200 @@ -0,0 +1,25 @@ +/* g726_rfc3551.c + * + * Copyright (C) DFS Deutsche Flugsicherung (2004, 2005). + * All Rights Reserved. + * Author: Andre Adrian + */ + + +void g726_initEncode(G726_state *encoder_state); + +short g726_encode( /* (o) Number of bytes encoded */ + G726_state *state, /* (i/o) Encoder instance */ + unsigned char *encoded_data, /* (o) The encoded bytes */ + short *inp_buf /* (i) The signal block to encode */ + ); + +void g726_initDecode(G726_state *decoder_state); + +short g726_decode( /* (o) Number of decoded samples */ + G726_state *state, /* (i/o) Decoder instance */ + short *decoded_data, /* (o) Decoded signal block */ + unsigned char *encoded_data, /* (i) Encoded bytes */ + short mode /* (i) 0=PL, 1=Normal */ + ); +