Table of Contents

Class VideoCaptureMode

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Video capture mode

public class VideoCaptureMode : IEquatable<VideoCaptureMode>, IComparable<VideoCaptureMode>
Inheritance
VideoCaptureMode
Implements
Inherited Members

Constructors

VideoCaptureMode()

public VideoCaptureMode()

Properties

Codec

Gets or sets codec captured video encoded with. In most cases it has the value Uncompressed with exact pixel format specified in PixelFormat.

public Codec Codec { get; set; }

Property Value

Codec

Framerate

Gets or sets video framerate. Could be 0 which means framerate is uncertain

public double Framerate { get; set; }

Property Value

double

Height

Gets or sets video height

public int Height { get; set; }

Property Value

int

PixelFormat

Gets or sets pixel format. Could be None which means pixel format is uncertain. If Codec is not Uncompressed then the value of this field is uncertain and should not be used.

public PixelFormat PixelFormat { get; set; }

Property Value

PixelFormat

Timescale

Gets or sets source timescale.

public Rational Timescale { get; set; }

Property Value

Rational

Width

Gets or sets video width

public int Width { get; set; }

Property Value

int

Methods

Clone()

Creates a copy of this capture mode.

public VideoCaptureMode Clone()

Returns

VideoCaptureMode

A new VideoCaptureMode instance with copied values.

CompareTo(VideoCaptureMode)

Compares two objects of current class

public int CompareTo(VideoCaptureMode other)

Parameters

other VideoCaptureMode

Object to compare current instance to

Returns

int

-1 if current object is less than another, 0 if objects are equal, 1 if current object is bigger than another

Equals(object)

Compares two objects of current class

public override bool Equals(object obj)

Parameters

obj object

Object to compare current instance to

Returns

bool

True if objects are equal, false otherwise

Equals(VideoCaptureMode)

Compares two objects of current class

public bool Equals(VideoCaptureMode other)

Parameters

other VideoCaptureMode

Object to compare current instance to

Returns

bool

True if objects are equal, false otherwise

GetHashCode()

Gets hash code of current object

public override int GetHashCode()

Returns

int

Hash code

ToString()

Serializes object to a human readable string

public override string ToString()

Returns

string

String representation of the current object

Operators

operator ==(VideoCaptureMode, VideoCaptureMode)

Determines whether two capture modes are equal.

public static bool operator ==(VideoCaptureMode left, VideoCaptureMode right)

Parameters

left VideoCaptureMode

The first capture mode.

right VideoCaptureMode

The second capture mode.

Returns

bool

True if both capture modes are equal; otherwise, false.

operator !=(VideoCaptureMode, VideoCaptureMode)

Determines whether two capture modes are not equal.

public static bool operator !=(VideoCaptureMode left, VideoCaptureMode right)

Parameters

left VideoCaptureMode

The first capture mode.

right VideoCaptureMode

The second capture mode.

Returns

bool

True if the capture modes are not equal; otherwise, false.