Class AMFHEVCEncoderPage
- Assembly
- VisioForge.Core.dll
Represents a WPF page for configuring AMD AMF HEVC (H.265) encoder settings. This page provides UI controls for setting various HEVC encoding parameters such as bitrate, GOP size, quality preset, and rate control mode.
public class AMFHEVCEncoderPage : Page, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged, IComponentConnectorInheritance
Implements
Inherited Members
Constructors
AMFHEVCEncoderPage()
Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.OutputFormats.Pages.AMFHEVCEncoderPage class. Sets up the data context and populates the UI control collections with available options.
public AMFHEVCEncoderPage()Properties
Bitrate
Gets or sets the target bitrate for encoding in kilobits per second. Used when rate control mode is set to bitrate-based modes like CBR or VBR.
public uint Bitrate { get; set; }Property Value
GOPSize
Gets or sets the Group of Pictures (GOP) size. Defines the maximum distance between I-frames (keyframes). A value of -1 uses encoder default.
public int GOPSize { get; set; }Property Value
MaxBitrate
Gets or sets the maximum bitrate for encoding in kilobits per second. Used in variable bitrate modes to cap the maximum bitrate.
public uint MaxBitrate { get; set; }Property Value
Preset
Gets or sets the encoder quality preset. Presets provide a balance between encoding speed and quality (Speed, Balanced, Quality).
public AMFHEVCEncoderPreset Preset { get; set; }Property Value
PresetStr
Gets or sets the encoder preset as a string representation. Used for data binding with UI controls.
public string PresetStr { get; set; }Property Value
Presets
Gets or sets the collection of available encoder presets for UI selection.
public ObservableCollection<string> Presets { get; set; }Property Value
QPI
Gets or sets the quantization parameter for I-frames. Lower values mean higher quality and higher bitrate. Typical range is 0-51.
public double QPI { get; set; }Property Value
QPP
Gets or sets the quantization parameter for P-frames. Lower values mean higher quality and higher bitrate. Typical range is 0-51.
public double QPP { get; set; }Property Value
RateControl
Gets or sets the rate control mode. Determines how the encoder manages bitrate allocation (CQP, CBR, VBR, etc.).
public AMFHEVCEncoderRateControl RateControl { get; set; }Property Value
RateControlModes
Gets or sets the collection of available rate control modes for UI selection.
public ObservableCollection<string> RateControlModes { get; set; }Property Value
RateControlStr
Gets or sets the rate control mode as a string representation. Used for data binding with UI controls.
public string RateControlStr { get; set; }Property Value
Usage
Gets or sets the encoder usage mode. Optimizes encoder settings for specific use cases (Transcoding, UltraLowLatency, LowLatency, WebCam).
public AMFHEVCEncoderUsage Usage { get; set; }Property Value
UsageStr
Gets or sets the encoder usage mode as a string representation. Used for data binding with UI controls.
public string UsageStr { get; set; }Property Value
Usages
Gets or sets the collection of available usage modes for UI selection.
public ObservableCollection<string> Usages { get; set; }Property Value
Methods
Fill(ref AMFHEVCEncoderSettings)
Fills the provided settings object with current UI values. Exports all encoder parameters from the UI controls to the settings object.
public void Fill(ref AMFHEVCEncoderSettings settings)Parameters
settingsAMFHEVCEncoderSettings-
The AMD AMF HEVC encoder settings object to populate.
GetPageType()
Gets the encoder settings type associated with this page.
public Type GetPageType()Returns
- Type
-
The type of AMFHEVCEncoderSettings.
Init(AMFHEVCEncoderSettings)
Initializes the page with existing encoder settings. Loads all encoder parameters from the provided settings object into the UI controls.
public void Init(AMFHEVCEncoderSettings settings)Parameters
settingsAMFHEVCEncoderSettings-
The AMD AMF HEVC encoder settings to load.
InitializeComponent()
InitializeComponent
public void InitializeComponent()SetProperty<T>(ref T, T, string)
Sets the property.
protected bool SetProperty<T>(ref T field, T newValue, string propertyName = null)Parameters
fieldT-
The field.
newValueT-
The new value.
propertyNamestring-
Name of the property.
Returns
- bool
-
trueif successful,falseotherwise.
Type Parameters
T-
Type.
PropertyChanged
Property changed event.
public event PropertyChangedEventHandler PropertyChanged