From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] lavc/fmtconvert: remove dead int32_to_float
Date: Fri, 16 Sep 2022 21:31:45 +0200
Message-ID: <GV1P250MB073778AE0EA46F7F308594D68F489@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20220916192718.55949-1-remi@remlab.net>
remi@remlab.net:
> From: Rémi Denis-Courmont <remi@remlab.net>
>
> This is not used anywhere and has no implementations other than the
> plain C one.
> ---
> libavcodec/fmtconvert.c | 9 ---------
> libavcodec/fmtconvert.h | 10 ----------
> 2 files changed, 19 deletions(-)
>
> diff --git a/libavcodec/fmtconvert.c b/libavcodec/fmtconvert.c
> index fd56a63c77..00f55f8f1e 100644
> --- a/libavcodec/fmtconvert.c
> +++ b/libavcodec/fmtconvert.c
> @@ -33,14 +33,6 @@ static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src,
> dst[i] = src[i] * mul;
> }
>
> -static void int32_to_float_c(float *dst, const int32_t *src, intptr_t len)
> -{
> - int i;
> -
> - for (i = 0; i < len; i++)
> - dst[i] = (float)src[i];
> -}
> -
> static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst,
> const int32_t *src, const float *mul,
> int len)
> @@ -52,7 +44,6 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst,
>
> av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx)
> {
> - c->int32_to_float = int32_to_float_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;
>
> diff --git a/libavcodec/fmtconvert.h b/libavcodec/fmtconvert.h
> index a1b17e4f04..b2df7a9629 100644
> --- a/libavcodec/fmtconvert.h
> +++ b/libavcodec/fmtconvert.h
> @@ -37,16 +37,6 @@ typedef struct FmtConvertContext {
> */
> void (*int32_to_float_fmul_scalar)(float *dst, const int32_t *src,
> float mul, int len);
> - /**
> - * Convert an array of int32_t to float.
> - * @param dst destination array of float.
> - * constraints: 32-byte aligned
> - * @param src source array of int32_t.
> - * constraints: 32-byte aligned
> - * @param len number of elements to convert.
> - * constraints: multiple of 8
> - */
> - void (*int32_to_float)(float *dst, const int32_t *src, intptr_t len);
>
> /**
> * Convert an array of int32_t to float and multiply by a float value from another array,
Seems like the last usage of this was removed in
46089967722f74e794865a044f5f682f26628802. This should be mentioned in
the commit message. LGTM apart from that; nice catch.
- Andreas
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2022-09-16 19:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 19:27 remi
2022-09-16 19:31 ` Andreas Rheinhardt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=GV1P250MB073778AE0EA46F7F308594D68F489@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM \
--to=andreas.rheinhardt@outlook.com \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git