summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-04-20 14:19:11 +0000
committerBenny Prijono <bennylp@teluu.com>2009-04-20 14:19:11 +0000
commitf8ca7b03d701cd46ead9a61ee18c17d232a616a1 (patch)
treebc15ac76df66a68066a694455608a3307c1971ab /third_party
parent96d0f3f079f982be294f694590c49b8e9fed2420 (diff)
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
Diffstat (limited to 'third_party')
-rw-r--r--third_party/g7221/common/defs.h2
-rw-r--r--third_party/g7221/encode/sam2coef.c5
2 files changed, 4 insertions, 3 deletions
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;