History

lavc/fmtconvert: remove dead int32_to_float

This is no longer used since 46089967722f74e794865a044f5f682f26628802. It also has no implementations other than the plain C one.

Rémi Denis-Courmont committed 4 years ago

Commit 7f27ce61 parent fc5aef52 files · +0 −19Browse files

Unified · Split

2 files
  1. libavcodec/fmtconvert.c +0 −9
  2. libavcodec/fmtconvert.h +0 −10
libavcodec/fmtconvert.c+0−9
@@ -33,14 +33,6 @@ static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, · 32 unmodified lines
3333 dst[i] = src[i] * mul;
3434 }
3535
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−
4436 static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst,
4537 const int32_t *src, const float *mul,
4638 int len)
@@ -52,7 +44,6 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, · 5 unmodified lines
5244
5345 av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx)
5446 {
55− c->int32_to_float = int32_to_float_c;
5647 c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c;
5748 c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c;
5849
libavcodec/fmtconvert.h+0−10
@@ -37,16 +37,6 @@ typedef struct FmtConvertContext { · 36 unmodified lines
3737 */
3838 void (*int32_to_float_fmul_scalar)(float *dst, const int32_t *src,
3939 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);
5040
5141 /**
5242 * Convert an array of int32_t to float and multiply by a float value from another array,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t