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.
public const VideoRenderMode DefaultRenderMode = HalfBlock
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
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