You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/fmtconvert: Remove unused AVCodecContext parameter
Unused since d74a8cb7e4.
Reviewed-by: Rémi Denis-Courmont <remi@remlab.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
			
			
This commit is contained in:
		| @@ -22,7 +22,6 @@ | ||||
|  | ||||
| #include "libavutil/attributes.h" | ||||
| #include "libavutil/aarch64/cpu.h" | ||||
| #include "libavcodec/avcodec.h" | ||||
| #include "libavcodec/fmtconvert.h" | ||||
|  | ||||
| void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, | ||||
| @@ -31,8 +30,7 @@ void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, | ||||
| void ff_int32_to_float_fmul_scalar_neon(float *dst, const int32_t *src, | ||||
|                                         float mul, int len); | ||||
|  | ||||
| av_cold void ff_fmt_convert_init_aarch64(FmtConvertContext *c, | ||||
|                                          AVCodecContext *avctx) | ||||
| av_cold void ff_fmt_convert_init_aarch64(FmtConvertContext *c) | ||||
| { | ||||
|     int cpu_flags = av_get_cpu_flags(); | ||||
|  | ||||
|   | ||||
| @@ -230,7 +230,7 @@ static av_cold int ac3_decode_init(AVCodecContext *avctx) | ||||
| #if (USE_FIXED) | ||||
|     s->fdsp = avpriv_alloc_fixed_dsp(avctx->flags & AV_CODEC_FLAG_BITEXACT); | ||||
| #else | ||||
|     ff_fmt_convert_init(&s->fmt_conv, avctx); | ||||
|     ff_fmt_convert_init(&s->fmt_conv); | ||||
|     s->fdsp = avpriv_float_dsp_alloc(avctx->flags & AV_CODEC_FLAG_BITEXACT); | ||||
| #endif | ||||
|     if (!s->fdsp) | ||||
|   | ||||
| @@ -57,6 +57,7 @@ | ||||
|  | ||||
| #include "ac3.h" | ||||
| #include "ac3dsp.h" | ||||
| #include "avcodec.h" | ||||
| #include "bswapdsp.h" | ||||
| #include "get_bits.h" | ||||
| #include "fft.h" | ||||
|   | ||||
| @@ -22,7 +22,6 @@ | ||||
|  | ||||
| #include "libavutil/attributes.h" | ||||
| #include "libavutil/arm/cpu.h" | ||||
| #include "libavcodec/avcodec.h" | ||||
| #include "libavcodec/fmtconvert.h" | ||||
|  | ||||
| void ff_int32_to_float_fmul_array8_neon(FmtConvertContext *c, float *dst, | ||||
| @@ -37,7 +36,7 @@ void ff_int32_to_float_fmul_array8_vfp(FmtConvertContext *c, float *dst, | ||||
|                                        const int32_t *src, const float *mul, | ||||
|                                        int len); | ||||
|  | ||||
| av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx) | ||||
| av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c) | ||||
| { | ||||
|     int cpu_flags = av_get_cpu_flags(); | ||||
|  | ||||
|   | ||||
| @@ -22,7 +22,6 @@ | ||||
|  | ||||
| #include "config.h" | ||||
| #include "libavutil/attributes.h" | ||||
| #include "avcodec.h" | ||||
| #include "fmtconvert.h" | ||||
|  | ||||
| static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, | ||||
| @@ -42,19 +41,19 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, | ||||
|         c->int32_to_float_fmul_scalar(&dst[i], &src[i], *mul++, 8); | ||||
| } | ||||
|  | ||||
| av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx) | ||||
| av_cold void ff_fmt_convert_init(FmtConvertContext *c) | ||||
| { | ||||
|     c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; | ||||
|     c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c; | ||||
|  | ||||
| #if ARCH_AARCH64 | ||||
|     ff_fmt_convert_init_aarch64(c, avctx); | ||||
|     ff_fmt_convert_init_aarch64(c); | ||||
| #elif ARCH_ARM | ||||
|     ff_fmt_convert_init_arm(c, avctx); | ||||
|     ff_fmt_convert_init_arm(c); | ||||
| #elif ARCH_PPC | ||||
|     ff_fmt_convert_init_ppc(c, avctx); | ||||
|     ff_fmt_convert_init_ppc(c); | ||||
| #elif ARCH_X86 | ||||
|     ff_fmt_convert_init_x86(c, avctx); | ||||
|     ff_fmt_convert_init_x86(c); | ||||
| #endif | ||||
| #if HAVE_MIPSFPU | ||||
|     ff_fmt_convert_init_mips(c); | ||||
|   | ||||
| @@ -23,7 +23,7 @@ | ||||
| #ifndef AVCODEC_FMTCONVERT_H | ||||
| #define AVCODEC_FMTCONVERT_H | ||||
|  | ||||
| #include "avcodec.h" | ||||
| #include <stdint.h> | ||||
|  | ||||
| typedef struct FmtConvertContext { | ||||
|     /** | ||||
| @@ -56,12 +56,12 @@ typedef struct FmtConvertContext { | ||||
|  | ||||
| } FmtConvertContext; | ||||
|  | ||||
| void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx); | ||||
| void ff_fmt_convert_init(FmtConvertContext *c); | ||||
|  | ||||
| void ff_fmt_convert_init_aarch64(FmtConvertContext *c, AVCodecContext *avctx); | ||||
| void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx); | ||||
| void ff_fmt_convert_init_ppc(FmtConvertContext *c, AVCodecContext *avctx); | ||||
| void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx); | ||||
| void ff_fmt_convert_init_aarch64(FmtConvertContext *c); | ||||
| void ff_fmt_convert_init_arm(FmtConvertContext *c); | ||||
| void ff_fmt_convert_init_ppc(FmtConvertContext *c); | ||||
| void ff_fmt_convert_init_x86(FmtConvertContext *c); | ||||
| void ff_fmt_convert_init_mips(FmtConvertContext *c); | ||||
|  | ||||
| #endif /* AVCODEC_FMTCONVERT_H */ | ||||
|   | ||||
| @@ -49,7 +49,6 @@ | ||||
|  */ | ||||
| #include "config.h" | ||||
| #include "libavutil/attributes.h" | ||||
| #include "libavcodec/avcodec.h" | ||||
| #include "libavcodec/fmtconvert.h" | ||||
| #include "libavutil/mips/asmdefs.h" | ||||
|  | ||||
|   | ||||
| @@ -54,8 +54,7 @@ static void int32_to_float_fmul_scalar_altivec(float *dst, const int32_t *src, | ||||
|  | ||||
| #endif /* HAVE_ALTIVEC */ | ||||
|  | ||||
| av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c, | ||||
|                                      AVCodecContext *avctx) | ||||
| av_cold void ff_fmt_convert_init_ppc(FmtConvertContext *c) | ||||
| { | ||||
| #if HAVE_ALTIVEC | ||||
|     if (!PPC_ALTIVEC(av_get_cpu_flags())) | ||||
|   | ||||
| @@ -35,7 +35,7 @@ void ff_int32_to_float_fmul_array8_sse2(FmtConvertContext *c, float *dst, const | ||||
|  | ||||
| #endif /* HAVE_X86ASM */ | ||||
|  | ||||
| av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx) | ||||
| av_cold void ff_fmt_convert_init_x86(FmtConvertContext *c) | ||||
| { | ||||
| #if HAVE_X86ASM | ||||
|     int cpu_flags = av_get_cpu_flags(); | ||||
|   | ||||
| @@ -56,7 +56,7 @@ void checkasm_check_fmtconvert(void) | ||||
|     for (i = 0; i < FF_ARRAY_ELEMS(scale_arr); i++) | ||||
|         scale_arr[i] = (FF_ARRAY_ELEMS(scale_arr) - FF_ARRAY_ELEMS(scale_arr) / 2) / 13; | ||||
|  | ||||
|     ff_fmt_convert_init(&c, NULL); | ||||
|     ff_fmt_convert_init(&c); | ||||
|  | ||||
|     memset(dst0, 0, sizeof(*dst0) * BUF_SIZE); | ||||
|     memset(dst1, 0, sizeof(*dst1) * BUF_SIZE); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user