comparison qcelpdec.c @ 10011:c1cfa4679371 libavcodec

Expose QCELP's floating-point LSP-to-LPC function qcelp_lsp exported a single function, ff_acelp_lspd2lpc, which was not specific to qcelp. It can be kept with its fixed-point version ff_acelp_lsp2lpc in lpc.c. Patch by Colin McQuillan ( m.niloc googlemail com )
author superdump
date Mon, 03 Aug 2009 08:37:02 +0000
parents 18dab2b47db7
children 5f2ced30548b
comparison
equal deleted inserted replaced
10010:18dab2b47db7 10011:c1cfa4679371
36 #include "qcelpdata.h" 36 #include "qcelpdata.h"
37 37
38 #include "celp_math.h" 38 #include "celp_math.h"
39 #include "celp_filters.h" 39 #include "celp_filters.h"
40 #include "acelp_vectors.h" 40 #include "acelp_vectors.h"
41 #include "lsp.h"
41 42
42 #undef NDEBUG 43 #undef NDEBUG
43 #include <assert.h> 44 #include <assert.h>
44 45
45 typedef enum 46 typedef enum
74 uint16_t first16bits; 75 uint16_t first16bits;
75 uint8_t warned_buf_mismatch_bitrate; 76 uint8_t warned_buf_mismatch_bitrate;
76 } QCELPContext; 77 } QCELPContext;
77 78
78 /** 79 /**
79 * Reconstructs LPC coefficients from the line spectral pair frequencies.
80 *
81 * TIA/EIA/IS-733 2.4.3.3.5
82 */
83 void ff_acelp_lspd2lpc(const double *lsp, float *lpc);
84
85 /**
86 * Initialize the speech codec according to the specification. 80 * Initialize the speech codec according to the specification.
87 * 81 *
88 * TIA/EIA/IS-733 2.4.9 82 * TIA/EIA/IS-733 2.4.9
89 */ 83 */
90 static av_cold int qcelp_decode_init(AVCodecContext *avctx) 84 static av_cold int qcelp_decode_init(AVCodecContext *avctx)