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
33 dst[i] = src[i] * mul;33 dst[i] = src[i] * mul;
34}34}
35 35
36static 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
44static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst,36static 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
53av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx)45av_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
libavcodec/fmtconvert.h+0−10
@@ -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,

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