Op 20-10-14 om 16:31 schreef lvqcl:
But your patch changes only two last presets (-7 and -8) so -6 stays unchanged. ( IIRC it should have "tukey(5e-1);partial_tukey(2)" as its apodization string instead of current "tukey(5e-1)" ).

.... okay, I really don't know how it is possible I missed that. Sorry. Here's the patch again.
>From 7833dd3b4c72ae716468e190cf3343c9065ab7fe Mon Sep 17 00:00:00 2001
From: Martijn van Beurden <mva...@gmail.com>
Date: Mon, 20 Oct 2014 16:33:25 +0200
Subject: [PATCH] Retune FLAC compression levels

This patch changes a the settings associated with compression
levels 6, 7 and 8. With this patch, -e is no longer used, but
instead apodization functions are added. This should improve
compression with at least 95% of all material while not changing
the speed much. Decoding ways, 6 and 8 stay the same, and 7 is
slowed a bit, which makes it as fast as 8.
---
 src/libFLAC/stream_encoder.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libFLAC/stream_encoder.c b/src/libFLAC/stream_encoder.c
index 3103fdf..2af13ac 100644
--- a/src/libFLAC/stream_encoder.c
+++ b/src/libFLAC/stream_encoder.c
@@ -114,9 +114,9 @@ static struct CompressionLevels {
 	{ false, false,  6, 0, false, false, false, 0, 4, 0, "tukey(5e-1)" },
 	{ true , true ,  8, 0, false, false, false, 0, 4, 0, "tukey(5e-1)" },
 	{ true , false,  8, 0, false, false, false, 0, 5, 0, "tukey(5e-1)" },
-	{ true , false,  8, 0, false, false, false, 0, 6, 0, "tukey(5e-1)" },
-	{ true , false,  8, 0, false, false, true , 0, 6, 0, "tukey(5e-1)" },
-	{ true , false, 12, 0, false, false, true , 0, 6, 0, "tukey(5e-1)" }
+	{ true , false,  8, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2)" },
+	{ true , false, 12, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2)" },
+	{ true , false, 12, 0, false, false, false, 0, 6, 0, "tukey(5e-1);partial_tukey(2);punchout_tukey(3)" }
 	/* here we use locale-independent 5e-1 instead of 0.5 or 0,5 */
 };
 
-- 
1.9.1

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to