Table of Contents

Class VideoRendererAdjustmentSupported

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Represents the video adjustment capabilities supported by a specific video renderer implementation.

public class VideoRendererAdjustmentSupported

Inheritance

Inherited Members

Remarks

This class provides a capability discovery mechanism for video renderers, allowing applications to query which visual adjustments are available before attempting to use them. Different video renderers may support different subsets of adjustments based on their underlying technology, hardware capabilities, or platform limitations.

Applications should use this class to: - Dynamically enable/disable UI controls based on renderer capabilities - Provide fallback behavior when certain adjustments are unavailable - Inform users about available video enhancement options - Optimize performance by only applying supported adjustments

Support for adjustments may vary based on: - Video renderer type (DirectX, OpenGL, Software, etc.) - Graphics hardware capabilities - Video format and codec - Platform-specific limitations - Driver versions and capabilities

Constructors

VideoRendererAdjustmentSupported(bool, bool, bool, bool)

Initializes a new instance of the VisioForge.Core.Types.VideoRendererAdjustmentSupported class with specified capabilities.

public VideoRendererAdjustmentSupported(bool brightness, bool contrast, bool hue, bool saturation)

Parameters

brightness bool

true if brightness adjustment is supported; otherwise, false.

contrast bool

true if contrast adjustment is supported; otherwise, false.

hue bool

true if hue adjustment is supported; otherwise, false.

saturation bool

true if saturation adjustment is supported; otherwise, false.

Remarks

This constructor is typically called by video renderer implementations after querying their underlying capabilities. Applications generally receive instances of this class through renderer API methods rather than constructing them directly.

Properties

AllSupported

Gets a value indicating whether all standard video adjustments are supported.

public bool AllSupported { get; }

Property Value

bool

Remarks

This property is useful for determining if the renderer provides full adjustment capabilities, which may indicate a high-quality or hardware-accelerated implementation.

AnySupported

Gets a value indicating whether any video adjustments are supported.

public bool AnySupported { get; }

Property Value

bool

Remarks

This property provides a quick check to determine if any adjustments are available, useful for hiding entire adjustment panels in the UI when no adjustments are supported.

Brightness

Gets a value indicating whether brightness adjustment is supported by the video renderer.

public bool Brightness { get; }

Property Value

bool

Remarks

When true, applications can safely call brightness adjustment methods without risk of exceptions or undefined behavior.

Contrast

Gets a value indicating whether contrast adjustment is supported by the video renderer.

public bool Contrast { get; }

Property Value

bool

Remarks

When true, applications can safely call contrast adjustment methods without risk of exceptions or undefined behavior.

Hue

Gets a value indicating whether hue adjustment is supported by the video renderer.

public bool Hue { get; }

Property Value

bool

Remarks

When true, applications can safely call hue adjustment methods without risk of exceptions or undefined behavior. Hue adjustment is often unavailable in grayscale or certain YUV formats.

Saturation

Gets a value indicating whether saturation adjustment is supported by the video renderer.

public bool Saturation { get; }

Property Value

bool

Remarks

When true, applications can safely call saturation adjustment methods without risk of exceptions or undefined behavior. Saturation adjustment is typically unavailable for grayscale video formats.