MediaSubsample Struct

A subsample of an encrypted sample: a range of clear bytes followed by a range of protected bytes.

public readonly struct MediaSubsample : IEquatable<MediaSubsample>
Implements

Constructors

NameDescription
MediaSubsample(int, int)A subsample of an encrypted sample: a range of clear bytes followed by a range of protected bytes.

MediaSubsample(int, int)

A subsample of an encrypted sample: a range of clear bytes followed by a range of protected bytes.

public MediaSubsample(int ClearBytes, int ProtectedBytes)

Parameters

ClearBytes int
The number of bytes that are not encrypted (e.g. the header of a NAL unit).
ProtectedBytes int
The number of bytes that follow the clear bytes and are encrypted.

Properties

NameDescription
ClearBytesThe number of bytes that are not encrypted (e.g. the header of a NAL unit).
ProtectedBytesThe number of bytes that follow the clear bytes and are encrypted.

The number of bytes that are not encrypted (e.g. the header of a NAL unit).

public int ClearBytes { get; init; }

Property value

int

The number of bytes that follow the clear bytes and are encrypted.

public int ProtectedBytes { get; init; }

Property value

int

Methods

NameDescription
Deconstruct(int, int)
Equals(MediaSubsample)
Equals(object)
GetHashCode()
ToString()

Deconstruct(int, int)

public void Deconstruct(out int ClearBytes, out int ProtectedBytes)

Parameters

ClearBytes int
ProtectedBytes int

No documentation is available.

Equals overloads

Equals(MediaSubsample)

public bool Equals(MediaSubsample other)
Parameters
other MediaSubsample
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(MediaSubsample, MediaSubsample)
operator !=(MediaSubsample, MediaSubsample)

operator ==(MediaSubsample, MediaSubsample)

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

Parameters

left MediaSubsample
right MediaSubsample

Returns

bool

No documentation is available.

operator !=(MediaSubsample, MediaSubsample)

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

Parameters

left MediaSubsample
right MediaSubsample

Returns

bool

No documentation is available.