mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
30 lines
712 B
C#
30 lines
712 B
C#
using FFMpegCore.Enums;
|
|
using System;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
public class SetMirroringArgument : IVideoFilterArgument
|
|
{
|
|
public SetMirroringArgument(Mirroring mirroring)
|
|
{
|
|
Mirroring = mirroring;
|
|
}
|
|
|
|
public Mirroring Mirroring { get; set; }
|
|
|
|
public string Key => string.Empty;
|
|
|
|
public string Value
|
|
{
|
|
get
|
|
{
|
|
return Mirroring switch
|
|
{
|
|
Mirroring.Horizontal => "hflip",
|
|
Mirroring.Vertical => "vflip",
|
|
_ => throw new ArgumentOutOfRangeException(nameof(Mirroring))
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|