Class AMAScalerSettings
- Assembly
- VisioForge.Core.dll
Configuration settings for the AMD AMA (Alveo MA35D) hardware video scaler (ama_scaler).
public class AMAScalerSettingsInheritance
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
widthint-
The target output width in pixels (144-7580).
heightint-
The target output height in pixels (144-7580).
Fields
Name
Gets the display name of this scaler.
public static readonly string NameField Value
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
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
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
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
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
-
trueif 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()