Compressor based on compressor-core

This commit is contained in:
Marco Giuntoni
2025-03-27 19:01:22 +01:00
parent 87b7ef4fdf
commit 89812c7fa6
13 changed files with 75 additions and 1070 deletions
+24 -1
View File
@@ -35,6 +35,10 @@ using Xabe.FFmpeg.Downloader;
using System.Reflection;
using Microsoft.VisualBasic;
using BinaryKits.Zpl.Viewer;
using iMGcompress_core;
namespace ComicCompressor
{
@@ -125,8 +129,27 @@ namespace ComicCompressor
// static Color randomColor = Color.FromKnownColor(randomColorName);
public Color[] myColors = null;
//static void TestPar2()
//{
// var items = new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
// // Create a SingleItemPartitioner from the collection
// var partitioner = new Partitioner<int>(items);
// // Use Parallel.ForEach to process items in parallel
// Parallel.ForEach(partitioner, item =>
// {
// Console.WriteLine($"Processing item: {item}");
// });
//}
private void OnExecute()
{
File_statistics.Clear();
@@ -141,7 +164,7 @@ namespace ComicCompressor
Stopwatch sw = Stopwatch.StartNew();
Logger = new Logger();
Logger.Debug = true;
Logger.DebugOn = true;
Logger.LoggingLevel = LogLevel.Verbose;
Logger.Log(progVersion, LogLevel.Verbose, true);