diff options
author | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-03-10 05:34:52 +0300 |
---|---|---|
committer | Jean-Marc Valin <Jean-Marc.Valin@csiro.au> | 2008-03-10 05:34:52 +0300 |
commit | 29f52990b900af8f8014f4295925e538724d2be0 (patch) | |
tree | 64ea5e420526c667ee5a5f865848a802a8da4774 /libcelt/psy.c | |
parent | defa3575259b1a81a977befe8874797e783a6c53 (diff) |
Moved the psycoacoustics data to the mode struct
Diffstat (limited to 'libcelt/psy.c')
-rw-r--r-- | libcelt/psy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcelt/psy.c b/libcelt/psy.c index 6955a36..2ae547f 100644 --- a/libcelt/psy.c +++ b/libcelt/psy.c @@ -76,7 +76,7 @@ void psydecay_clear(struct PsyDecay *decay) /*celt_free(decay->decayL);*/ } -static void spreading_func(struct PsyDecay *d, celt_word32_t *psd, celt_mask_t *mask, int len) +static void spreading_func(const struct PsyDecay *d, celt_word32_t *psd, celt_mask_t *mask, int len) { int i; celt_word32_t mem; @@ -129,7 +129,7 @@ static void spreading_func(struct PsyDecay *d, celt_word32_t *psd, celt_mask_t * } /* Compute a marking threshold from the spectrum X. */ -void compute_masking(struct PsyDecay *decay, celt_word16_t *X, celt_mask_t *mask, int len) +void compute_masking(const struct PsyDecay *decay, celt_word16_t *X, celt_mask_t *mask, int len) { int i; int N; @@ -143,7 +143,7 @@ void compute_masking(struct PsyDecay *decay, celt_word16_t *X, celt_mask_t *mask } #if 0 /* Not needed for now, but will be useful in the future */ -void compute_mdct_masking(struct PsyDecay *decay, celt_word32_t *X, celt_mask_t *mask, int len) +void compute_mdct_masking(const struct PsyDecay *decay, celt_word32_t *X, celt_mask_t *mask, int len) { int i; VARDECL(float *psd); |