Table of Contents

Class AMFHEVCEncoderPage

Namespace
VisioForge.Core.UI.WPF.Dialogs.OutputFormats.Pages
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, IComponentConnector

Inheritance

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

uint

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

int

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

uint

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

AMFHEVCEncoderPreset

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

string

Presets

Gets or sets the collection of available encoder presets for UI selection.

public ObservableCollection<string> Presets { get; set; }

Property Value

ObservableCollection<string>

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

double

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

double

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

AMFHEVCEncoderRateControl

RateControlModes

Gets or sets the collection of available rate control modes for UI selection.

public ObservableCollection<string> RateControlModes { get; set; }

Property Value

ObservableCollection<string>

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

string

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

AMFHEVCEncoderUsage

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

string

Usages

Gets or sets the collection of available usage modes for UI selection.

public ObservableCollection<string> Usages { get; set; }

Property Value

ObservableCollection<string>

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

settings AMFHEVCEncoderSettings

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

settings AMFHEVCEncoderSettings

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

field T

The field.

newValue T

The new value.

propertyName string

Name of the property.

Returns

bool

true if successful, false otherwise.

Type Parameters

T

Type.

PropertyChanged

Property changed event.

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler