Class EncoderConfig
Config for the Vp8/Vp9 encoders. Properties map to VPX properties. http://www.webmproject.org/docs/webm-sdk/structvpx__codec__enc__cfg.html
Inheritance
Inherited Members
Namespace: FM.LiveSwitch.Vpx
Assembly: FM.LiveSwitch.Vpx.dll
Syntax
public sealed class EncoderConfig
Constructors
EncoderConfig()
Creates a new copy of the VPX encoder configurations with default values.
Declaration
public EncoderConfig()
Properties
BitDepth
Gets or sets a value that maps to "g_bit_depth".
Declaration
public BitDepth BitDepth { get; set; }
Property Value
Type | Description |
---|---|
BitDepth |
BufferInitialSize
Gets or sets a value that maps to "rc_buf_initial_sz".
Declaration
public int BufferInitialSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
BufferOptimalSize
Gets or sets a value that maps to "rc_buf_optimal_sz".
Declaration
public int BufferOptimalSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
BufferSize
Gets or sets a value that maps to "rc_buf_sz".
Declaration
public int BufferSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Cpu
Gets or sets a value used for "VP8E_SET_CPUUSED". Range is [-16, 16] for VP8 and [-8, 8] for VP9.
Declaration
public int Cpu { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DropFrameThreshold
Gets or sets a value that maps to "rc_dropframe_thresh".
Declaration
public int DropFrameThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
EndUsageMode
Gets or sets a value that maps to "rc_end_usage".
Declaration
public EndUsageMode EndUsageMode { get; set; }
Property Value
Type | Description |
---|---|
EndUsageMode |
ErrorResilient
Gets or sets a value that maps to g_error_resilient
Declaration
public int ErrorResilient { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
InputBitDepth
Gets or sets a value that maps to "g_input_bit_depth".
Declaration
public int InputBitDepth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
KeyframeMaxDistance
Gets or sets a value that maps to "kf_max_dist".
Declaration
public int KeyframeMaxDistance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
KeyframeMinDistance
Gets or sets a value that maps to "kf_min_dist".
Declaration
public int KeyframeMinDistance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
KeyframeMode
Gets or sets a value that makes to "kf_mode".
Declaration
public KeyframeMode KeyframeMode { get; set; }
Property Value
Type | Description |
---|---|
KeyframeMode |
LagInFrames
Gets or sets a value that maps to "g_lag_in_frames".
Declaration
public int LagInFrames { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LayerTargetBitrate
Gets or sets a value that maps to "layer_trget_bitrater".
Declaration
public int[] LayerTargetBitrate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
MaxQuantizer
Gets or sets a value that maps to "rc_max_quantizer". If -1, then Quality field used.
Declaration
public int MaxQuantizer { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MinQuantizer
Gets or sets a value that maps to "rc_min_quantizer".
Declaration
public int MinQuantizer { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
OvershootPercentage
Gets or sets a value that maps to "rc_overshoot_pct".
Declaration
public int OvershootPercentage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Profile
Gets or sets a value that maps to "g_profile".
Declaration
public int Profile { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ResizeAllowed
Gets or sets a value that maps to "rc_resize_allowed".
Declaration
public bool ResizeAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ResizeDownThreshold
Gets or sets a value that maps to "rc_resize_down_thresh".
Declaration
public int ResizeDownThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ResizeUpThreshold
Gets or sets a value that maps to "rc_resize_up_thresh".
Declaration
public int ResizeUpThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ScaledHeight
Gets or sets a value that maps to "rc_scaled_height".
Declaration
public int ScaledHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ScaledWidth
Gets or sets a value that maps to "rc_scaled_width".
Declaration
public int ScaledWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SpatialEnableAutoAltRef
Gets or sets a value that maps to "ss_enable_auto_alt_ref".
Declaration
public int[] SpatialEnableAutoAltRef { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
SpatialLayers
Gets or sets a value that maps to "ss_number_layers".
Declaration
public int SpatialLayers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SpatialTargetBitrate
Gets or sets a value that maps to "ss_target_bitrate".
Declaration
public int[] SpatialTargetBitrate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
TemporalLayerMode
Gets or sets a value that maps to "temporal_layering_mode".
Declaration
public TemporalLayerMode TemporalLayerMode { get; set; }
Property Value
Type | Description |
---|---|
TemporalLayerMode |
TemporalLayers
Gets or sets a value that maps to "ts_number_layers".
Declaration
public int TemporalLayers { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TemporalPattern
Gets or sets a value that maps to "ts_layer_id".
Declaration
public int[] TemporalPattern { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
TemporalPeriodicity
Gets or sets a value that maps to "ts_periodicity".
Declaration
public int TemporalPeriodicity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TemporalRateDecimator
Gets or sets a value that maps to "ts_rate_decimator".
Declaration
public int[] TemporalRateDecimator { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
TemporalTargetBitrate
Gets or sets a value that maps to "ts_target_bitrate".
Declaration
public int[] TemporalTargetBitrate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
Threads
Gets or sets a value that maps to "g_threads".
Declaration
public int Threads { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TimebaseDenominator
Gets or sets a value that maps to "g_timebase.den".
Declaration
public int TimebaseDenominator { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
TimebaseNumerator
Gets or sets a value that maps to "g_timebase.num".
Declaration
public int TimebaseNumerator { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UndershootPercentage
Gets or sets a value that maps to "rc_undershoot_pct".
Declaration
public int UndershootPercentage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Usage
Gets or sets a value that maps to "g_usage".
Declaration
public int Usage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DeepCopy()
Gets a deep copy of this configuration.
Declaration
public EncoderConfig DeepCopy()
Returns
Type | Description |
---|---|
EncoderConfig |