1 /* 2 * g722.h - The ITU G.722 codec. 3 * 4 * Written by Steve Underwood <steveu@coppice.org> 5 * 6 * Copyright (C) 2005 Steve Underwood 7 * 8 * Despite my general liking of the GPL, I place my own contributions 9 * to this code in the public domain for the benefit of all mankind - 10 * even the slimy ones who might try to proprietize my work and use it 11 * to my detriment. 12 * 13 * Based on a single channel G.722 codec which is: 14 * 15 ***** Copyright (c) CMU 1993 ***** 16 * Computer Science, Speech Group 17 * Chengxiang Lu and Alex Hauptmann 18 * 19 * $Id: g722_decoder.h,v 1.1 2012/08/07 11:33:45 sobomax Exp $ 20 */ 21 22 23 /*! \file */ 24 25 #if !defined(_G722_DECODER_H_) 26 #define _G722_DECODER_H_ 27 28 #include "g722.h" 29 30 #ifndef _G722_DEC_CTX_DEFINED 31 typedef void G722_DEC_CTX; 32 #define _G722_DEC_CTX_DEFINED 33 #endif 34 35 G722_DEC_CTX *g722_decoder_new(int rate, int options); 36 int g722_decoder_destroy(G722_DEC_CTX *s); 37 int g722_decode(G722_DEC_CTX *s, const uint8_t g722_data[], int len, int16_t amp[]); 38 39 #endif 40