From f8ca7b03d701cd46ead9a61ee18c17d232a616a1 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 20 Apr 2009 14:19:11 +0000 Subject: More ticket #774: added option to shift PCM input to encoder right by some value (default is 1) to make it compatible with some other app git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2620 74dad513-b988-da41-8d7b-12977e46ad98 --- third_party/g7221/common/defs.h | 2 +- third_party/g7221/encode/sam2coef.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'third_party') diff --git a/third_party/g7221/common/defs.h b/third_party/g7221/common/defs.h index 2c4978e0..40db16fb 100644 --- a/third_party/g7221/common/defs.h +++ b/third_party/g7221/common/defs.h @@ -140,7 +140,7 @@ void decoder(Bit_Obj *bitobj, Word16 *old_decoder_mlt_coefs, Word16 frame_error_flag); -Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *history,Word16 *coefs,Word16 dct_length); +Word16 samples_to_rmlt_coefs(const Word16 *new_samples,Word16 *history,Word16 *coefs,Word16 dct_length); void rmlt_coefs_to_samples(Word16 *coefs, Word16 *old_samples, Word16 *out_samples, diff --git a/third_party/g7221/encode/sam2coef.c b/third_party/g7221/encode/sam2coef.c index fc369e0c..3dd5b766 100644 --- a/third_party/g7221/encode/sam2coef.c +++ b/third_party/g7221/encode/sam2coef.c @@ -65,12 +65,13 @@ ***************************************************************************/ -Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coefs,Word16 dct_length) +Word16 samples_to_rmlt_coefs(const Word16 *new_samples,Word16 *old_samples,Word16 *coefs,Word16 dct_length) { Word16 index, vals_left,mag_shift,n; Word16 windowed_data[MAX_DCT_LENGTH]; - Word16 *new_ptr, *old_ptr, *sam_low, *sam_high; + Word16 *old_ptr; + const Word16 *new_ptr, *sam_low, *sam_high; Word16 *win_low, *win_high; Word16 *dst_ptr; Word16 neg_win_low; -- cgit v1.2.3