/* * SpanDSP - a series of DSP components for telephony * * g722_decode.c - The ITU G.722 codec, decode part. * * Written by Steve Underwood <[email protected]> * * Copyright (C) 2005 Steve Underwood * * Despite my general liking of the GPL, I place my own contributions * to this code in the public domain for the benefit of all mankind - * even the slimy ones who might try to proprietize my work and use it * to my detriment. * * Based in part on a single channel G.722 codec which is: * * Copyright (c) CMU 1993 * Computer Science, Speech Group * Chengxiang Lu and Alex Hauptmann * * $Id: g722_decode.c,v 1.15 2006/07/07 16:37:49 steveu Exp $ * * Modifications for WebRtc, 2011/04/28, by tlegrand: * -Removed usage of inttypes.h and tgmath.h * -Changed to use WebRtc types * -Changed __inline__ to __inline * -Added saturation check on output */ /*! \file */ #include <memory.h> #include <stdio.h> #include <stdlib.h> #include "modules/third_party/g722/g722_enc_dec.h" #if !defined(FALSE) #define FALSE … #endif #if !defined(TRUE) #define TRUE … #endif static __inline int16_t saturate(int32_t amp) { … } /*- End of function --------------------------------------------------------*/ static void block4(G722DecoderState *s, int band, int d); static void block4(G722DecoderState *s, int band, int d) { … } /*- End of function --------------------------------------------------------*/ G722DecoderState* WebRtc_g722_decode_init(G722DecoderState* s, int rate, int options) { … } /*- End of function --------------------------------------------------------*/ int WebRtc_g722_decode_release(G722DecoderState *s) { … } /*- End of function --------------------------------------------------------*/ size_t WebRtc_g722_decode(G722DecoderState *s, int16_t amp[], const uint8_t g722_data[], size_t len) { … } /*- End of function --------------------------------------------------------*/ /*- End of file ------------------------------------------------------------*/