From patchwork Sat Jan 29 01:15:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Jang X-Patchwork-Id: 33900 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2c4e:0:0:0:0 with SMTP id x14csp923055iov; Fri, 28 Jan 2022 17:16:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCNu0AEXkrbyJqPq/eXSJcq/m02Vr+b/r1f4um4nuob0LR9IBSARqjNnel2Knl42pmiMZ1 X-Received: by 2002:a05:6402:3492:: with SMTP id v18mr10772528edc.345.1643418982577; Fri, 28 Jan 2022 17:16:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643418982; cv=none; d=google.com; s=arc-20160816; b=tMWy6tuPgIcHv7cZMZUZLap27//PRTJ6mAYTMIw85BogI9FGXZGPxeClimvMkPs8aZ 7SmxdYr3bUyZHRztC7qd301LNqDW/gz4Ww4kI3z1BuikMnZH/GxLVSTYmVQDAvGh5/iv MeAFvUqDE1i7m1d3/a2FaKz5pYcOFgEL5bzIGJ5bZVetRsE+Q/VqB5wfjQqZsox8iaC1 /oBHZceYA8gsmPClYrKIEExu0y5nBiMmKjY+vWy5sz88qILTG/e/A1olHbSjC6kT1nn2 EOIrxR8HHY7U7Ii7XrarkXuvMBhN6hg6jIeEywj3jjN5gmWIOx6zK9m3j955M8F5McvQ xYQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=airev7y3Z+6LhAqMj6euLCELfOreBlXbvv1pBG5L1ss=; b=EtKojOvkTojvZr5JmLnmW8XCipjHJRWzCWGQr9y9CEAlG5S/7oc/PxS3FV+ZH5gvn9 9iFPgWtgOQ5ali74/2AhMAsJoDP5TXD2kWYGeJIK/HxHh8ZRa3AUIE2bZcL6ikxWVhxh bw3eEXsx2ddPVUGjMGdfi9MXP6T1LCDrNSifSprScNveTmZ/rLOjS5sAPg/2LKU9noKl g1WNaq3PmdwF/9gQzYQl2p2/enhJBnjPTi5mJXQUtHqp/VBz7ZEM1HgeQUA3XX7D3Njr gnAhrQRDCWUAfEWussZQfn82LNmwOim/0IAcFLAbvE3nzBu7R0HHNsDfjdt7PRrg7KgV ByDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=Od9gHFcb; 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=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 7si4257917ejy.204.2022.01.28.17.16.22; Fri, 28 Jan 2022 17:16:22 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Od9gHFcb; 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=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A8AE768B1ED; Sat, 29 Jan 2022 03:16:19 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A8CB968AFB4 for ; Sat, 29 Jan 2022 03:16:12 +0200 (EET) Received: by mail-pj1-f54.google.com with SMTP id l24-20020a17090aec1800b001b55738f633so8252737pjy.1 for ; Fri, 28 Jan 2022 17:16:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EWMUdWI+toH/8HW7SX2uhbIXVXTakh8mGtIKfBFT7Tk=; b=Od9gHFcboCwAEsWB1HaK4E+SfoZ67pnxJgEbN2n+cspA6bBpNb+6kmeuLYYXulaQz0 1Heo8cV+HzjMSyO+yysOpzAraJrT2TBotOb/sQEdPRPkyRBQM6IuYfmfFIt/Z7Uj3+vW RrTWlAtJz+a/wwuYoez3++6fabsUPp6P3anYIvKFhjephiim6BXXPKGZOitPY6ybJz30 is4GF7SsLwU0Nfz9Mq7xpmjLQQ8HprLtSXWFJGLhTYI65K8GMzEb7eVNvQo8tm2aJDRp A4/EaDA23ODFQOIIz1pBnnEEMvSdjxS4IbEf9zYw4L71oKOIwJQaABpw3W7yjEzeG/6E R4Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EWMUdWI+toH/8HW7SX2uhbIXVXTakh8mGtIKfBFT7Tk=; b=SMzlishafLBax1AS9DIjF0UhC0mD/HEqRo6v/xQad55QuALwL+zQVQS9t+FnNlpzhh 26z9nIL9HGZwvAykvcCj9fP2E+X/B+nusYf0Wr5j7wgf0o/jGKEWRZEdYk1qffAV5zro HjoflZf3LWWEhnq3ADnijPc4NMH1dtbDvohDIrzm2R/PGMJ71Ajkaro+PhwKNZq6La3L t5yYlijvZAOs/nchrHLvqfHyAP5r25Eal2L5KGntUpNE1QtSpG91WrWN0xqg6RaOMy4d z7pRliVpn5h2alAQGw/S6mnZB5QOXnjTQzAf9VaEkdSrGMP7fQ8te7MjxCVMb9dKyiCb r9yw== X-Gm-Message-State: AOAM533cfnKZ9OF6dyILxaCE2Cw3fv8qO4XMgtx8kTmbPE4+YnX0LGSv 9HXYoTGxrnNAkq/NbcfPAqY4KH8BxJ814A== X-Received: by 2002:a17:90b:1952:: with SMTP id nk18mr22455562pjb.101.1643418970716; Fri, 28 Jan 2022 17:16:10 -0800 (PST) Received: from ryzen-archlinux.localdomain (node-1w7jr9quwtshe9pluzzjlv6my.ipv6.telus.net. [2001:569:7da8:e800:e2d5:5eff:fe8e:845a]) by smtp.googlemail.com with ESMTPSA id nk11sm3446458pjb.55.2022.01.28.17.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 17:16:10 -0800 (PST) From: Jason Jang To: ffmpeg-devel@ffmpeg.org Date: Fri, 28 Jan 2022 17:15:54 -0800 Message-Id: <20220129011554.308345-1-jcj83429@gmail.com> X-Mailer: git-send-email 2.35.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/3] avfilter/af_apsyclip: increase protection for high frequencies 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: Jason Jang Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: /gxhrDXxVJIe This reduces sibilance distortion when sibilance and bass are present at the same time. Bringing the protection of high frequencies up to about the same level as for low frequencies should also make the quality less dependent on the frequency balance of the playback system. Signed-off-by: Jason Jang --- libavfilter/af_apsyclip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_apsyclip.c b/libavfilter/af_apsyclip.c index 2a79ed3..1f41148 100644 --- a/libavfilter/af_apsyclip.c +++ b/libavfilter/af_apsyclip.c @@ -186,7 +186,7 @@ static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; AudioPsyClipContext *s = ctx->priv; - static const int points[][2] = { {0,14}, {125,14}, {250,16}, {500,18}, {1000,20}, {2000,20}, {4000,20}, {8000,15}, {16000,5}, {20000,-10} }; + static const int points[][2] = { {0,14}, {125,14}, {250,16}, {500,18}, {1000,20}, {2000,20}, {4000,20}, {8000,17}, {16000,14}, {20000,-10} }; static const int num_points = 10; float scale; int ret;