Add transpose argument

Former-commit-id: 21b35d349e
This commit is contained in:
Malte Rosenbjerg 2020-02-27 21:48:15 +01:00
parent 58c54458fe
commit 3ef90fa13f

View file

@ -0,0 +1,30 @@
using System;
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Transpose argument.
/// 0 = 90CounterCLockwise and Vertical Flip (default)
/// 1 = 90Clockwise
/// 2 = 90CounterClockwise
/// 3 = 90Clockwise and Vertical Flip
/// </summary>
public class TransposeArgument : Argument<int>
{
public TransposeArgument() { }
public TransposeArgument(int transpose) : base(transpose)
{
if (transpose < 0 || transpose > 5)
{
throw new ArgumentException("Argument is outside range (0 - 5)", nameof(transpose));
}
}
/// <inheritdoc/>
public override string GetStringValue()
{
return $"-vf \"transpose={Value}\"";
}
}
}