Class VideoDecoder
- Namespace
- GstVideo
- Assembly
- GstVideo-1.0.dll
public class VideoDecoder : Element, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
VideoDecoder
- Implements
- Inherited Members
Constructors
VideoDecoder(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 VideoDecoder(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
VideoDecoder(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected VideoDecoder(CreationData data)
Parameters
dataCreationData
VideoDecoder(VideoDecoderHandle)
protected VideoDecoder(VideoDecoderHandle handle)
Parameters
handleVideoDecoderHandle
Fields
AutomaticRequestSyncPointFlagsPropertyDefinition
public static readonly Property<VideoDecoderRequestSyncPointFlags, VideoDecoder> AutomaticRequestSyncPointFlagsPropertyDefinition
Field Value
AutomaticRequestSyncPointsPropertyDefinition
public static readonly Property<bool, VideoDecoder> AutomaticRequestSyncPointsPropertyDefinition
Field Value
DiscardCorruptedFramesPropertyDefinition
public static readonly Property<bool, VideoDecoder> DiscardCorruptedFramesPropertyDefinition
Field Value
MaxErrorsPropertyDefinition
public static readonly Property<int, VideoDecoder> MaxErrorsPropertyDefinition
Field Value
MinForceKeyUnitIntervalPropertyDefinition
public static readonly Property<ulong, VideoDecoder> MinForceKeyUnitIntervalPropertyDefinition
Field Value
QosPropertyDefinition
public static readonly Property<bool, VideoDecoder> QosPropertyDefinition
Field Value
Properties
AutomaticRequestSyncPointFlags
public VideoDecoderRequestSyncPointFlags AutomaticRequestSyncPointFlags { get; set; }
Property Value
AutomaticRequestSyncPoints
public bool AutomaticRequestSyncPoints { get; set; }
Property Value
DiscardCorruptedFrames
public bool DiscardCorruptedFrames { get; set; }
Property Value
MaxErrors
public int MaxErrors { get; set; }
Property Value
MinForceKeyUnitInterval
public ulong MinForceKeyUnitInterval { get; set; }
Property Value
Qos
public bool Qos { get; set; }
Property Value
Methods
AddToFrame(int)
public void AddToFrame(int nBytes)
Parameters
nBytesint
AllocateOutputBuffer()
public Buffer? AllocateOutputBuffer()
Returns
AllocateOutputFrame(VideoCodecFrame)
public FlowReturn AllocateOutputFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
AllocateOutputFrameWithParams(VideoCodecFrame, BufferPoolAcquireParams)
[Version("1.12")]
public FlowReturn AllocateOutputFrameWithParams(VideoCodecFrame frame, BufferPoolAcquireParams @params)
Parameters
frameVideoCodecFrameparamsBufferPoolAcquireParams
Returns
DropFrame(VideoCodecFrame)
public FlowReturn DropFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
DropSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn DropSubframe(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
FinishFrame(VideoCodecFrame)
public FlowReturn FinishFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
FinishSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn FinishSubframe(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetBufferPool()
public BufferPool? GetBufferPool()
Returns
GetEstimateRate()
public int GetEstimateRate()
Returns
GetFrame(int)
public VideoCodecFrame? GetFrame(int frameNumber)
Parameters
frameNumberint
Returns
GetFrames()
public List GetFrames()
Returns
GetGType()
public static Type GetGType()
Returns
GetInputSubframeIndex(VideoCodecFrame)
[Version("1.20")]
public uint GetInputSubframeIndex(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime minLatency, out ClockTime maxLatency)
Parameters
GetMaxDecodeTime(VideoCodecFrame)
public ClockTimeDiff GetMaxDecodeTime(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetMaxErrors()
public int GetMaxErrors()
Returns
GetNeedsFormat()
[Version("1.4")]
public bool GetNeedsFormat()
Returns
GetNeedsSyncPoint()
[Version("1.20")]
public bool GetNeedsSyncPoint()
Returns
GetOldestFrame()
public VideoCodecFrame? GetOldestFrame()
Returns
GetOutputState()
public VideoCodecState? GetOutputState()
Returns
GetPacketized()
public bool GetPacketized()
Returns
GetPendingFrameSize()
[Version("1.4")]
public nuint GetPendingFrameSize()
Returns
GetProcessedSubframeIndex(VideoCodecFrame)
[Version("1.20")]
public uint GetProcessedSubframeIndex(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
GetQosProportion()
[Version("1.0.3")]
public double GetQosProportion()
Returns
GetSubframeMode()
[Version("1.20")]
public bool GetSubframeMode()
Returns
HaveFrame()
public FlowReturn HaveFrame()
Returns
HaveLastSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn HaveLastSubframe(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
Returns
MergeTags(TagList?, TagMergeMode)
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tagsTagListmodeTagMergeMode
Negotiate()
public bool Negotiate()
Returns
NewFromPointer(nint, bool)
Creates a new managed VideoDecoder instance for a given pointer.
public static VideoDecoder NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new VideoDecoder and sets the properties specified by the construct arguments.
public static VideoDecoder NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ProxyGetcaps(Caps?, Caps?)
[Version("1.6")]
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
Returns
ReleaseFrame(VideoCodecFrame)
[Version("1.2.2")]
public void ReleaseFrame(VideoCodecFrame frame)
Parameters
frameVideoCodecFrame
RequestSyncPoint(VideoCodecFrame, VideoDecoderRequestSyncPointFlags)
[Version("1.20")]
public void RequestSyncPoint(VideoCodecFrame frame, VideoDecoderRequestSyncPointFlags flags)
Parameters
frameVideoCodecFrameflagsVideoDecoderRequestSyncPointFlags
SetEstimateRate(bool)
public void SetEstimateRate(bool enabled)
Parameters
enabledbool
SetInterlacedOutputState(VideoFormat, VideoInterlaceMode, uint, uint, VideoCodecState?)
[Version("1.16.")]
public VideoCodecState? SetInterlacedOutputState(VideoFormat fmt, VideoInterlaceMode interlaceMode, uint width, uint height, VideoCodecState? reference)
Parameters
fmtVideoFormatinterlaceModeVideoInterlaceModewidthuintheightuintreferenceVideoCodecState
Returns
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime minLatency, ClockTime maxLatency)
Parameters
SetMaxErrors(int)
public void SetMaxErrors(int num)
Parameters
numint
SetNeedsFormat(bool)
[Version("1.4")]
public void SetNeedsFormat(bool enabled)
Parameters
enabledbool
SetNeedsSyncPoint(bool)
[Version("1.20")]
public void SetNeedsSyncPoint(bool enabled)
Parameters
enabledbool
SetOutputState(VideoFormat, uint, uint, VideoCodecState?)
public VideoCodecState? SetOutputState(VideoFormat fmt, uint width, uint height, VideoCodecState? reference)
Parameters
fmtVideoFormatwidthuintheightuintreferenceVideoCodecState
Returns
SetPacketized(bool)
public void SetPacketized(bool packetized)
Parameters
packetizedbool
SetSubframeMode(bool)
[Version("1.20")]
public void SetSubframeMode(bool subframeMode)
Parameters
subframeModebool
SetUseDefaultPadAcceptcaps(bool)
[Version("1.6")]
public void SetUseDefaultPadAcceptcaps(bool use)
Parameters
usebool