mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
19 lines
471 B
C#
19 lines
471 B
C#
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}";
|
|
}
|