Skip to content

Commit ca48e7b

Browse files
committed
avcodec/sbcdsp_data: Make data static
This data is only used by sbcdsp.c, so delete sbcdsp_data.h, make a header out of sbcdsp_data.c and make the data contained therein static. Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent 0ce8868 commit ca48e7b

File tree

5 files changed

+303
-347
lines changed

5 files changed

+303
-347
lines changed

libavcodec/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ OBJS-$(CONFIG_SUBVIEWER_DECODER) += subviewerdec.o ass.o
717717
OBJS-$(CONFIG_SUNRAST_DECODER) += sunrast.o
718718
OBJS-$(CONFIG_SUNRAST_ENCODER) += sunrastenc.o
719719
OBJS-$(CONFIG_SBC_DECODER) += sbcdec.o sbc.o
720-
OBJS-$(CONFIG_SBC_ENCODER) += sbcenc.o sbc.o sbcdsp.o sbcdsp_data.o
720+
OBJS-$(CONFIG_SBC_ENCODER) += sbcenc.o sbc.o sbcdsp.o
721721
OBJS-$(CONFIG_SVQ1_DECODER) += svq1dec.o svq1.o h263data.o
722722
OBJS-$(CONFIG_SVQ1_ENCODER) += svq1enc.o svq1.o h263data.o \
723723
h263.o ituh263enc.o

libavcodec/sbcdsp.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,26 +107,26 @@ static inline void sbc_analyze_4b_4s_simd(SBCDSPContext *s,
107107
int16_t *x, int32_t *out, int out_stride)
108108
{
109109
/* Analyze blocks */
110-
s->sbc_analyze_4(x + 12, out, ff_sbcdsp_analysis_consts_fixed4_simd_odd);
110+
s->sbc_analyze_4(x + 12, out, sbcdsp_analysis_consts_fixed4_simd_odd);
111111
out += out_stride;
112-
s->sbc_analyze_4(x + 8, out, ff_sbcdsp_analysis_consts_fixed4_simd_even);
112+
s->sbc_analyze_4(x + 8, out, sbcdsp_analysis_consts_fixed4_simd_even);
113113
out += out_stride;
114-
s->sbc_analyze_4(x + 4, out, ff_sbcdsp_analysis_consts_fixed4_simd_odd);
114+
s->sbc_analyze_4(x + 4, out, sbcdsp_analysis_consts_fixed4_simd_odd);
115115
out += out_stride;
116-
s->sbc_analyze_4(x + 0, out, ff_sbcdsp_analysis_consts_fixed4_simd_even);
116+
s->sbc_analyze_4(x + 0, out, sbcdsp_analysis_consts_fixed4_simd_even);
117117
}
118118

119119
static inline void sbc_analyze_4b_8s_simd(SBCDSPContext *s,
120120
int16_t *x, int32_t *out, int out_stride)
121121
{
122122
/* Analyze blocks */
123-
s->sbc_analyze_8(x + 24, out, ff_sbcdsp_analysis_consts_fixed8_simd_odd);
123+
s->sbc_analyze_8(x + 24, out, sbcdsp_analysis_consts_fixed8_simd_odd);
124124
out += out_stride;
125-
s->sbc_analyze_8(x + 16, out, ff_sbcdsp_analysis_consts_fixed8_simd_even);
125+
s->sbc_analyze_8(x + 16, out, sbcdsp_analysis_consts_fixed8_simd_even);
126126
out += out_stride;
127-
s->sbc_analyze_8(x + 8, out, ff_sbcdsp_analysis_consts_fixed8_simd_odd);
127+
s->sbc_analyze_8(x + 8, out, sbcdsp_analysis_consts_fixed8_simd_odd);
128128
out += out_stride;
129-
s->sbc_analyze_8(x + 0, out, ff_sbcdsp_analysis_consts_fixed8_simd_even);
129+
s->sbc_analyze_8(x + 0, out, sbcdsp_analysis_consts_fixed8_simd_even);
130130
}
131131

132132
static inline void sbc_analyze_1b_8s_simd_even(SBCDSPContext *s,
@@ -137,15 +137,15 @@ static inline void sbc_analyze_1b_8s_simd_odd(SBCDSPContext *s,
137137
int16_t *x, int32_t *out,
138138
int out_stride)
139139
{
140-
s->sbc_analyze_8(x, out, ff_sbcdsp_analysis_consts_fixed8_simd_odd);
140+
s->sbc_analyze_8(x, out, sbcdsp_analysis_consts_fixed8_simd_odd);
141141
s->sbc_analyze_8s = sbc_analyze_1b_8s_simd_even;
142142
}
143143

144144
static inline void sbc_analyze_1b_8s_simd_even(SBCDSPContext *s,
145145
int16_t *x, int32_t *out,
146146
int out_stride)
147147
{
148-
s->sbc_analyze_8(x, out, ff_sbcdsp_analysis_consts_fixed8_simd_even);
148+
s->sbc_analyze_8(x, out, sbcdsp_analysis_consts_fixed8_simd_even);
149149
s->sbc_analyze_8s = sbc_analyze_1b_8s_simd_odd;
150150
}
151151

libavcodec/sbcdsp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
#ifndef AVCODEC_SBCDSP_H
3333
#define AVCODEC_SBCDSP_H
3434

35+
#include <stdint.h>
36+
3537
#include "libavutil/mem_internal.h"
3638

3739
#include "sbc.h"
38-
#include "sbcdsp_data.h"
3940

4041
#define SCALE_OUT_BITS 15
4142
#define SBC_X_BUFFER_SIZE 328

0 commit comments

Comments
 (0)