Class AppSink
- Namespace
- GstApp
- Assembly
- GstApp-1.0.dll
public class AppSink : BaseSink, URIHandler, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
AppSink
- Implements
- Inherited Members
Constructors
AppSink(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public AppSink(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
AppSink(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected AppSink(CreationData data)
Parameters
dataCreationData
AppSink(AppSinkHandle)
protected AppSink(AppSinkHandle handle)
Parameters
handleAppSinkHandle
Fields
BufferListPropertyDefinition
public static readonly Property<bool, AppSink> BufferListPropertyDefinition
Field Value
CapsPropertyDefinition
public static readonly Property<Caps, AppSink> CapsPropertyDefinition
Field Value
CurrentLevelBuffersPropertyDefinition
public static readonly Property<ulong, AppSink> CurrentLevelBuffersPropertyDefinition
Field Value
CurrentLevelBytesPropertyDefinition
public static readonly Property<ulong, AppSink> CurrentLevelBytesPropertyDefinition
Field Value
CurrentLevelTimePropertyDefinition
public static readonly Property<ulong, AppSink> CurrentLevelTimePropertyDefinition
Field Value
DropPropertyDefinition
public static readonly Property<bool, AppSink> DropPropertyDefinition
Field Value
DroppedPropertyDefinition
public static readonly Property<ulong, AppSink> DroppedPropertyDefinition
Field Value
EmitSignalsPropertyDefinition
public static readonly Property<bool, AppSink> EmitSignalsPropertyDefinition
Field Value
EosPropertyDefinition
public static readonly Property<bool, AppSink> EosPropertyDefinition
Field Value
EosSignal
Signal Descriptor for OnEos.
public static readonly Signal<AppSink> EosSignal
Field Value
InPropertyDefinition
public static readonly Property<ulong, AppSink> InPropertyDefinition
Field Value
LeakyTypePropertyDefinition
public static readonly Property<AppLeakyType, AppSink> LeakyTypePropertyDefinition
Field Value
MaxBuffersPropertyDefinition
public static readonly Property<uint, AppSink> MaxBuffersPropertyDefinition
Field Value
MaxBytesPropertyDefinition
public static readonly Property<ulong, AppSink> MaxBytesPropertyDefinition
Field Value
MaxTimePropertyDefinition
public static readonly Property<ulong, AppSink> MaxTimePropertyDefinition
Field Value
NewPrerollSignal
Signal Descriptor for OnNewPreroll.
public static readonly ReturningSignal<AppSink, FlowReturn> NewPrerollSignal
Field Value
NewSampleSignal
Signal Descriptor for OnNewSample.
public static readonly ReturningSignal<AppSink, FlowReturn> NewSampleSignal
Field Value
NewSerializedEventSignal
Signal Descriptor for OnNewSerializedEvent.
public static readonly ReturningSignal<AppSink, bool> NewSerializedEventSignal
Field Value
OutPropertyDefinition
public static readonly Property<ulong, AppSink> OutPropertyDefinition
Field Value
ProposeAllocationSignal
Signal Descriptor for OnProposeAllocation.
public static readonly ReturningSignal<AppSink, AppSink.ProposeAllocationSignalArgs, bool> ProposeAllocationSignal
Field Value
PullPrerollSignal
Signal Descriptor for OnPullPreroll.
public static readonly ReturningSignal<AppSink, Sample?> PullPrerollSignal
Field Value
PullSampleSignal
Signal Descriptor for OnPullSample.
public static readonly ReturningSignal<AppSink, Sample?> PullSampleSignal
Field Value
SilentPropertyDefinition
public static readonly Property<bool, AppSink> SilentPropertyDefinition
Field Value
TryPullObjectSignal
Signal Descriptor for OnTryPullObject.
public static readonly ReturningSignal<AppSink, AppSink.TryPullObjectSignalArgs, MiniObject?> TryPullObjectSignal
Field Value
TryPullPrerollSignal
Signal Descriptor for OnTryPullPreroll.
public static readonly ReturningSignal<AppSink, AppSink.TryPullPrerollSignalArgs, Sample?> TryPullPrerollSignal
Field Value
TryPullSampleSignal
Signal Descriptor for OnTryPullSample.
public static readonly ReturningSignal<AppSink, AppSink.TryPullSampleSignalArgs, Sample?> TryPullSampleSignal
Field Value
WaitOnEosPropertyDefinition
public static readonly Property<bool, AppSink> WaitOnEosPropertyDefinition
Field Value
Properties
BufferList
public bool BufferList { get; set; }
Property Value
Caps
public Caps Caps { get; set; }
Property Value
CurrentLevelBuffers
public ulong CurrentLevelBuffers { get; }
Property Value
CurrentLevelBytes
public ulong CurrentLevelBytes { get; }
Property Value
CurrentLevelTime
public ulong CurrentLevelTime { get; }
Property Value
Drop
public bool Drop { get; set; }
Property Value
Dropped
public ulong Dropped { get; }
Property Value
EmitSignals
public bool EmitSignals { get; set; }
Property Value
Eos
public bool Eos { get; }
Property Value
In
public ulong In { get; }
Property Value
LeakyType
public AppLeakyType LeakyType { get; set; }
Property Value
MaxBuffers
public uint MaxBuffers { get; set; }
Property Value
MaxBytes
public ulong MaxBytes { get; set; }
Property Value
MaxTime
public ulong MaxTime { get; set; }
Property Value
Out
public ulong Out { get; }
Property Value
Silent
public bool Silent { get; set; }
Property Value
WaitOnEos
public bool WaitOnEos { get; set; }
Property Value
Methods
GetBufferListSupport()
[Version("1.12")]
public bool GetBufferListSupport()
Returns
GetCaps()
public Caps? GetCaps()
Returns
GetCurrentLevelBuffers()
[Version("1.28")]
public ulong GetCurrentLevelBuffers()
Returns
GetCurrentLevelBytes()
[Version("1.28")]
public ulong GetCurrentLevelBytes()
Returns
GetCurrentLevelTime()
[Version("1.28")]
public ClockTime GetCurrentLevelTime()
Returns
GetDrop()
public bool GetDrop()
Returns
GetEmitSignals()
public bool GetEmitSignals()
Returns
GetGType()
public static Type GetGType()
Returns
GetLeakyType()
[Version("1.28")]
public AppLeakyType GetLeakyType()
Returns
GetMaxBuffers()
public uint GetMaxBuffers()
Returns
GetMaxBytes()
[Version("1.24")]
public ulong GetMaxBytes()
Returns
GetMaxTime()
[Version("1.24")]
public ClockTime GetMaxTime()
Returns
GetProtocols()
public string[]? GetProtocols()
Returns
- string[]
GetUri()
public string? GetUri()
Returns
GetUriType()
public URIType GetUriType()
Returns
GetWaitOnEos()
public bool GetWaitOnEos()
Returns
IsEos()
public bool IsEos()
Returns
NewFromPointer(nint, bool)
Creates a new managed AppSink instance for a given pointer.
public static AppSink NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new AppSink and sets the properties specified by the construct arguments.
public static AppSink NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PullObject()
[Version("1.20")]
public MiniObject? PullObject()
Returns
PullPreroll()
public Sample? PullPreroll()
Returns
PullSample()
public Sample? PullSample()
Returns
SetBufferListSupport(bool)
[Version("1.12")]
public void SetBufferListSupport(bool enableLists)
Parameters
enableListsbool
SetCaps(Caps?)
public void SetCaps(Caps? caps)
Parameters
capsCaps
SetDrop(bool)
public void SetDrop(bool drop)
Parameters
dropbool
SetEmitSignals(bool)
public void SetEmitSignals(bool emit)
Parameters
emitbool
SetLeakyType(AppLeakyType)
[Version("1.28")]
public void SetLeakyType(AppLeakyType leaky)
Parameters
leakyAppLeakyType
SetMaxBuffers(uint)
public void SetMaxBuffers(uint max)
Parameters
maxuint
SetMaxBytes(ulong)
[Version("1.24")]
public void SetMaxBytes(ulong max)
Parameters
maxulong
SetMaxTime(ClockTime)
[Version("1.24")]
public void SetMaxTime(ClockTime max)
Parameters
maxClockTime
SetSimpleCallbacks(AppSinkSimpleCallbacks?)
[Version("1.28")]
public void SetSimpleCallbacks(AppSinkSimpleCallbacks? cb)
Parameters
SetUri(string)
public bool SetUri(string uri)
Parameters
uristring
Returns
Exceptions
- GException
Throws a GException in case of an error.
SetWaitOnEos(bool)
public void SetWaitOnEos(bool wait)
Parameters
waitbool
TryPullObject(ClockTime)
[Version("1.20")]
public MiniObject? TryPullObject(ClockTime timeout)
Parameters
timeoutClockTime
Returns
TryPullPreroll(ClockTime)
[Version("1.10")]
public Sample? TryPullPreroll(ClockTime timeout)
Parameters
timeoutClockTime
Returns
TryPullSample(ClockTime)
[Version("1.10")]
public Sample? TryPullSample(ClockTime timeout)
Parameters
timeoutClockTime
Returns
Events
OnEos
public event SignalHandler<AppSink> OnEos
Event Type
OnNewPreroll
public event ReturningSignalHandler<AppSink, FlowReturn> OnNewPreroll
Event Type
OnNewSample
public event ReturningSignalHandler<AppSink, FlowReturn> OnNewSample
Event Type
OnNewSerializedEvent
public event ReturningSignalHandler<AppSink, bool> OnNewSerializedEvent
Event Type
OnProposeAllocation
public event ReturningSignalHandler<AppSink, AppSink.ProposeAllocationSignalArgs, bool> OnProposeAllocation
Event Type
OnPullPreroll
public event ReturningSignalHandler<AppSink, Sample?> OnPullPreroll
Event Type
OnPullSample
public event ReturningSignalHandler<AppSink, Sample?> OnPullSample
Event Type
OnTryPullObject
public event ReturningSignalHandler<AppSink, AppSink.TryPullObjectSignalArgs, MiniObject?> OnTryPullObject
Event Type
OnTryPullPreroll
public event ReturningSignalHandler<AppSink, AppSink.TryPullPrerollSignalArgs, Sample?> OnTryPullPreroll
Event Type
OnTryPullSample
public event ReturningSignalHandler<AppSink, AppSink.TryPullSampleSignalArgs, Sample?> OnTryPullSample