Class BaseSrc
- Namespace
- GstBase
- Assembly
- GstBase-1.0.dll
public class BaseSrc : Element, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
BaseSrc
- Implements
- Derived
- Inherited Members
Constructors
BaseSrc(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 BaseSrc(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
BaseSrc(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected BaseSrc(CreationData data)
Parameters
dataCreationData
BaseSrc(BaseSrcHandle)
protected BaseSrc(BaseSrcHandle handle)
Parameters
handleBaseSrcHandle
Fields
AutomaticEosPropertyDefinition
public static readonly Property<bool, BaseSrc> AutomaticEosPropertyDefinition
Field Value
BlocksizePropertyDefinition
public static readonly Property<uint, BaseSrc> BlocksizePropertyDefinition
Field Value
DoTimestampPropertyDefinition
public static readonly Property<bool, BaseSrc> DoTimestampPropertyDefinition
Field Value
NumBuffersPropertyDefinition
public static readonly Property<int, BaseSrc> NumBuffersPropertyDefinition
Field Value
TypefindPropertyDefinition
public static readonly Property<bool, BaseSrc> TypefindPropertyDefinition
Field Value
Properties
AutomaticEos
public bool AutomaticEos { get; set; }
Property Value
Blocksize
public uint Blocksize { get; set; }
Property Value
DoTimestamp
public bool DoTimestamp { get; set; }
Property Value
NumBuffers
public int NumBuffers { get; set; }
Property Value
Typefind
public bool Typefind { get; set; }
Property Value
Methods
GetBlocksize()
public uint GetBlocksize()
Returns
GetBufferPool()
public BufferPool? GetBufferPool()
Returns
GetDoTimestamp()
public bool GetDoTimestamp()
Returns
GetGType()
public static Type GetGType()
Returns
IsAsync()
public bool IsAsync()
Returns
IsLive()
public bool IsLive()
Returns
Negotiate()
[Version("1.18")]
public bool Negotiate()
Returns
NewFromPointer(nint, bool)
Creates a new managed BaseSrc instance for a given pointer.
public static BaseSrc NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewSeamlessSegment(long, long, long)
public bool NewSeamlessSegment(long start, long stop, long time)
Parameters
Returns
NewSegment(Segment)
[Version("1.18")]
public bool NewSegment(Segment segment)
Parameters
segmentSegment
Returns
NewWithProperties(ConstructArgument[])
Creates a new BaseSrc and sets the properties specified by the construct arguments.
public static BaseSrc NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PushSegment(Segment)
[Version("1.24")]
public bool PushSegment(Segment segment)
Parameters
segmentSegment
Returns
QueryLatency(out bool, out ClockTime, out ClockTime)
public bool QueryLatency(out bool live, out ClockTime minLatency, out ClockTime maxLatency)
Parameters
Returns
SetAsync(bool)
public void SetAsync(bool async)
Parameters
asyncbool
SetAutomaticEos(bool)
[Version("1.4")]
public void SetAutomaticEos(bool automaticEos)
Parameters
automaticEosbool
SetBlocksize(uint)
public void SetBlocksize(uint blocksize)
Parameters
blocksizeuint
SetCaps(Caps)
public bool SetCaps(Caps caps)
Parameters
capsCaps
Returns
SetDoTimestamp(bool)
public void SetDoTimestamp(bool timestamp)
Parameters
timestampbool
SetDynamicSize(bool)
public void SetDynamicSize(bool dynamic)
Parameters
dynamicbool
SetFormat(Format)
public void SetFormat(Format format)
Parameters
formatFormat
SetLive(bool)
public void SetLive(bool live)
Parameters
livebool
StartComplete(FlowReturn)
public void StartComplete(FlowReturn ret)
Parameters
retFlowReturn
StartWait()
public FlowReturn StartWait()
Returns
SubmitBufferList(BufferList)
[Version("1.14")]
public void SubmitBufferList(BufferList bufferList)
Parameters
bufferListBufferList
WaitPlaying()
public FlowReturn WaitPlaying()