Class Query
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public sealed class Query : BoxedRecord, GTypeProvider, InstanceFactory, IEquatable<Query>, IDisposable
- Inheritance
-
Query
- Implements
- Inherited Members
Constructors
Query()
public Query()
Query(QueryOwnedHandle)
public Query(QueryOwnedHandle handle)
Parameters
handle
QueryOwnedHandle
Properties
Handle
public QueryOwnedHandle Handle { get; }
Property Value
Type
public QueryType Type { get; set; }
Property Value
Methods
AddAllocationMeta(Type, Structure?)
public void AddAllocationMeta(Type api, Structure? @params)
Parameters
AddAllocationParam(Allocator?, AllocationParams?)
public void AddAllocationParam(Allocator? allocator, AllocationParams? @params)
Parameters
allocator
Allocatorparams
AllocationParams
AddAllocationPool(BufferPool?, uint, uint, uint)
public void AddAllocationPool(BufferPool? pool, uint size, uint minBuffers, uint maxBuffers)
Parameters
pool
BufferPoolsize
uintminBuffers
uintmaxBuffers
uint
AddBufferingRange(long, long)
public bool AddBufferingRange(long start, long stop)
Parameters
Returns
AddSchedulingMode(PadMode)
public void AddSchedulingMode(PadMode mode)
Parameters
mode
PadMode
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Equals(Query?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Query? other)
Parameters
other
QueryAn 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
FindAllocationMeta(Type, out uint)
public bool FindAllocationMeta(Type api, out uint index)
Parameters
Returns
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.
GetNAllocationMetas()
public uint GetNAllocationMetas()
Returns
GetNAllocationParams()
public uint GetNAllocationParams()
Returns
GetNAllocationPools()
public uint GetNAllocationPools()
Returns
GetNBufferingRanges()
public uint GetNBufferingRanges()
Returns
GetNSchedulingModes()
public uint GetNSchedulingModes()
Returns
GetStructure()
public Structure? GetStructure()
Returns
HasSchedulingMode(PadMode)
public bool HasSchedulingMode(PadMode mode)
Parameters
mode
PadMode
Returns
HasSchedulingModeWithFlags(PadMode, SchedulingFlags)
public bool HasSchedulingModeWithFlags(PadMode mode, SchedulingFlags flags)
Parameters
mode
PadModeflags
SchedulingFlags
Returns
NewAcceptCaps(Caps)
public static Query NewAcceptCaps(Caps caps)
Parameters
caps
Caps
Returns
NewAllocation(Caps?, bool)
public static Query NewAllocation(Caps? caps, bool needPool)
Parameters
Returns
NewBitrate()
[Version("1.16")]
public static Query NewBitrate()
Returns
NewBuffering(Format)
public static Query NewBuffering(Format format)
Parameters
format
Format
Returns
NewCaps(Caps)
public static Query NewCaps(Caps filter)
Parameters
filter
Caps
Returns
NewContext(string)
[Version("1.2")]
public static Query NewContext(string contextType)
Parameters
contextType
string
Returns
NewConvert(Format, long, Format)
public static Query NewConvert(Format srcFormat, long value, Format destFormat)
Parameters
Returns
NewCustom(QueryType, Structure?)
public static Query NewCustom(QueryType type, Structure? structure)
Parameters
Returns
NewDrain()
public static Query NewDrain()
Returns
NewDuration(Format)
public static Query NewDuration(Format format)
Parameters
format
Format
Returns
NewFormats()
public static Query NewFormats()
Returns
NewLatency()
public static Query NewLatency()
Returns
NewPosition(Format)
public static Query NewPosition(Format format)
Parameters
format
Format
Returns
NewScheduling()
public static Query NewScheduling()
Returns
NewSeeking(Format)
public static Query NewSeeking(Format format)
Parameters
format
Format
Returns
NewSegment(Format)
public static Query NewSegment(Format format)
Parameters
format
Format
Returns
NewSelectable()
[Version("1.22")]
public static Query NewSelectable()
Returns
NewUri()
public static Query NewUri()
Returns
ParseAcceptCapsResult(out bool)
public void ParseAcceptCapsResult(out bool result)
Parameters
result
bool
ParseBitrate(out uint)
[Version("1.16")]
public void ParseBitrate(out uint nominalBitrate)
Parameters
nominalBitrate
uint
ParseBufferingPercent(out bool, out int)
public void ParseBufferingPercent(out bool busy, out int percent)
Parameters
ParseContextType(out string)
[Version("1.2")]
public bool ParseContextType(out string contextType)
Parameters
contextType
string
Returns
ParseLatency(out bool, out ClockTime, out ClockTime)
public void ParseLatency(out bool live, out ClockTime minLatency, out ClockTime maxLatency)
Parameters
ParseNFormats(out uint)
public void ParseNFormats(out uint nFormats)
Parameters
nFormats
uint
ParseNthBufferingRange(uint, out long, out long)
public bool ParseNthBufferingRange(uint index, out long start, out long stop)
Parameters
Returns
ParseNthSchedulingMode(uint)
public PadMode ParseNthSchedulingMode(uint index)
Parameters
index
uint
Returns
ParseSelectable(out bool)
[Version("1.22")]
public void ParseSelectable(out bool selectable)
Parameters
selectable
bool
ParseUri(out string?)
public void ParseUri(out string? uri)
Parameters
uri
string
ParseUriRedirection(out string?)
[Version("1.2")]
public void ParseUriRedirection(out string? uri)
Parameters
uri
string
ParseUriRedirectionPermanent(out bool)
[Version("1.4")]
public void ParseUriRedirectionPermanent(out bool permanent)
Parameters
permanent
bool
RemoveNthAllocationMeta(uint)
public void RemoveNthAllocationMeta(uint index)
Parameters
index
uint
RemoveNthAllocationParam(uint)
[Version("1.2")]
public void RemoveNthAllocationParam(uint index)
Parameters
index
uint
RemoveNthAllocationPool(uint)
[Version("1.2")]
public void RemoveNthAllocationPool(uint index)
Parameters
index
uint
SetAcceptCapsResult(bool)
public void SetAcceptCapsResult(bool result)
Parameters
result
bool
SetBitrate(uint)
[Version("1.16")]
public void SetBitrate(uint nominalBitrate)
Parameters
nominalBitrate
uint
SetBufferingPercent(bool, int)
public void SetBufferingPercent(bool busy, int percent)
Parameters
SetBufferingRange(Format, long, long, long)
public void SetBufferingRange(Format format, long start, long stop, long estimatedTotal)
Parameters
SetBufferingStats(BufferingMode, int, int, long)
public void SetBufferingStats(BufferingMode mode, int avgIn, int avgOut, long bufferingLeft)
Parameters
mode
BufferingModeavgIn
intavgOut
intbufferingLeft
long
SetCapsResult(Caps?)
public void SetCapsResult(Caps? caps)
Parameters
caps
Caps
SetContext(Context?)
[Version("1.2")]
public void SetContext(Context? context)
Parameters
context
Context
SetConvert(Format, long, Format, long)
public void SetConvert(Format srcFormat, long srcValue, Format destFormat, long destValue)
Parameters
SetDuration(Format, long)
public void SetDuration(Format format, long duration)
Parameters
SetLatency(bool, ClockTime, ClockTime)
public void SetLatency(bool live, ClockTime minLatency, ClockTime maxLatency)
Parameters
SetNthAllocationParam(uint, Allocator?, AllocationParams?)
public void SetNthAllocationParam(uint index, Allocator? allocator, AllocationParams? @params)
Parameters
index
uintallocator
Allocatorparams
AllocationParams
SetNthAllocationPool(uint, BufferPool?, uint, uint, uint)
public void SetNthAllocationPool(uint index, BufferPool? pool, uint size, uint minBuffers, uint maxBuffers)
Parameters
index
uintpool
BufferPoolsize
uintminBuffers
uintmaxBuffers
uint
SetPosition(Format, long)
public void SetPosition(Format format, long cur)
Parameters
SetScheduling(SchedulingFlags, int, int, int)
public void SetScheduling(SchedulingFlags flags, int minsize, int maxsize, int align)
Parameters
flags
SchedulingFlagsminsize
intmaxsize
intalign
int
SetSeeking(Format, bool, long, long)
public void SetSeeking(Format format, bool seekable, long segmentStart, long segmentEnd)
Parameters
SetSegment(double, Format, long, long)
public void SetSegment(double rate, Format format, long startValue, long stopValue)
Parameters
SetSelectable(bool)
[Version("1.22")]
public void SetSelectable(bool selectable)
Parameters
selectable
bool
SetUri(string?)
public void SetUri(string? uri)
Parameters
uri
string
SetUriRedirection(string?)
[Version("1.2")]
public void SetUriRedirection(string? uri)
Parameters
uri
string
SetUriRedirectionPermanent(bool)
[Version("1.4")]
public void SetUriRedirectionPermanent(bool permanent)
Parameters
permanent
bool
WritableStructure()
public Structure WritableStructure()