Files
LlamaCasty/Models/QualityOption.cs
T
gramps 6208cb9409 feat(ui): route locked tiers through About
Keep non-owner resolution choices visible but muted. Selecting one preserves the free tier and opens About; external navigation is only the explicit llamacasty.com link. Ref: https://streamlabs.com/desktop
2026-11-02 09:41:38 -08:00

15 lines
584 B
C#

namespace ytLive.Models;
/// <summary>
/// A resolution tier offered by the bottom-bar dropdown. Bitrate is Mbps.
/// Width/Height is the output frame; the composition master is always
/// 1920x1080 and a non-16:9 tier renders as a centered crop of it.
/// </summary>
public sealed record QualityOption(string Display, int Fps, double Bitrate, int Width, int Height)
{
/// <summary>Self-documenting label, e.g. "1080p60 (8Mbps)".</summary>
public string Label => $"{Display} ({Bitrate:0.#}Mbps)";
public bool RequiresPro => !OutputProfile.IsAllowed(this, pro: false);
}