namespace FrameProcessor.Domain;

public sealed record Resolution(int Width, int Height)
{
    public Resolution ForOrientation(Orientation orientation) => orientation switch
    {
        Orientation.Landscape => this,
        Orientation.Portrait => new Resolution(Height, Width),
        _ => throw new ArgumentOutOfRangeException(nameof(orientation), orientation, null),
    };
}
