From patchwork Fri Sep 16 19:27:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?R=C3=A9mi_Denis-Courmont?= X-Patchwork-Id: 37968 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:3b1c:b0:96:9ee8:5cfd with SMTP id c28csp1175056pzh; Fri, 16 Sep 2022 12:27:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5t9KAfzZRzTCVPnu6EJ0bspKzPcV/3Akinkl5Og9kblxw/1hAokvUQbGvKcwzHlMezIyxs X-Received: by 2002:a17:907:86a5:b0:780:156d:e842 with SMTP id qa37-20020a17090786a500b00780156de842mr4536940ejc.555.1663356450872; Fri, 16 Sep 2022 12:27:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663356450; cv=none; d=google.com; s=arc-20160816; b=cEKCloc27zXhoMOEGfFKD4YsBcDzuEmj6uyr4dNhyFjxA/PBriI+H4zYI9nOItApwe rIbTR1MEKtuKlLmIYP+quALyErMpggbuUR9mMjjQHU41JBidNgkwid8P6yyzpDkCGxOn yGrKxt/LBADJntnYiuYiNgDwJtrAbnPz5PQyawpExL7N25uKAYrLxXrVHTpuyvr9k44o A1nZa/OJa6L1hek4KSKAM5+z+WyDXaUBodf0NPnCdwSfJSfaJLWKAOcW8JxTcol4gXQA jlALoEYKjG6yxILx2lt27S0ZRy6nhRW6K5uWEAyA/tCqeKuurvpl/lTBew1/qZ6xU1H/ WBbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=3rwYzeAYZHxdodo9Qnms85OLZoWxB+odJPcwen+H/co=; b=BAvV3JlTMi19DaJk2tkzT4KvgTM6Qs5CyD7Ou0Yslz0TT671oP4nkebMxYpYmOaMIu +P15N1m0+p4DCd4F435dzBRObErLaoH89QftIQgdOX7xytaqhBM7P0/Xws58V75M6/6Y C0QWB5UFtchmZHapf2zCwJZ3hA/GaTjlImcxSzJzFPqDAQLSFPFrftzvFA3+KP1n9eSP B8S1V1H9wNKbgLOda4/PcaC4hZbGHtBkvguy+S0dDnZbqvSHGw/fPz3h/WQAUwHFrfLr sRLDixzgouIDxdBVr4zbkgLgYCIxBe8q0GKSZ8YGthr1SEu6L2t6YQBKZsWIN5eixvKV e+2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id s19-20020a170906455300b007800311e216si7607782ejq.12.2022.09.16.12.27.29; Fri, 16 Sep 2022 12:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 187A068BC34; Fri, 16 Sep 2022 22:27:26 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [51.75.19.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 924BD68BA38 for ; Fri, 16 Sep 2022 22:27:19 +0300 (EEST) Received: from basile.remlab.net (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id C1FEFC0005 for ; Fri, 16 Sep 2022 22:27:18 +0300 (EEST) From: remi@remlab.net To: ffmpeg-devel@ffmpeg.org Date: Fri, 16 Sep 2022 22:27:18 +0300 Message-Id: <20220916192718.55949-1-remi@remlab.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] lavc/fmtconvert: remove dead int32_to_float X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Q5XcqhIpJrhi From: RĂ©mi Denis-Courmont 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,