This is no longer used since 46089967722f74e794865a044f5f682f26628802. It also has no implementations other than the plain C one.
Unified · Split
| @@ -33,14 +33,6 @@ static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, · 32 unmodified lines | |||
| 33 | dst[i] = src[i] * mul; | 33 | dst[i] = src[i] * mul; |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | static void int32_to_float_c(float *dst, const int32_t *src, intptr_t len) | ||
| 37 | { | ||
| 38 | int i; | ||
| 39 | |||
| 40 | for (i = 0; i < len; i++) | ||
| 41 | dst[i] = (float)src[i]; | ||
| 42 | } | ||
| 43 | |||
| 44 | static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, | 36 | static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, |
| 45 | const int32_t *src, const float *mul, | 37 | const int32_t *src, const float *mul, |
| 46 | int len) | 38 | int len) |
| @@ -52,7 +44,6 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, · 5 unmodified lines | |||
| 52 | 44 | ||
| 53 | av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx) | 45 | av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx) |
| 54 | { | 46 | { |
| 55 | c->int32_to_float = int32_to_float_c; | ||
| 56 | c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; | 47 | c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; |
| 57 | c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c; | 48 | c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c; |
| 58 | 49 | ||
| @@ -37,16 +37,6 @@ typedef struct FmtConvertContext { · 36 unmodified lines | |||
| 37 | */ | 37 | */ |
| 38 | void (*int32_to_float_fmul_scalar)(float *dst, const int32_t *src, | 38 | void (*int32_to_float_fmul_scalar)(float *dst, const int32_t *src, |
| 39 | float mul, int len); | 39 | float mul, int len); |
| 40 | /** | ||
| 41 | * Convert an array of int32_t to float. | ||
| 42 | * @param dst destination array of float. | ||
| 43 | * constraints: 32-byte aligned | ||
| 44 | * @param src source array of int32_t. | ||
| 45 | * constraints: 32-byte aligned | ||
| 46 | * @param len number of elements to convert. | ||
| 47 | * constraints: multiple of 8 | ||
| 48 | */ | ||
| 49 | void (*int32_to_float)(float *dst, const int32_t *src, intptr_t len); | ||
| 50 | 40 | ||
| 51 | /** | 41 | /** |
| 52 | * Convert an array of int32_t to float and multiply by a float value from another array, | 42 | * Convert an array of int32_t to float and multiply by a float value from another array, |