From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id BBFB14621B for ; Sun, 9 Jul 2023 15:24:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 877A768C5F8; Sun, 9 Jul 2023 18:24:44 +0300 (EEST) Received: from mail-oi1-f170.google.com (mail-oi1-f170.google.com [209.85.167.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2EB6968C574 for ; Sun, 9 Jul 2023 18:24:38 +0300 (EEST) Received: by mail-oi1-f170.google.com with SMTP id 5614622812f47-39ca120c103so2608279b6e.2 for ; Sun, 09 Jul 2023 08:24:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688916276; x=1691508276; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:to:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=sR+OC0DQJ0klLP/ZX56dgJmE+n7DxIbRTDw6cDviaVY=; b=dxLoGzOn1SbouIi3Qd14rdBYplQXro+hpRWInl/sLbgo9L7malT+enzgpI2rdWBCIb CuNZolChXhU7RMlR62bKQ+FUoE9EypHRxdFK+yihd3mVV/bs7LxJQj/n/rc68aUilVJD XFuG79OwzBcnLCHLvOOFLfELuzJcwEibRFAC+ltMgvss9YKpdBmtjC/6UbAB94nIekog hqXlQGcfTj90q9ovTC/C+vah4Xp1YQfC36ngiN+1+FCMJ6h7BA8FdLYEXdIpn49DMFob aTEJECtILd18oBReMi/f6Vt4KAup76rRrps2zyKIu7bBjdS8T4D/NtxH6BxXAcs4pszW HPVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688916276; x=1691508276; h=content-transfer-encoding:in-reply-to:from:content-language:subject :references:to:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sR+OC0DQJ0klLP/ZX56dgJmE+n7DxIbRTDw6cDviaVY=; b=ZHBgFH4lCztyauu9IfB5kUwb8cD8XJX/N+f6MmPudWxGtwZ7o/sOnpf/eo5nm+70vw geLZ0xABH2SRpGrEnXOl0neBbBsYwjTiZBsQTYWTwwof1bHsji9MlAqWGeUCSCc/w5Gw GbJVUGrai8fUqb7jZsg9bWr3HP4/z9y1RXiMrhWJ7FjarjTq91AOdPh8Plq2Kb6me4zq 46OnKgYQORwKcZbIc1Z+6SJFqfnUUguXDxUavYxh4P6qB995p5uru1fj/+Doa+sxyW9M 4iVivlRsOMF6pGBJILgQoZ4s80b8ngw+JUwccdLP/ig1Pq4LIM+Wzi5uJTcRZ3drUU5b A03w== X-Gm-Message-State: ABy/qLbSt3BYLp/LuQu2O1PdkSKWwi4TBMautby1Mk7TE6dVka0BZGfq pujEyheuOTp3VxMkVprtMYllcQY06Tw= X-Google-Smtp-Source: APBJJlEf7EuDXh/TKG8i/eDMnF7JJ/unDkR/tYBd7F+v9K3l5hoKybetbJAW9HDpJln0IswEg3XKOA== X-Received: by 2002:a05:6808:3084:b0:3a3:6328:8cd0 with SMTP id bl4-20020a056808308400b003a363288cd0mr10223486oib.56.1688916276231; Sun, 09 Jul 2023 08:24:36 -0700 (PDT) Received: from [192.168.0.12] (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id t3-20020a4aadc3000000b0056688eea98csm1987639oon.27.2023.07.09.08.24.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jul 2023 08:24:35 -0700 (PDT) Message-ID: <3db95051-211a-16e1-8c5d-35a2dacd2d1f@gmail.com> Date: Sun, 9 Jul 2023 12:24:37 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 To: ffmpeg-devel@ffmpeg.org References: <20230709095209.D8A5D410705@natalya.videolan.org> Content-Language: en-US From: James Almer In-Reply-To: <20230709095209.D8A5D410705@natalya.videolan.org> Subject: Re: [FFmpeg-devel] [FFmpeg-cvslog] avfilter/af_adynamicequalizer: simplify calculations 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 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: > ffmpeg | branch: master | Paul B Mahol > | Thu Jul 6 16:47:02 2023 +0200| [889c2529cc6ef65bb4c4f10aa79ca7ca0070a1aa] | committer: Paul B Mahol > > avfilter/af_adynamicequalizer: simplify calculations > > >/http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=889c2529cc6ef65bb4c4f10aa79ca7ca0070a1aa > /--- > > libavfilter/adynamicequalizer_template.c | 16 ++++++++++------ > libavfilter/af_adynamicequalizer.c | 2 +- > 2 files changed, 11 insertions(+), 7 deletions(-) > > diff --git a/libavfilter/adynamicequalizer_template.c b/libavfilter/adynamicequalizer_template.c > index 4f7d58c939..ee9f4a1d5f 100644 > --- a/libavfilter/adynamicequalizer_template.c > +++ b/libavfilter/adynamicequalizer_template.c > @@ -26,6 +26,7 @@ > #undef FMIN > #undef CLIP > #undef SAMPLE_FORMAT > +#undef EPSILON > #undef FABS > #if DEPTH == 32 > #define SAMPLE_FORMAT float > @@ -39,6 +40,7 @@ > #define CLIP av_clipf > #define FABS fabsf > #define ftype float > +#define EPSILON (1.f / (1 << 22)) > #else > #define SAMPLE_FORMAT double > #define SQRT sqrt > @@ -51,6 +53,7 @@ > #define CLIP av_clipd > #define FABS fabs > #define ftype double > +#define EPSILON (1.0 / (1LL << 51)) > #endif You have FLT_EPSILON and DBL_EPSILON for this. _______________________________________________ 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".