mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
988 B
41 lines
988 B
namespace ErsatzTV.FFmpeg.State; |
|
|
|
public record WatermarkState( |
|
Option<List<WatermarkFadePoint>> MaybeFadePoints, |
|
WatermarkLocation Location, |
|
WatermarkSize Size, |
|
int WidthPercent, |
|
int HorizontalMarginPercent, |
|
int VerticalMarginPercent, |
|
int Opacity, |
|
bool PlaceWithinSourceContent); |
|
|
|
public record WatermarkFadePoint(TimeSpan Time, TimeSpan EnableStart, TimeSpan EnableFinish); |
|
|
|
public record WatermarkFadeIn(TimeSpan Time, TimeSpan EnableStart, TimeSpan EnableFinish) : WatermarkFadePoint( |
|
Time, |
|
EnableStart, |
|
EnableFinish); |
|
|
|
public record WatermarkFadeOut(TimeSpan Time, TimeSpan EnableStart, TimeSpan EnableFinish) : WatermarkFadePoint( |
|
Time, |
|
EnableStart, |
|
EnableFinish); |
|
|
|
public enum WatermarkLocation |
|
{ |
|
BottomRight = 0, |
|
BottomLeft = 1, |
|
TopRight = 2, |
|
TopLeft = 3, |
|
TopMiddle = 4, |
|
RightMiddle = 5, |
|
BottomMiddle = 6, |
|
LeftMiddle = 7 |
|
} |
|
|
|
public enum WatermarkSize |
|
{ |
|
Scaled = 0, |
|
ActualSize = 1 |
|
}
|
|
|