Former-commit-id: ab8be5cd57
This commit is contained in:
Victor Horobchuk 2021-03-17 09:58:01 +02:00
parent 229fb93980
commit d0afc5001b
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.Collections.Generic;
using System.Text; using System.Text;
@ -6,6 +7,28 @@ namespace FFMpegCore.Arguments
{ {
public class SetMirrorVideo : IArgument 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
}
}