Table of Contents

Class Segment

Namespace
Gst
Assembly
Gst-1.0.dll
public sealed class Segment : BoxedRecord, IEquatable<Segment>
Inheritance
Segment
Implements
Inherited Members

Constructors

Segment()

public Segment()

Segment(SegmentOwnedHandle)

public Segment(SegmentOwnedHandle handle)

Parameters

handle SegmentOwnedHandle

Properties

AppliedRate

public double AppliedRate { get; set; }

Property Value

double

Base

public ulong Base { get; set; }

Property Value

ulong

Duration

public ulong Duration { get; set; }

Property Value

ulong

Flags

public SegmentFlags Flags { get; set; }

Property Value

SegmentFlags

Format

public Format Format { get; set; }

Property Value

Format

Handle

public SegmentOwnedHandle Handle { get; }

Property Value

SegmentOwnedHandle

Offset

public ulong Offset { get; set; }

Property Value

ulong

Position

public ulong Position { get; set; }

Property Value

ulong

Rate

public double Rate { get; set; }

Property Value

double

Start

public ulong Start { get; set; }

Property Value

ulong

Stop

public ulong Stop { get; set; }

Property Value

ulong

Time

public ulong Time { get; set; }

Property Value

ulong

Methods

Clip(Format, ulong, ulong, out ulong, out ulong)

public bool Clip(Format format, ulong start, ulong stop, out ulong clipStart, out ulong clipStop)

Parameters

format Format
start ulong
stop ulong
clipStart ulong
clipStop ulong

Returns

bool

Copy()

public Segment Copy()

Returns

Segment

CopyInto(Segment)

public void CopyInto(Segment dest)

Parameters

dest Segment

DoSeek(double, Format, SeekFlags, SeekType, ulong, SeekType, ulong, out bool)

public bool DoSeek(double rate, Format format, SeekFlags flags, SeekType startType, ulong start, SeekType stopType, ulong stop, out bool update)

Parameters

rate double
format Format
flags SeekFlags
startType SeekType
start ulong
stopType SeekType
stop ulong
update bool

Returns

bool

Equals(Segment?)

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

public bool Equals(Segment? other)

Parameters

other Segment

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

Free()

public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init(Format)

public void Init(Format format)

Parameters

format Format

IsEqual(Segment)

[Version("1.6")]
public bool IsEqual(Segment s1)

Parameters

s1 Segment

Returns

bool

New()

public static Segment New()

Returns

Segment

OffsetRunningTime(Format, long)

[Version("1.2.3")]
public bool OffsetRunningTime(Format format, long offset)

Parameters

format Format
offset long

Returns

bool

PositionFromRunningTime(Format, ulong)

[Version("1.8")]
public ulong PositionFromRunningTime(Format format, ulong runningTime)

Parameters

format Format
runningTime ulong

Returns

ulong

PositionFromRunningTimeFull(Format, ulong, out ulong)

[Version("1.8")]
public int PositionFromRunningTimeFull(Format format, ulong runningTime, out ulong position)

Parameters

format Format
runningTime ulong
position ulong

Returns

int

PositionFromStreamTime(Format, ulong)

[Version("1.8")]
public ulong PositionFromStreamTime(Format format, ulong streamTime)

Parameters

format Format
streamTime ulong

Returns

ulong

PositionFromStreamTimeFull(Format, ulong, out ulong)

[Version("1.8")]
public int PositionFromStreamTimeFull(Format format, ulong streamTime, out ulong position)

Parameters

format Format
streamTime ulong
position ulong

Returns

int

SetRunningTime(Format, ulong)

public bool SetRunningTime(Format format, ulong runningTime)

Parameters

format Format
runningTime ulong

Returns

bool

ToPosition(Format, ulong)

public ulong ToPosition(Format format, ulong runningTime)

Parameters

format Format
runningTime ulong

Returns

ulong

ToRunningTime(Format, ulong)

public ulong ToRunningTime(Format format, ulong position)

Parameters

format Format
position ulong

Returns

ulong

ToRunningTimeFull(Format, ulong, out ulong)

[Version("1.6")]
public int ToRunningTimeFull(Format format, ulong position, out ulong runningTime)

Parameters

format Format
position ulong
runningTime ulong

Returns

int

ToStreamTime(Format, ulong)

[Version("1.8")]
public ulong ToStreamTime(Format format, ulong position)

Parameters

format Format
position ulong

Returns

ulong

ToStreamTimeFull(Format, ulong, out ulong)

[Version("1.8")]
public int ToStreamTimeFull(Format format, ulong position, out ulong streamTime)

Parameters

format Format
position ulong
streamTime ulong

Returns

int