mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
c3b5cd997e
Former-commit-id: 72366d573a
21 lines
535 B
C#
21 lines
535 B
C#
using System;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
/// <summary>
|
|
/// Represents threads parameter
|
|
/// Number of threads used for video encoding
|
|
/// </summary>
|
|
public class ThreadsArgument : IArgument
|
|
{
|
|
public readonly int Threads;
|
|
public ThreadsArgument(int threads)
|
|
{
|
|
Threads = threads;
|
|
}
|
|
|
|
public ThreadsArgument(bool isMultiThreaded) : this(isMultiThreaded ? Environment.ProcessorCount : 1) { }
|
|
|
|
public string Text => $"-threads {Threads}";
|
|
}
|
|
}
|