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 9AC644B761 for ; Wed, 12 Jun 2024 22:22:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 69EF668D9D2; Thu, 13 Jun 2024 01:22:24 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5730068D934 for ; Thu, 13 Jun 2024 01:22:15 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id AB84C240005 for ; Wed, 12 Jun 2024 22:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1718230934; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=amd91gE2dterbX1LIwmE9frCvFM34K/DDLjVov2YkSI=; b=aYkr5yS5NrEyx8o+TDMujPeZfwpuyTNo0DpROmFU3XkG8A87DcUbOC+bCrNS43RTgSCKp/ khvJKc3q4EnvPHHjfY7gHN3goBGtCAWo/9+77Bh9tofDtUOLOvZdm5/n7TJaiK5i1EvFDk l4vb+gk6CTAb0ojWUK65VIcO1yS3o43WJE6MDQ26M7zYp7uuGLYxUERpw5b6sUCCgLCfOQ 7a+vRMUkHGt8HxyBmV7P22lj8tZ2jLRIwpmwyNH7fAeJX/mIU8FC4A0QxWbyOMm1x9d+CA n+b/OVTq2bbRIUE5i8S7qmw0xhHL4Q3BWuf/SmzQ6VA8KUqDf6WfIhzTMffYWw== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 13 Jun 2024 00:22:10 +0200 Message-ID: <20240612222212.2172147-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240612222212.2172147-1-michael@niedermayer.cc> References: <20240612222212.2172147-1-michael@niedermayer.cc> MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 2/3] avfilter/vf_bm3d: Dont round MSE2SSE to an integer 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Fixes: CID1439581 Result is not floating-point Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer --- libavfilter/vf_bm3d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_bm3d.c b/libavfilter/vf_bm3d.c index f53a206b518..eb7f6d34d99 100644 --- a/libavfilter/vf_bm3d.c +++ b/libavfilter/vf_bm3d.c @@ -274,7 +274,7 @@ static void do_block_matching_multi(BM3DContext *s, const uint8_t *src, int src_ int r_y, int r_x, int plane, int jobnr) { SliceContext *sc = &s->slices[jobnr]; - double MSE2SSE = s->group_size * s->block_size * s->block_size * src_range * src_range / (s->max * s->max); + double MSE2SSE = s->group_size * s->block_size * s->block_size * src_range * src_range / (double)(s->max * s->max); double distMul = 1. / MSE2SSE; double th_sse = th_mse * MSE2SSE; int index = sc->nb_match_blocks; -- 2.45.2 _______________________________________________ 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".