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
Base
public ulong Base { get; set; }
Property Value
Duration
public ulong Duration { get; set; }
Property Value
Flags
public SegmentFlags Flags { get; set; }
Property Value
Format
public Format Format { get; set; }
Property Value
Handle
public SegmentOwnedHandle Handle { get; }
Property Value
Offset
public ulong Offset { get; set; }
Property Value
Position
public ulong Position { get; set; }
Property Value
Rate
public double Rate { get; set; }
Property Value
Start
public ulong Start { get; set; }
Property Value
Stop
public ulong Stop { get; set; }
Property Value
Time
public ulong Time { get; set; }
Property Value
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
Returns
Copy()
public Segment Copy()
Returns
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
doubleformat
Formatflags
SeekFlagsstartType
SeekTypestart
ulongstopType
SeekTypestop
ulongupdate
bool
Returns
Equals(Segment?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Segment? other)
Parameters
other
SegmentAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
GetGType()
public static Type GetGType()
Returns
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
New()
public static Segment New()
Returns
OffsetRunningTime(Format, long)
[Version("1.2.3")]
public bool OffsetRunningTime(Format format, long offset)
Parameters
Returns
PositionFromRunningTime(Format, ulong)
[Version("1.8")]
public ulong PositionFromRunningTime(Format format, ulong runningTime)
Parameters
Returns
PositionFromRunningTimeFull(Format, ulong, out ulong)
[Version("1.8")]
public int PositionFromRunningTimeFull(Format format, ulong runningTime, out ulong position)
Parameters
Returns
PositionFromStreamTime(Format, ulong)
[Version("1.8")]
public ulong PositionFromStreamTime(Format format, ulong streamTime)
Parameters
Returns
PositionFromStreamTimeFull(Format, ulong, out ulong)
[Version("1.8")]
public int PositionFromStreamTimeFull(Format format, ulong streamTime, out ulong position)
Parameters
Returns
SetRunningTime(Format, ulong)
public bool SetRunningTime(Format format, ulong runningTime)
Parameters
Returns
ToPosition(Format, ulong)
public ulong ToPosition(Format format, ulong runningTime)
Parameters
Returns
ToRunningTime(Format, ulong)
public ulong ToRunningTime(Format format, ulong position)
Parameters
Returns
ToRunningTimeFull(Format, ulong, out ulong)
[Version("1.6")]
public int ToRunningTimeFull(Format format, ulong position, out ulong runningTime)
Parameters
Returns
ToStreamTime(Format, ulong)
[Version("1.8")]
public ulong ToStreamTime(Format format, ulong position)
Parameters
Returns
ToStreamTimeFull(Format, ulong, out ulong)
[Version("1.8")]
public int ToStreamTimeFull(Format format, ulong position, out ulong streamTime)