feat: Add face encoder settings including GPU support, parallelism, and thumbnail options
This commit is contained in:
parent
d6b778a648
commit
25fdb82d2f
9 changed files with 595 additions and 136 deletions
|
|
@ -72,34 +72,8 @@ static class Program
|
|||
|
||||
internal static bool TrySendConsoleInterrupt(int processId)
|
||||
{
|
||||
var hadConsole = GetConsoleWindow() != IntPtr.Zero;
|
||||
|
||||
try
|
||||
{
|
||||
if (hadConsole)
|
||||
{
|
||||
FreeConsole();
|
||||
}
|
||||
|
||||
if (!AttachConsole(processId))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
SetConsoleCtrlHandler(null, true);
|
||||
return GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0);
|
||||
}
|
||||
finally
|
||||
{
|
||||
FreeConsole();
|
||||
SetConsoleCtrlHandler(null, false);
|
||||
|
||||
if (hadConsole)
|
||||
{
|
||||
AllocConsole();
|
||||
RedirectConsoleOutput();
|
||||
}
|
||||
}
|
||||
_ = processId;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue