From patchwork Mon Jan 4 00:28:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 24777 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 6742844907C for ; Mon, 4 Jan 2021 02:29:06 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4C13968AA6E; Mon, 4 Jan 2021 02:29:06 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4313268AA62 for ; Mon, 4 Jan 2021 02:28:59 +0200 (EET) Received: by mail-wm1-f53.google.com with SMTP id a6so16828010wmc.2 for ; Sun, 03 Jan 2021 16:28:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=IKY3yRxJf8NPykDAdtgvrFVesJ0F/fxlp6uIYhs9CEg=; b=FEaR7/6xFMoexbPTU/jf5b05NIhGTkSuZLEB765yl8aXZrWJgno4Ekvona7ik5ouJI zaHW+OhRrVw/aRrffhLqod3dUCGs3sADSPz4jjy3q+QYZXmMZRMRKQn8RqqkuMP7VUvj pbJBWofhHZjJ5I4VUZNeqTPG6vHZYGLYXD1K9+1QYBT3EDsOEKovEtpdwX6tko5LOLXW 3ewm5u6VB7OhnVL+FeiVxj2HHmzllDm1YYblJmTpG+AWK/SxgS5d9w/6tOeRDvQ3AXqD 6O9t+6IpJpXnT5jYbJMbiAHyuaU0B1ggCMtdriQkLz25r8S6CyPAL3BjGy5LDcrlf8of JZVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=IKY3yRxJf8NPykDAdtgvrFVesJ0F/fxlp6uIYhs9CEg=; b=FSTcWbb62a/kizgPvFTwbTB+E7CImNOJzpFiLi8hhV09w8Oc5aMS+HQiWmIrB9kUbN 9x2C2KoZ+b8OFlV+nAqq1ahNExEkQ6hKgEZ/5ikxvrrC0NiyQ4X8UX2ofFbMbYJJej/+ MwGvhqlWheCzK7lCmzzLWb/YUwMbm1wKQ88lA9WXxA4iqY/dN2433O6UCtJwWqoioaNI cNZLl1+ogvAUrS0n74u/urzsY+rzmqhJGkC1aufTOT6/ZYzEUauM5IQyEU9xoOWYY7YP 3XgfjNy66hiGPjPX0TvTRgKkFat+g1hMZAfRwO0bIbf8qSf0QWCNBBi1K1VenHAjwaul kaaQ== X-Gm-Message-State: AOAM533gph9Rd0YVLh4H+F+pL7WF8hv4+ty7iidhWEH+jSs5C7AmiUfC ZvTGYwK0URJBiE1I3RF8jjrI6qqV3Oo= X-Google-Smtp-Source: ABdhPJxUIXVoIjYpUgbiEwbCi7ANsYcQq/cZfmuxHjDd/ZxkzrhwV/Y3O5PuF1zA69UQd+AEaJOHuw== X-Received: by 2002:a7b:c8da:: with SMTP id f26mr25449168wml.155.1609720138490; Sun, 03 Jan 2021 16:28:58 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id u26sm30032046wmm.24.2021.01.03.16.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 16:28:58 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 4 Jan 2021 01:28:12 +0100 Message-Id: <20210104002816.2321974-12-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210104002816.2321974-1-andreas.rheinhardt@gmail.com> References: <20210104002816.2321974-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 12/16] avfilter/af_asupercut: Deduplicate options X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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" Signed-off-by: Andreas Rheinhardt --- libavfilter/af_asupercut.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/libavfilter/af_asupercut.c b/libavfilter/af_asupercut.c index 89f4cf0ed0..d5c9a75d5d 100644 --- a/libavfilter/af_asupercut.c +++ b/libavfilter/af_asupercut.c @@ -405,7 +405,7 @@ AVFilter ff_af_asubcut = { AVFILTER_FLAG_SLICE_THREADS, }; -static const AVOption asuperpass_options[] = { +static const AVOption asuperpass_asuperstop_options[] = { { "centerf","set center frequency", OFFSET(cutoff), AV_OPT_TYPE_DOUBLE, {.dbl=1000}, 2, 999999, FLAGS }, { "order", "set filter order", OFFSET(order), AV_OPT_TYPE_INT, {.i64=4}, 4, 20, FLAGS }, { "qfactor","set Q-factor", OFFSET(qfactor),AV_OPT_TYPE_DOUBLE, {.dbl=1.},0.01, 100., FLAGS }, @@ -413,6 +413,7 @@ static const AVOption asuperpass_options[] = { { NULL } }; +#define asuperpass_options asuperpass_asuperstop_options AVFILTER_DEFINE_CLASS(asuperpass); AVFilter ff_af_asuperpass = { @@ -429,14 +430,7 @@ AVFilter ff_af_asuperpass = { AVFILTER_FLAG_SLICE_THREADS, }; -static const AVOption asuperstop_options[] = { - { "centerf","set center frequency", OFFSET(cutoff), AV_OPT_TYPE_DOUBLE, {.dbl=1000}, 2, 999999, FLAGS }, - { "order", "set filter order", OFFSET(order), AV_OPT_TYPE_INT, {.i64=4}, 4, 20, FLAGS }, - { "qfactor","set Q-factor", OFFSET(qfactor),AV_OPT_TYPE_DOUBLE, {.dbl=1.},0.01, 100., FLAGS }, - { "level", "set input level", OFFSET(level), AV_OPT_TYPE_DOUBLE, {.dbl=1.}, 0., 2., FLAGS }, - { NULL } -}; - +#define asuperstop_options asuperpass_asuperstop_options AVFILTER_DEFINE_CLASS(asuperstop); AVFilter ff_af_asuperstop = {