mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avcodec/sbcdsp: Constify
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -40,7 +40,7 @@ void ff_sbc_analyze_8_armv6(const int16_t *in, int32_t *out, const int16_t *cons
|
||||
|
||||
void ff_sbc_analyze_4_neon(const int16_t *in, int32_t *out, const int16_t *consts);
|
||||
void ff_sbc_analyze_8_neon(const int16_t *in, int32_t *out, const int16_t *consts);
|
||||
void ff_sbc_calc_scalefactors_neon(int32_t sb_sample_f[16][2][8],
|
||||
void ff_sbc_calc_scalefactors_neon(const int32_t sb_sample_f[16][2][8],
|
||||
uint32_t scale_factor[2][8],
|
||||
int blocks, int channels, int subbands);
|
||||
int ff_sbc_calc_scalefactors_j_neon(int32_t sb_sample_f[16][2][8],
|
||||
|
||||
+8
-8
@@ -103,8 +103,8 @@ static void sbc_analyze_8_simd(const int16_t *in, int32_t *out,
|
||||
sbc_analyze_simd(in, out, consts, 8);
|
||||
}
|
||||
|
||||
static inline void sbc_analyze_4b_4s_simd(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out, int out_stride)
|
||||
static inline void sbc_analyze_4b_4s_simd(SBCDSPContext *s, const int16_t *x,
|
||||
int32_t *out, int out_stride)
|
||||
{
|
||||
/* Analyze blocks */
|
||||
s->sbc_analyze_4(x + 12, out, sbcdsp_analysis_consts_fixed4_simd_odd);
|
||||
@@ -116,8 +116,8 @@ static inline void sbc_analyze_4b_4s_simd(SBCDSPContext *s,
|
||||
s->sbc_analyze_4(x + 0, out, sbcdsp_analysis_consts_fixed4_simd_even);
|
||||
}
|
||||
|
||||
static inline void sbc_analyze_4b_8s_simd(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out, int out_stride)
|
||||
static inline void sbc_analyze_4b_8s_simd(SBCDSPContext *s, const int16_t *x,
|
||||
int32_t *out, int out_stride)
|
||||
{
|
||||
/* Analyze blocks */
|
||||
s->sbc_analyze_8(x + 24, out, sbcdsp_analysis_consts_fixed8_simd_odd);
|
||||
@@ -130,11 +130,11 @@ static inline void sbc_analyze_4b_8s_simd(SBCDSPContext *s,
|
||||
}
|
||||
|
||||
static inline void sbc_analyze_1b_8s_simd_even(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out,
|
||||
const int16_t *x, int32_t *out,
|
||||
int out_stride);
|
||||
|
||||
static inline void sbc_analyze_1b_8s_simd_odd(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out,
|
||||
const int16_t *x, int32_t *out,
|
||||
int out_stride)
|
||||
{
|
||||
s->sbc_analyze_8(x, out, sbcdsp_analysis_consts_fixed8_simd_odd);
|
||||
@@ -142,7 +142,7 @@ static inline void sbc_analyze_1b_8s_simd_odd(SBCDSPContext *s,
|
||||
}
|
||||
|
||||
static inline void sbc_analyze_1b_8s_simd_even(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out,
|
||||
const int16_t *x, int32_t *out,
|
||||
int out_stride)
|
||||
{
|
||||
s->sbc_analyze_8(x, out, sbcdsp_analysis_consts_fixed8_simd_even);
|
||||
@@ -267,7 +267,7 @@ static int sbc_enc_process_input_8s(int position, const uint8_t *pcm,
|
||||
return position;
|
||||
}
|
||||
|
||||
static void sbc_calc_scalefactors(int32_t sb_sample_f[16][2][8],
|
||||
static void sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],
|
||||
uint32_t scale_factor[2][8],
|
||||
int blocks, int channels, int subbands)
|
||||
{
|
||||
|
||||
+3
-3
@@ -53,11 +53,11 @@ struct sbc_dsp_context {
|
||||
/* Polyphase analysis filter for 4 subbands configuration,
|
||||
* it handles "increment" blocks at once */
|
||||
void (*sbc_analyze_4s)(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out, int out_stride);
|
||||
const int16_t *x, int32_t *out, int out_stride);
|
||||
/* Polyphase analysis filter for 8 subbands configuration,
|
||||
* it handles "increment" blocks at once */
|
||||
void (*sbc_analyze_8s)(SBCDSPContext *s,
|
||||
int16_t *x, int32_t *out, int out_stride);
|
||||
const int16_t *x, int32_t *out, int out_stride);
|
||||
/* Process input data (deinterleave, endian conversion, reordering),
|
||||
* depending on the number of subbands and input data byte order */
|
||||
int (*sbc_enc_process_input_4s)(int position, const uint8_t *pcm,
|
||||
@@ -67,7 +67,7 @@ struct sbc_dsp_context {
|
||||
int16_t X[2][SBC_X_BUFFER_SIZE],
|
||||
int nsamples, int nchannels);
|
||||
/* Scale factors calculation */
|
||||
void (*sbc_calc_scalefactors)(int32_t sb_sample_f[16][2][8],
|
||||
void (*sbc_calc_scalefactors)(const int32_t sb_sample_f[16][2][8],
|
||||
uint32_t scale_factor[2][8],
|
||||
int blocks, int channels, int subbands);
|
||||
/* Scale factors calculation with joint stereo support */
|
||||
|
||||
@@ -115,7 +115,7 @@ cglobal sbc_analyze_8, 3, 3, 4, in, out, consts
|
||||
|
||||
|
||||
;*******************************************************************
|
||||
;void ff_sbc_calc_scalefactors(int32_t sb_sample_f[16][2][8],
|
||||
;void ff_sbc_calc_scalefactors(const int32_t sb_sample_f[16][2][8],
|
||||
; uint32_t scale_factor[2][8],
|
||||
; int blocks, int channels, int subbands)
|
||||
;*******************************************************************
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
void ff_sbc_analyze_4_mmx(const int16_t *in, int32_t *out, const int16_t *consts);
|
||||
void ff_sbc_analyze_8_mmx(const int16_t *in, int32_t *out, const int16_t *consts);
|
||||
void ff_sbc_calc_scalefactors_mmx(int32_t sb_sample_f[16][2][8],
|
||||
void ff_sbc_calc_scalefactors_mmx(const int32_t sb_sample_f[16][2][8],
|
||||
uint32_t scale_factor[2][8],
|
||||
int blocks, int channels, int subbands);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user