mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
Added 3x/5x/6x/7x for DAIN NCNN
This commit is contained in:
@@ -435,22 +435,22 @@ namespace Flowframes
|
||||
Stopwatch sw = new Stopwatch();
|
||||
sw.Restart();
|
||||
|
||||
if (line.Contains("iVBOR"))
|
||||
{
|
||||
try
|
||||
{
|
||||
string[] split = line.Split(':');
|
||||
//MemoryStream stream = new MemoryStream(Convert.FromBase64String(split[1]));
|
||||
//Image img = Image.FromStream(stream);
|
||||
Logger.Log($"Received image {split[0]} in {sw.ElapsedMilliseconds} ms", true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Logger.Log($"Failed to decode b64 string - {e}:");
|
||||
Logger.Log(line);
|
||||
}
|
||||
return;
|
||||
}
|
||||
//if (line.Contains("iVBOR"))
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// string[] split = line.Split(':');
|
||||
// //MemoryStream stream = new MemoryStream(Convert.FromBase64String(split[1]));
|
||||
// //Image img = Image.FromStream(stream);
|
||||
// Logger.Log($"Received image {split[0]} in {sw.ElapsedMilliseconds} ms", true);
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// Logger.Log($"Failed to decode b64 string - {e}:");
|
||||
// Logger.Log(line);
|
||||
// }
|
||||
// return;
|
||||
//}
|
||||
|
||||
lastLogName = logFilename;
|
||||
Logger.Log(line, true, false, logFilename);
|
||||
|
||||
Reference in New Issue
Block a user