This commit is contained in:
Victor Horobchuk 2021-03-17 09:58:01 +02:00
parent ec1b8a6b07
commit ab8be5cd57
2 changed files with 37 additions and 2 deletions

View file

@ -1,4 +1,5 @@
using System;
using FFMpegCore.Enums;
using System;
using System.Collections.Generic;
using System.Text;
@ -6,6 +7,28 @@ namespace FFMpegCore.Arguments
{
public class SetMirrorVideo : IArgument
{
public string Text { get; set; } = "-vf \"hflip\"";
public SetMirrorVideo(Mirror value)
{
_value = value;
}
public Mirror _value { get; set; }
public string Text
{
get
{
switch (_value)
{
case Mirror.Horizontall:
return "-vf \"hflip\"";
case Mirror.Verticall:
return "-vf \"vflip\"";
default:
throw new Exception("SetMirrorVideo: argument not found");
}
}
}
}
}

View file

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace FFMpegCore.Enums
{
public enum Mirror : byte
{
Verticall = 1,
Horizontall = 2
}
}