Compressor based on compressor-core
This commit is contained in:
+24
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user