From patchwork Mon Sep 6 12:42:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30046 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2a4a:0:0:0:0 with SMTP id k10csp3722543iov; Mon, 6 Sep 2021 05:44:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+eDdM6hm/TM0xhdTRN1YKltuuVu/pTjuC+k3AP9t+2muVtsOX53ireY/KJLehTmqXOdR9 X-Received: by 2002:aa7:da81:: with SMTP id q1mr12828704eds.29.1630932291559; Mon, 06 Sep 2021 05:44:51 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z23si7721540ejl.612.2021.09.06.05.44.51; Mon, 06 Sep 2021 05:44:51 -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; dkim=neutral (body hash did not verify) header.i=@outlook.com header.s=selector1 header.b=k2Xt2TC5; arc=fail (body hash mismatch); 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AE45768A637; Mon, 6 Sep 2021 15:43:39 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2108.outbound.protection.outlook.com [40.92.89.108]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7588C68A5F7 for ; Mon, 6 Sep 2021 15:43:29 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gypQq19i4fieiWqWos3OzfmvIQso1VgevxHB1Vz7K1jk+uOgEExRzs5M+tZ971O+iydb2R3UN8ivY2WWuJ2g0GjKM0m3czjNTP65nXH9C8s1rLIGicF9ytGSdzANKc/ItXf5o2SMnlqE8KHh3pd/1sk1HHT6BS3eaEDvZhRzKY6v9IIiI8Mx0lEg007+ZLMDlViHRH2rwbhxPU7FMxOBPkf08I8oX4JErCAn5vEfSwwhHVtqVPJ5snY6gXyYnDR4lFhV5IyZjJmBePwSeonQC6dzB3hfApEdOzzC2oQQQSM6X042faQw7wK24LSJ3O79ijAMNINhGKUenBDm00amLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=59MN/2PS/nemzIyTupeJlFihQ7sUoEi7rJrR5ETneXM=; b=nVtL+Hg3v/me1Mlq5LCrArUTLtXcfV1ml+p9JcNU8yNhE3FPZJuk1peTyDcex15EnUcRP/uK0Cv46JejnjnDnGemGIxRImn/WXefHo1GwNBcu3xjAut8bSDeqRNmO7CbeEawnnoSSmbJ2Gxj926VnPdJeLdkI+dnpEmxpONVM8G7DR5lRXwp2VFGHcec09x8bMwki66dl3a+MMi16K7xg9laZuvuX1s5Gt/uPydPrfQnA1DV8XxgHAgM8agn3JvDmZgdGtRAv96a3T5osvpXcRbiQdnk8ZONPtxHCD+HeOLX+mBd6Mdz2b93ovVUTliJluCDoqfLbwEfE+iTZyLqLw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=59MN/2PS/nemzIyTupeJlFihQ7sUoEi7rJrR5ETneXM=; b=k2Xt2TC5ouTPT/CFp2U+WRssvW5hdodH/St9J+GLOPUOxsd8SElzQevXFo3T/ff8XF/r8h/0sO1eEPTKBoqVhttkxhGWx8s7KV4vyZ4Ncf/Ruqr+Rs4kQwn1q8kgzFWVOr/eGabCXUcwHHUimoU2F0HkrQjhOTdzzB9uRM0spXJz+2d02pLGnA7rwK5YEKEvnDE/c18+cGac+mQn4SHWV0dHSc4NAkehV0wx99Q460AtsdbeouC5eGJ+1hiFnpuLT67lfk6hgZCjbxpEUEWKJ5rGlkxtIcgavtNmzLZItqEoyVBsYhAydqr4v0oFjQHH8+KpkcQy3roMUzPZRhs/tg== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AM5PR0301MB2515.eurprd03.prod.outlook.com (2603:10a6:203:8::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.21; Mon, 6 Sep 2021 12:43:19 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00%3]) with mapi id 15.20.4478.025; Mon, 6 Sep 2021 12:43:19 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 6 Sep 2021 14:42:58 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [rJnz5EmXpZSIaNeM1UTPKDkZ3GcLi2xN] X-ClientProxiedBy: AM0PR01CA0084.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::25) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210906124301.4161498-7-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM0PR01CA0084.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19 via Frontend Transport; Mon, 6 Sep 2021 12:43:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5841054e-3ea1-424c-6f9d-08d97133e754 X-MS-Exchange-SLBlob-MailProps: dEG5jEBie8koNIbw20JU/eBv5d4Y6L0onVsvqc2iUyNHsBpq+q6L6L5Xhe+iQsUwNOhv6TIMONhiP9v1D3BojMPhO7kzEiDWiLaBqL96EpB+m9DLURQ3SlQ0lzRfXR0/DHKZZo6s1Ul+2wl/MST4axquaWtCfkmRipDOiGSnENWUDJQlkqXMP/2Mw3KoshbNPlFGqtjiYq9BcBGjVYpaptkkEHFVNixkOsPW8k2nJVyxAs073PnO2mI4vZoAWXaxKMWyD/SpS7oT5JVwYutGTVJvrOyyJ3eZXV/qXPLYIndxy5c2LUEnxxQ46aYvBZ3p8x5JZ8PjwOFDsvOIHKDpJtLr7lmyJHvZ9uSoFloHrLlcX2c9M6rggSvf3TOjHKeEpj1eihcyHETNhNVyr2NULrLfakPuTpPRrqh6hENvHEfo3uXqTQdoOs1j6eGaCV+YZBBmQcLN3EyEzrRoFgf2+ARkP7C/ttpFcj+Z+2F8TMxrgqAEYkxf407ofx91IUw0a7SehSB27xasFM/1O/96IhhQUli6R0a2LDkRINQ8gEo914V5z5LhCz8ouwsRShzT3QPlb7fk4nFhvtrU6rBWjrwVkUO3Q9HM7rMzUOd0n12XRGDWmndGYwK7j7TfI/zBqk4ZgkSGXZ820zogmq/RjJJbE+UPGwLPMx4i6aYklhhfH72WuwXAKg== X-MS-TrafficTypeDiagnostic: AM5PR0301MB2515: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7WXsbOz1SGcmLs/5tc+XGzV8k/p3GoGHlpguI/HP5tRu9qlkQN6gzm9Nct4dCHjTXYpJSHJf1AoKqcs1i2Qn+04HdjTYKEVhFu80gY0Ud9EgC/8Eu7kMFyjN3ziLvWU2pLysWdfyEZP3KJA7o4JIrveZ1+BXMnMOPAx+urN76bbjsMiOxsvOiW1giDioN8VS3Kqhz1oX6udcGjkIZ9uOXsVHaY3qfWMF87YsR3sz8h5fZUAdnZ4jbU6L78x+9IJsr7TCZFHJt/1U5DYF62vHjh+0yMKMu6hczfkyu8j7fW/AUjWCxM2DXcjdjlk2rK0Tr5Pb0/EbvHhBWdzHlOHabAQssob8QyQfj4M6Wb+C46H/dZLmpt9y136kpc1rdFCf47GQ4wV4p27nBkISJC8cVpcz/7PipSb6X9uJcnHqSwsj4IPtGNmVvGzE4a1srHZh X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: pW2MVcat4p7+vLw3SEqyye7z3xMdjgkCk1P+B8F+A15v9UZicTvv5jhtTYoZc0oY1k2DNnoEzdIjrpepvqAcDJkHK/px93iZ+fLDumIsxNcSOGY62eLnuPZugMRqga30zOhg0wN8F+KFoE9PgGzzwQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5841054e-3ea1-424c-6f9d-08d97133e754 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2021 12:43:19.0406 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0301MB2515 Subject: [FFmpeg-devel] [PATCH 08/11] avcodec/iirfilter: Make ff_iir_filter_flt() static 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 Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: WAiXWGJz7HrY Signed-off-by: Andreas Rheinhardt --- libavcodec/iirfilter.c | 21 ++++++++++++++++----- libavcodec/iirfilter.h | 16 ---------------- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c index cd5bbc943a..900893d2ff 100644 --- a/libavcodec/iirfilter.c +++ b/libavcodec/iirfilter.c @@ -287,10 +287,21 @@ void ff_iir_filter(const struct FFIIRFilterCoeffs *c, } } -void ff_iir_filter_flt(const struct FFIIRFilterCoeffs *c, - struct FFIIRFilterState *s, int size, - const float *src, ptrdiff_t sstep, - float *dst, ptrdiff_t dstep) +/** + * Perform IIR filtering on floating-point input samples. + * + * @param coeffs pointer to filter coefficients + * @param state pointer to filter state + * @param size input length + * @param src source samples + * @param sstep source stride + * @param dst filtered samples (destination may be the same as input) + * @param dstep destination stride + */ +static void iir_filter_flt(const struct FFIIRFilterCoeffs *c, + struct FFIIRFilterState *s, int size, + const float *src, ptrdiff_t sstep, + float *dst, ptrdiff_t dstep) { if (c->order == 2) { FILTER_O2(float, FLT) @@ -317,7 +328,7 @@ av_cold void ff_iir_filter_free_coeffsp(struct FFIIRFilterCoeffs **coeffsp) } void ff_iir_filter_init(FFIIRFilterContext *f) { - f->filter_flt = ff_iir_filter_flt; + f->filter_flt = iir_filter_flt; if (HAVE_MIPSFPU) ff_iir_filter_init_mips(f); diff --git a/libavcodec/iirfilter.h b/libavcodec/iirfilter.h index 5ffa1ce53a..d6b8fe2782 100644 --- a/libavcodec/iirfilter.h +++ b/libavcodec/iirfilter.h @@ -128,20 +128,4 @@ void ff_iir_filter_free_statep(struct FFIIRFilterState **state); void ff_iir_filter(const struct FFIIRFilterCoeffs *coeffs, struct FFIIRFilterState *state, int size, const int16_t *src, ptrdiff_t sstep, int16_t *dst, ptrdiff_t dstep); -/** - * Perform IIR filtering on floating-point input samples. - * - * @param coeffs pointer to filter coefficients - * @param state pointer to filter state - * @param size input length - * @param src source samples - * @param sstep source stride - * @param dst filtered samples (destination may be the same as input) - * @param dstep destination stride - */ -void ff_iir_filter_flt(const struct FFIIRFilterCoeffs *coeffs, - struct FFIIRFilterState *state, int size, - const float *src, ptrdiff_t sstep, - float *dst, ptrdiff_t dstep); - #endif /* AVCODEC_IIRFILTER_H */