Class VideoDefaults
- Namespace
- SharpConsoleUI.Configuration
- Assembly
- SharpConsoleUI.dll
Default constants for VideoControl. Separated from ControlDefaults to avoid a dependency from Configuration on the Video namespace.
public static class VideoDefaults
- Inheritance
-
VideoDefaults
- Inherited Members
Fields
AsciiDensityRamp
ASCII brightness-to-density character ramp (darkest to brightest).
public const string AsciiDensityRamp = " .:-=+*#%@"
Field Value
BrailleBaseCodepoint
Braille Unicode base codepoint (U+2800).
public const int BrailleBaseCodepoint = 10240
Field Value
BrailleBrightnessThreshold
Braille brightness threshold (0-255) for dot activation.
public const int BrailleBrightnessThreshold = 64
Field Value
BrailleCellPixelHeight
Braille cell height in source pixels.
public const int BrailleCellPixelHeight = 4
Field Value
BrailleCellPixelWidth
Braille cell width in source pixels.
public const int BrailleCellPixelWidth = 2
Field Value
DefaultRenderMode
Default render mode for VideoControl. Auto picks Kitty graphics when the terminal supports it, otherwise falls back to HalfBlock (identical to the previous default on non-Kitty terminals).
public const VideoRenderMode DefaultRenderMode = Auto
Field Value
DefaultTargetFps
Target frames per second for video playback.
public const int DefaultTargetFps = 30
Field Value
FallbackCellCols
Default fallback cell columns when control hasn't been laid out.
public const int FallbackCellCols = 80
Field Value
FallbackCellRows
Default fallback cell rows when control hasn't been laid out.
public const int FallbackCellRows = 24
Field Value
FfmpegNotFoundMessage
FFmpeg not found error message displayed inside the control.
public const string FfmpegNotFoundMessage = "FFmpeg not found. Install it to play videos:\n Linux: sudo apt install ffmpeg\n macOS: brew install ffmpeg\n Windows: winget install ffmpeg"
Field Value
FfmpegReadTimeoutMs
FFmpeg read timeout per frame in milliseconds.
public const int FfmpegReadTimeoutMs = 2000
Field Value
FfmpegStartTimeoutMs
FFmpeg process start timeout in milliseconds.
public const int FfmpegStartTimeoutMs = 5000
Field Value
FrameSkipThreshold
Number of frames behind before frame-skipping activates.
public const int FrameSkipThreshold = 2
Field Value
HalfBlockPixelsPerCell
Half-block pixels per cell (vertical).
public const int HalfBlockPixelsPerCell = 2
Field Value
KittyMaxPixelHeight
Upper bound on the FFmpeg decode height when Kitty mode is active.
public const int KittyMaxPixelHeight = 540
Field Value
KittyMaxPixelWidth
Upper bound on the FFmpeg decode width when Kitty mode is active (protects against excessive bandwidth).
public const int KittyMaxPixelWidth = 960
Field Value
KittyPixelsPerCellX
Approximate terminal pixel density per cell column for Kitty mode. Lower values reduce wire bandwidth at a modest quality cost (Kitty upscales the transmitted buffer into the placement rectangle). 4 gives a good balance: ~4x less data than a full native-density decode, virtually imperceptible quality loss for video.
public const int KittyPixelsPerCellX = 4
Field Value
KittyPixelsPerCellY
Approximate terminal pixel density per cell row for Kitty mode. See KittyPixelsPerCellX.
public const int KittyPixelsPerCellY = 8
Field Value
MaxFps
Maximum FPS clamp.
public const int MaxFps = 120
Field Value
MaxFrameSkip
Maximum frames to skip when playback falls behind.
public const int MaxFrameSkip = 5
Field Value
MinFps
Minimum FPS clamp.
public const int MinFps = 1
Field Value
MinSleepThresholdMs
Minimum sleep threshold in milliseconds before Task.Delay is worthwhile.
public const double MinSleepThresholdMs = 1
Field Value
OverlayAutoHideMs
Overlay auto-hide timeout in milliseconds after last interaction.
public const int OverlayAutoHideMs = 3000
Field Value
OverlayHeight
Overlay height in cell rows.
public const int OverlayHeight = 1
Field Value
PausePollDelayMs
Delay in milliseconds between pause-state polls.
public const int PausePollDelayMs = 50
Field Value
SeekStepSeconds
Seek jump in seconds for Left/Right arrow keys.
public const double SeekStepSeconds = 5