Table of Contents

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

string

BrailleBaseCodepoint

Braille Unicode base codepoint (U+2800).

public const int BrailleBaseCodepoint = 10240

Field Value

int

BrailleBrightnessThreshold

Braille brightness threshold (0-255) for dot activation.

public const int BrailleBrightnessThreshold = 64

Field Value

int

BrailleCellPixelHeight

Braille cell height in source pixels.

public const int BrailleCellPixelHeight = 4

Field Value

int

BrailleCellPixelWidth

Braille cell width in source pixels.

public const int BrailleCellPixelWidth = 2

Field Value

int

DefaultRenderMode

Default render mode for VideoControl.

public const VideoRenderMode DefaultRenderMode = HalfBlock

Field Value

VideoRenderMode

DefaultTargetFps

Target frames per second for video playback.

public const int DefaultTargetFps = 30

Field Value

int

FallbackCellCols

Default fallback cell columns when control hasn't been laid out.

public const int FallbackCellCols = 80

Field Value

int

FallbackCellRows

Default fallback cell rows when control hasn't been laid out.

public const int FallbackCellRows = 24

Field Value

int

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

string

FfmpegReadTimeoutMs

FFmpeg read timeout per frame in milliseconds.

public const int FfmpegReadTimeoutMs = 2000

Field Value

int

FfmpegStartTimeoutMs

FFmpeg process start timeout in milliseconds.

public const int FfmpegStartTimeoutMs = 5000

Field Value

int

FrameSkipThreshold

Number of frames behind before frame-skipping activates.

public const int FrameSkipThreshold = 2

Field Value

int

HalfBlockPixelsPerCell

Half-block pixels per cell (vertical).

public const int HalfBlockPixelsPerCell = 2

Field Value

int

MaxFps

Maximum FPS clamp.

public const int MaxFps = 120

Field Value

int

MaxFrameSkip

Maximum frames to skip when playback falls behind.

public const int MaxFrameSkip = 5

Field Value

int

MinFps

Minimum FPS clamp.

public const int MinFps = 1

Field Value

int

MinSleepThresholdMs

Minimum sleep threshold in milliseconds before Task.Delay is worthwhile.

public const double MinSleepThresholdMs = 1

Field Value

double

OverlayAutoHideMs

Overlay auto-hide timeout in milliseconds after last interaction.

public const int OverlayAutoHideMs = 3000

Field Value

int

OverlayHeight

Overlay height in cell rows.

public const int OverlayHeight = 1

Field Value

int

PausePollDelayMs

Delay in milliseconds between pause-state polls.

public const int PausePollDelayMs = 50

Field Value

int

SeekStepSeconds

Seek jump in seconds for Left/Right arrow keys.

public const double SeekStepSeconds = 5

Field Value

double