Table of Contents

Struct VideoSize

Namespace
Glitch9.AIDevKit
[Serializable]
public readonly struct VideoSize : IStringWrapper, IEquatable<VideoSize>
Implements
IStringWrapper
IEquatable<VideoSize>

Constructors

VideoSize(int, int)

public VideoSize(int width, int height)

Parameters

width int
height int

VideoSize(string)

public VideoSize(string value)

Parameters

value string

Fields

Auto

public const string Auto = "auto"

Field Value

string

R1024x1024

public const string R1024x1024 = "1024x1024"

Field Value

string

R1080x1080

public const string R1080x1080 = "1080x1080"

Field Value

string

R1080x1350

public const string R1080x1350 = "1080x1350"

Field Value

string

R1080x1920

public const string R1080x1920 = "1080x1920"

Field Value

string

R1280x720

public const string R1280x720 = "1280x720"

Field Value

string

R1440x2560

public const string R1440x2560 = "1440x2560"

Field Value

string

R1920x1080

public const string R1920x1080 = "1920x1080"

Field Value

string

R2048x2048

public const string R2048x2048 = "2048x2048"

Field Value

string

R2160x3840

public const string R2160x3840 = "2160x3840"

Field Value

string

R2560x1440

public const string R2560x1440 = "2560x1440"

Field Value

string

R3840x2160

public const string R3840x2160 = "3840x2160"

Field Value

string

R720x1280

public const string R720x1280 = "720x1280"

Field Value

string

Properties

IsLandscape

public bool IsLandscape { get; }

Property Value

bool

IsPortrait

public bool IsPortrait { get; }

Property Value

bool

IsSquare

public bool IsSquare { get; }

Property Value

bool

Value

public string Value { get; }

Property Value

string

Methods

Equals(VideoSize)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(VideoSize other)

Parameters

other VideoSize

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

GetSoraDisplayedValues(MediaAspect)

public static Dictionary<string, string> GetSoraDisplayedValues(OpenAITypes.MediaAspect aspect)

Parameters

aspect OpenAITypes.MediaAspect

Returns

Dictionary<string, string>

GetSoraSupportedSizes(MediaAspect)

public static string[] GetSoraSupportedSizes(OpenAITypes.MediaAspect aspect)

Parameters

aspect OpenAITypes.MediaAspect

Returns

string[]

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

TryGetWidthHeight(out int, out int)

public bool TryGetWidthHeight(out int w, out int h)

Parameters

w int
h int

Returns

bool

TryParse(string, out VideoSize)

public static bool TryParse(string s, out VideoSize size)

Parameters

s string
size VideoSize

Returns

bool

Operators

implicit operator string(VideoSize)

public static implicit operator string(VideoSize size)

Parameters

size VideoSize

Returns

string

implicit operator VideoSize(string)

public static implicit operator VideoSize(string value)

Parameters

value string

Returns

VideoSize