Class VideoConfig
A video configuration.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class VideoConfig : MediaConfig<VideoConfig>
Constructors
VideoConfig(Size, Double)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(Size size, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size. |
System.Double | frameRate | The frame rate. |
VideoConfig(Size, Double, Int32)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(Size size, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size. |
System.Double | frameRate | The frame rate. |
System.Int32 | clockRate | The clock rate. |
VideoConfig(Int32, Int32, Double)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(int width, int height, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The height. |
System.Double | frameRate | The frame rate. |
VideoConfig(Int32, Int32, Double, Int32)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(int width, int height, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The height. |
System.Double | frameRate | The frame rate. |
System.Int32 | clockRate | The clock rate. |
VideoConfig(String, Double)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(string preset, double frameRate)
Parameters
Type | Name | Description |
---|---|---|
System.String | preset | The preset. |
System.Double | frameRate | The frame rate. |
VideoConfig(String, Double, Int32)
Initializes a new instance of the VideoConfig class.
Declaration
public VideoConfig(string preset, double frameRate, int clockRate)
Parameters
Type | Name | Description |
---|---|---|
System.String | preset | The preset. |
System.Double | frameRate | The frame rate. |
System.Int32 | clockRate | The clock rate. |
Properties
FrameDuration
Gets the frame duration in milliseconds.
Declaration
public double FrameDuration { get; }
Property Value
Type | Description |
---|---|
System.Double |
FrameRate
Gets or sets the frame-rate.
Declaration
public double FrameRate { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Height
Gets the size height.
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Preset
Gets or sets the preset. A value of null indicates unset.
Declaration
public string Preset { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Size
Gets or sets the size.
Declaration
public Size Size { get; set; }
Property Value
Type | Description |
---|---|
Size |
Width
Gets the size width.
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
IsEquivalent(VideoConfig)
Determines whether the specified configuration is equivalent.
Declaration
public override bool IsEquivalent(VideoConfig config)
Parameters
Type | Name | Description |
---|---|---|
VideoConfig | config | The configuration. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |