mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
58c54458fe
commit
3ef90fa13f
1 changed files with 30 additions and 0 deletions
30
FFMpegCore/FFMPEG/Argument/Atoms/TransposeArgument.cs
Normal file
30
FFMpegCore/FFMPEG/Argument/Atoms/TransposeArgument.cs
Normal 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}\"";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue