Skip to main content
Version: 21 Aug 2024

StreamConfiguration

NameSpace: Android

Inherits from:
IComparable< StreamConfiguration >,
IEquatable< StreamConfiguration >

Public Methods

int CompareTo

public int CompareTo(
StreamConfiguration other
)

Parameters

TypeNameDescription
StreamConfigurationother

bool Equals

public bool Equals(
StreamConfiguration other
)

Parameters

TypeNameDescription
StreamConfigurationother

override bool Equals

public override bool Equals(
object obj
)

Parameters

TypeNameDescription
objectobj

override int GetHashCode

public override int GetHashCode()

StreamConfiguration

public StreamConfiguration(
MediaFormat format,
int width,
int height
)

Parameters

TypeNameDescription
MediaFormatformat
intwidth
intheight

override string ToString

public override string ToString()

bool operator!=

public static bool operator!=(
StreamConfiguration lhs,
StreamConfiguration rhs
)

Parameters

TypeNameDescription
StreamConfigurationlhs
StreamConfigurationrhs

bool operator<

public static bool operator<(
StreamConfiguration lhs,
StreamConfiguration rhs
)

Parameters

TypeNameDescription
StreamConfigurationlhs
StreamConfigurationrhs

bool operator==

public static bool operator==(
StreamConfiguration lhs,
StreamConfiguration rhs
)

Parameters

TypeNameDescription
StreamConfigurationlhs
StreamConfigurationrhs

bool operator>

public static bool operator>(
StreamConfiguration lhs,
StreamConfiguration rhs
)

Parameters

TypeNameDescription
StreamConfigurationlhs
StreamConfigurationrhs

Public Attributes

AspectRatio


public float AspectRatio => Width / (float)Height;


Format


public readonly MediaFormat Format;


Height


public readonly int Height;


Invalid


public static readonly StreamConfiguration Invalid = default;


IsValid


public bool IsValid => this != Invalid;


Width


public readonly int Width;