Files
ersatztv/ErsatzTV.Core/Interfaces/Streaming/GraphicsEngineContext.cs
T

26 lines
833 B
C#

using ErsatzTV.Core.Domain;
using ErsatzTV.Core.FFmpeg;
using ErsatzTV.Core.Graphics;
namespace ErsatzTV.Core.Interfaces.Streaming;
public record GraphicsEngineContext(
string ChannelNumber,
MediaItem MediaItem,
List<GraphicsElementContext> Elements,
Resolution SquarePixelFrameSize,
Resolution FrameSize,
int FrameRate,
DateTimeOffset ChannelStartTime,
DateTimeOffset ContentStartTime,
TimeSpan Seek,
TimeSpan Duration);
public abstract record GraphicsElementContext;
public record WatermarkElementContext(WatermarkOptions Options) : GraphicsElementContext;
public record TextElementContext(TextGraphicsElement TextElement, Dictionary<string, string> Variables)
: GraphicsElementContext;
public record ImageElementContext(ImageGraphicsElement ImageElement) : GraphicsElementContext;