Table of Contents

Class AMAScalerSettings

Namespace
VisioForge.Core.Types.X.VideoProcessing
Assembly
VisioForge.Core.dll

Configuration settings for the AMD AMA (Alveo MA35D) hardware video scaler (ama_scaler).

public class AMAScalerSettings

Inheritance

Inherited Members

Remarks

Available on Linux only and requires the AMD AMA Video SDK (kernel driver + GStreamer plugins). The ama_scaler element consumes and produces device memory (video/x-raw(memory:AMAMemory)), so the scaler block wraps it in the chain ama_upload ! ama_scaler ! capsfilter ! ama_download to accept and emit system memory. Property values are applied best-effort — an absent property on an older AMA SDK build is ignored, not fatal.

Constructors

AMAScalerSettings()

Initializes a new instance of the VisioForge.Core.Types.X.VideoProcessing.AMAScalerSettings class.

public AMAScalerSettings()

AMAScalerSettings(int, int)

Initializes a new instance of the VisioForge.Core.Types.X.VideoProcessing.AMAScalerSettings class with the target output size.

public AMAScalerSettings(int width, int height)

Parameters

width int

The target output width in pixels (144-7580).

height int

The target output height in pixels (144-7580).

Fields

Name

Gets the display name of this scaler.

public static readonly string Name

Field Value

string

Properties

Device

Gets or sets the numeric ID of the MA35D device to scale on. -1 (default) auto-selects a card. Use this to pin scaling to a specific Alveo MA35D when several AMD devices are present.

public int Device { get; set; }

Property Value

int

Framerate

Gets or sets the output frame-rate mode. Defaults to VisioForge.Core.Types.X.VideoProcessing.AMAScalerFramerate.Auto.

public AMAScalerFramerate Framerate { get; set; }

Property Value

AMAScalerFramerate

Height

Gets or sets the target output height in pixels (144-7580). Values greater than 0 pin the height through the src-pad caps filter; 0 or less leaves the height unconstrained.

public int Height { get; set; }

Property Value

int

Width

Gets or sets the target output width in pixels (144-7580). Values greater than 0 pin the width through the src-pad caps filter; 0 or less leaves the width unconstrained.

public int Width { get; set; }

Property Value

int

Methods

CreateBlock()

Creates a new AMA scaler block with these settings.

public MediaBlock CreateBlock()

Returns

MediaBlock

A configured VisioForge.Core.MediaBlocks.MediaBlock instance for AMA hardware scaling.

IsAvailable()

Determines whether this scaler is available on the current machine.

public static bool IsAvailable()

Returns

bool

true if the ama_upload, ama_scaler and ama_download elements are present; otherwise, false.

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

string

A String that represents this instance.