Class BaseParse
- Namespace
- GstBase
- Assembly
- GstBase-1.0.dll
public class BaseParse : Element, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
BaseParse
- Implements
- Inherited Members
Constructors
BaseParse(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 BaseParse(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
BaseParse(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected BaseParse(CreationData data)
Parameters
dataCreationData
BaseParse(BaseParseHandle)
protected BaseParse(BaseParseHandle handle)
Parameters
handleBaseParseHandle
Fields
DisablePassthroughPropertyDefinition
public static readonly Property<bool, BaseParse> DisablePassthroughPropertyDefinition
Field Value
Properties
DisablePassthrough
public bool DisablePassthrough { get; set; }
Property Value
Methods
AddIndexEntry(ulong, ClockTime, bool, bool)
public bool AddIndexEntry(ulong offset, ClockTime ts, bool key, bool force)
Parameters
Returns
ConvertDefault(Format, long, Format, out long)
public bool ConvertDefault(Format srcFormat, long srcValue, Format destFormat, out long destValue)
Parameters
Returns
Drain()
[Version("1.12")]
public void Drain()
FinishFrame(BaseParseFrame, int)
public FlowReturn FinishFrame(BaseParseFrame frame, int size)
Parameters
frameBaseParseFramesizeint
Returns
GetGType()
public static Type GetGType()
Returns
MergeTags(TagList?, TagMergeMode)
[Version("1.6")]
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tagsTagListmodeTagMergeMode
NewFromPointer(nint, bool)
Creates a new managed BaseParse instance for a given pointer.
public static BaseParse NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new BaseParse and sets the properties specified by the construct arguments.
public static BaseParse NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PushFrame(BaseParseFrame)
public FlowReturn PushFrame(BaseParseFrame frame)
Parameters
frameBaseParseFrame
Returns
SetAverageBitrate(uint)
public void SetAverageBitrate(uint bitrate)
Parameters
bitrateuint
SetDuration(Format, long, int)
public void SetDuration(Format fmt, long duration, int interval)
Parameters
SetFrameRate(uint, uint, uint, uint)
public void SetFrameRate(uint fpsNum, uint fpsDen, uint leadIn, uint leadOut)
Parameters
SetHasTimingInfo(bool)
public void SetHasTimingInfo(bool hasTiming)
Parameters
hasTimingbool
SetInferTs(bool)
public void SetInferTs(bool inferTs)
Parameters
inferTsbool
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime minLatency, ClockTime maxLatency)
Parameters
SetMinFrameSize(uint)
public void SetMinFrameSize(uint minSize)
Parameters
minSizeuint
SetPassthrough(bool)
public void SetPassthrough(bool passthrough)
Parameters
passthroughbool
SetPtsInterpolation(bool)
public void SetPtsInterpolation(bool ptsInterpolate)
Parameters
ptsInterpolatebool
SetSyncable(bool)
public void SetSyncable(bool syncable)
Parameters
syncablebool
SetTsAtOffset(nuint)
[Version("1.2")]
public void SetTsAtOffset(nuint offset)
Parameters
offsetnuint