Table of Contents

Class Query

Namespace
Gst
Assembly
Gst-1.0.dll
public sealed class Query : BoxedRecord, IEquatable<Query>
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

QueryOwnedHandle

Type

public QueryType Type { get; set; }

Property Value

QueryType

Methods

AddAllocationMeta(Type, Structure?)

public void AddAllocationMeta(Type api, Structure? @params)

Parameters

api Type
params Structure

AddAllocationParam(Allocator?, AllocationParams?)

public void AddAllocationParam(Allocator? allocator, AllocationParams? @params)

Parameters

allocator Allocator
params AllocationParams

AddAllocationPool(BufferPool?, uint, uint, uint)

public void AddAllocationPool(BufferPool? pool, uint size, uint minBuffers, uint maxBuffers)

Parameters

pool BufferPool
size uint
minBuffers uint
maxBuffers uint

AddBufferingRange(long, long)

public bool AddBufferingRange(long start, long stop)

Parameters

start long
stop long

Returns

bool

AddSchedulingMode(PadMode)

public void AddSchedulingMode(PadMode mode)

Parameters

mode PadMode

Equals(Query?)

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

public bool Equals(Query? other)

Parameters

other Query

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.

FindAllocationMeta(Type, out uint)

public bool FindAllocationMeta(Type api, out uint index)

Parameters

api Type
index uint

Returns

bool

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.

GetNAllocationMetas()

public uint GetNAllocationMetas()

Returns

uint

GetNAllocationParams()

public uint GetNAllocationParams()

Returns

uint

GetNAllocationPools()

public uint GetNAllocationPools()

Returns

uint

GetNBufferingRanges()

public uint GetNBufferingRanges()

Returns

uint

GetNSchedulingModes()

public uint GetNSchedulingModes()

Returns

uint

GetStructure()

public Structure? GetStructure()

Returns

Structure

HasSchedulingMode(PadMode)

public bool HasSchedulingMode(PadMode mode)

Parameters

mode PadMode

Returns

bool

HasSchedulingModeWithFlags(PadMode, SchedulingFlags)

public bool HasSchedulingModeWithFlags(PadMode mode, SchedulingFlags flags)

Parameters

mode PadMode
flags SchedulingFlags

Returns

bool

NewAcceptCaps(Caps)

public static Query NewAcceptCaps(Caps caps)

Parameters

caps Caps

Returns

Query

NewAllocation(Caps?, bool)

public static Query NewAllocation(Caps? caps, bool needPool)

Parameters

caps Caps
needPool bool

Returns

Query

NewBitrate()

[Version("1.16")]
public static Query NewBitrate()

Returns

Query

NewBuffering(Format)

public static Query NewBuffering(Format format)

Parameters

format Format

Returns

Query

NewCaps(Caps)

public static Query NewCaps(Caps filter)

Parameters

filter Caps

Returns

Query

NewContext(string)

[Version("1.2")]
public static Query NewContext(string contextType)

Parameters

contextType string

Returns

Query

NewConvert(Format, long, Format)

public static Query NewConvert(Format srcFormat, long value, Format destFormat)

Parameters

srcFormat Format
value long
destFormat Format

Returns

Query

NewCustom(QueryType, Structure?)

public static Query NewCustom(QueryType type, Structure? structure)

Parameters

type QueryType
structure Structure

Returns

Query

NewDrain()

public static Query NewDrain()

Returns

Query

NewDuration(Format)

public static Query NewDuration(Format format)

Parameters

format Format

Returns

Query

NewFormats()

public static Query NewFormats()

Returns

Query

NewLatency()

public static Query NewLatency()

Returns

Query

NewPosition(Format)

public static Query NewPosition(Format format)

Parameters

format Format

Returns

Query

NewScheduling()

public static Query NewScheduling()

Returns

Query

NewSeeking(Format)

public static Query NewSeeking(Format format)

Parameters

format Format

Returns

Query

NewSegment(Format)

public static Query NewSegment(Format format)

Parameters

format Format

Returns

Query

NewSelectable()

[Version("1.22")]
public static Query NewSelectable()

Returns

Query

NewUri()

public static Query NewUri()

Returns

Query

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

busy bool
percent int

ParseContextType(out string)

[Version("1.2")]
public bool ParseContextType(out string contextType)

Parameters

contextType string

Returns

bool

ParseLatency(out bool, out ClockTime, out ClockTime)

public void ParseLatency(out bool live, out ClockTime minLatency, out ClockTime maxLatency)

Parameters

live bool
minLatency ClockTime
maxLatency ClockTime

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

index uint
start long
stop long

Returns

bool

ParseNthSchedulingMode(uint)

public PadMode ParseNthSchedulingMode(uint index)

Parameters

index uint

Returns

PadMode

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

busy bool
percent int

SetBufferingRange(Format, long, long, long)

public void SetBufferingRange(Format format, long start, long stop, long estimatedTotal)

Parameters

format Format
start long
stop long
estimatedTotal long

SetBufferingStats(BufferingMode, int, int, long)

public void SetBufferingStats(BufferingMode mode, int avgIn, int avgOut, long bufferingLeft)

Parameters

mode BufferingMode
avgIn int
avgOut int
bufferingLeft 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

srcFormat Format
srcValue long
destFormat Format
destValue long

SetDuration(Format, long)

public void SetDuration(Format format, long duration)

Parameters

format Format
duration long

SetLatency(bool, ClockTime, ClockTime)

public void SetLatency(bool live, ClockTime minLatency, ClockTime maxLatency)

Parameters

live bool
minLatency ClockTime
maxLatency ClockTime

SetNthAllocationParam(uint, Allocator?, AllocationParams?)

public void SetNthAllocationParam(uint index, Allocator? allocator, AllocationParams? @params)

Parameters

index uint
allocator Allocator
params AllocationParams

SetNthAllocationPool(uint, BufferPool?, uint, uint, uint)

public void SetNthAllocationPool(uint index, BufferPool? pool, uint size, uint minBuffers, uint maxBuffers)

Parameters

index uint
pool BufferPool
size uint
minBuffers uint
maxBuffers uint

SetPosition(Format, long)

public void SetPosition(Format format, long cur)

Parameters

format Format
cur long

SetScheduling(SchedulingFlags, int, int, int)

public void SetScheduling(SchedulingFlags flags, int minsize, int maxsize, int align)

Parameters

flags SchedulingFlags
minsize int
maxsize int
align int

SetSeeking(Format, bool, long, long)

public void SetSeeking(Format format, bool seekable, long segmentStart, long segmentEnd)

Parameters

format Format
seekable bool
segmentStart long
segmentEnd long

SetSegment(double, Format, long, long)

public void SetSegment(double rate, Format format, long startValue, long stopValue)

Parameters

rate double
format Format
startValue long
stopValue long

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()

Returns

Structure