This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 8cd7465565 tests/tiny_ssim: fixed mistake in ssim_c1 calculation
8cd7465565 is described below
commit 8cd74655659ed4cdd4ffbb350cf8763ca9001d83
Author: Balling <[email protected]>
AuthorDate: Fri Aug 15 21:40:34 2025 +0000
Commit: michaelni <[email protected]>
CommitDate: Mon May 25 00:35:22 2026 +0000
tests/tiny_ssim: fixed mistake in ssim_c1 calculation
Reporter uses this code in production.
Signed-off-by: Valerii Zapodovnikov <[email protected]>
---
tests/tiny_ssim.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/tiny_ssim.c b/tests/tiny_ssim.c
index 9740652288..8472fc3b19 100644
--- a/tests/tiny_ssim.c
+++ b/tests/tiny_ssim.c
@@ -79,11 +79,11 @@ static float ssim_end1( int s1, int s2, int ss, int s12 )
* Maximum value for 9-bit is: ss*64 = (2^9-1)^2*16*4*64 = 1069551616, which
will not overflow. */
#if BIT_DEPTH > 9
typedef float type;
- static const float ssim_c1 = .01*.01*PIXEL_MAX*PIXEL_MAX*64;
+ static const float ssim_c1 = .01*.01*PIXEL_MAX*PIXEL_MAX*64*64;
static const float ssim_c2 = .03*.03*PIXEL_MAX*PIXEL_MAX*64*63;
#else
typedef int type;
- static const int ssim_c1 = (int)(.01*.01*PIXEL_MAX*PIXEL_MAX*64 + .5);
+ static const int ssim_c1 = (int)(.01*.01*PIXEL_MAX*PIXEL_MAX*64*64 + .5);
static const int ssim_c2 = (int)(.03*.03*PIXEL_MAX*PIXEL_MAX*64*63 + .5);
#endif
type fs1 = s1;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]