Class VideoDecoder
- Namespace
- GstVideo
- Assembly
- GstVideo-1.0.dll
public class VideoDecoder : Element, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
VideoDecoder
- Implements
-
- Inherited Members
-
Constructors
VideoDecoder(params ConstructArgument[])
public VideoDecoder(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
VideoDecoder(VideoDecoderHandle)
public VideoDecoder(VideoDecoderHandle handle)
Parameters
handle
VideoDecoderHandle
Fields
AutomaticRequestSyncPointFlagsPropertyDefinition
public static readonly Property<VideoDecoderRequestSyncPointFlags, VideoDecoder> AutomaticRequestSyncPointFlagsPropertyDefinition
Field Value
- Property<VideoDecoderRequestSyncPointFlags, VideoDecoder>
AutomaticRequestSyncPointsPropertyDefinition
public static readonly Property<bool, VideoDecoder> AutomaticRequestSyncPointsPropertyDefinition
Field Value
- Property<bool, VideoDecoder>
DiscardCorruptedFramesPropertyDefinition
public static readonly Property<bool, VideoDecoder> DiscardCorruptedFramesPropertyDefinition
Field Value
- Property<bool, VideoDecoder>
MaxErrorsPropertyDefinition
public static readonly Property<int, VideoDecoder> MaxErrorsPropertyDefinition
Field Value
- Property<int, VideoDecoder>
MinForceKeyUnitIntervalPropertyDefinition
public static readonly Property<ulong, VideoDecoder> MinForceKeyUnitIntervalPropertyDefinition
Field Value
- Property<ulong, VideoDecoder>
QosPropertyDefinition
public static readonly Property<bool, VideoDecoder> QosPropertyDefinition
Field Value
- Property<bool, VideoDecoder>
Properties
AutomaticRequestSyncPointFlags
public VideoDecoderRequestSyncPointFlags AutomaticRequestSyncPointFlags { get; set; }
Property Value
- VideoDecoderRequestSyncPointFlags
AutomaticRequestSyncPoints
public bool AutomaticRequestSyncPoints { get; set; }
Property Value
- bool
DiscardCorruptedFrames
public bool DiscardCorruptedFrames { get; set; }
Property Value
- bool
MaxErrors
public int MaxErrors { get; set; }
Property Value
- int
MinForceKeyUnitInterval
public ulong MinForceKeyUnitInterval { get; set; }
Property Value
- ulong
Qos
public bool Qos { get; set; }
Property Value
- bool
Methods
AddToFrame(int)
public void AddToFrame(int nBytes)
Parameters
nBytes
int
AllocateOutputBuffer()
public Buffer? AllocateOutputBuffer()
Returns
- Buffer
AllocateOutputFrame(VideoCodecFrame)
public FlowReturn AllocateOutputFrame(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
AllocateOutputFrameWithParams(VideoCodecFrame, BufferPoolAcquireParams)
[Version("1.12")]
public FlowReturn AllocateOutputFrameWithParams(VideoCodecFrame frame, BufferPoolAcquireParams @params)
Parameters
frame
VideoCodecFrame
params
BufferPoolAcquireParams
Returns
- FlowReturn
DropFrame(VideoCodecFrame)
public FlowReturn DropFrame(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
DropSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn DropSubframe(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
FinishFrame(VideoCodecFrame)
public FlowReturn FinishFrame(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
FinishSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn FinishSubframe(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
GetBufferPool()
public BufferPool? GetBufferPool()
Returns
- BufferPool
GetEstimateRate()
public int GetEstimateRate()
Returns
- int
GetFrame(int)
public VideoCodecFrame? GetFrame(int frameNumber)
Parameters
frameNumber
int
Returns
- VideoCodecFrame
GetFrames()
Returns
- List
GetGType()
public static Type GetGType()
Returns
- Type
[Version("1.20")]
public uint GetInputSubframeIndex(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- uint
GetLatency(out ClockTime, out ClockTime)
public void GetLatency(out ClockTime minLatency, out ClockTime maxLatency)
Parameters
minLatency
ClockTime
maxLatency
ClockTime
GetMaxDecodeTime(VideoCodecFrame)
public ClockTimeDiff GetMaxDecodeTime(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- ClockTimeDiff
GetMaxErrors()
public int GetMaxErrors()
Returns
- int
[Version("1.4")]
public bool GetNeedsFormat()
Returns
- bool
GetNeedsSyncPoint()
[Version("1.20")]
public bool GetNeedsSyncPoint()
Returns
- bool
GetOldestFrame()
public VideoCodecFrame? GetOldestFrame()
Returns
- VideoCodecFrame
GetOutputState()
public VideoCodecState? GetOutputState()
Returns
- VideoCodecState
GetPacketized()
public bool GetPacketized()
Returns
- bool
GetPendingFrameSize()
[Version("1.4")]
public nuint GetPendingFrameSize()
Returns
- nuint
GetProcessedSubframeIndex(VideoCodecFrame)
[Version("1.20")]
public uint GetProcessedSubframeIndex(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- uint
GetQosProportion()
[Version("1.0.3")]
public double GetQosProportion()
Returns
- double
GetSubframeMode()
[Version("1.20")]
public bool GetSubframeMode()
Returns
- bool
HaveFrame()
public FlowReturn HaveFrame()
Returns
- FlowReturn
HaveLastSubframe(VideoCodecFrame)
[Version("1.20")]
public FlowReturn HaveLastSubframe(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
Returns
- FlowReturn
public void MergeTags(TagList? tags, TagMergeMode mode)
Parameters
tags
TagList
mode
TagMergeMode
Negotiate()
Returns
- bool
ProxyGetcaps(Caps?, Caps?)
[Version("1.6")]
public Caps ProxyGetcaps(Caps? caps, Caps? filter)
Parameters
caps
Caps
filter
Caps
Returns
- Caps
ReleaseFrame(VideoCodecFrame)
[Version("1.2.2")]
public void ReleaseFrame(VideoCodecFrame frame)
Parameters
frame
VideoCodecFrame
RequestSyncPoint(VideoCodecFrame, VideoDecoderRequestSyncPointFlags)
[Version("1.20")]
public void RequestSyncPoint(VideoCodecFrame frame, VideoDecoderRequestSyncPointFlags flags)
Parameters
frame
VideoCodecFrame
flags
VideoDecoderRequestSyncPointFlags
SetEstimateRate(bool)
public void SetEstimateRate(bool enabled)
Parameters
enabled
bool
[Version("1.16.")]
public VideoCodecState? SetInterlacedOutputState(VideoFormat fmt, VideoInterlaceMode interlaceMode, uint width, uint height, VideoCodecState? reference)
Parameters
fmt
VideoFormat
interlaceMode
VideoInterlaceMode
width
uint
height
uint
reference
VideoCodecState
Returns
- VideoCodecState
SetLatency(ClockTime, ClockTime)
public void SetLatency(ClockTime minLatency, ClockTime maxLatency)
Parameters
minLatency
ClockTime
maxLatency
ClockTime
SetMaxErrors(int)
public void SetMaxErrors(int num)
Parameters
num
int
[Version("1.4")]
public void SetNeedsFormat(bool enabled)
Parameters
enabled
bool
SetNeedsSyncPoint(bool)
[Version("1.20")]
public void SetNeedsSyncPoint(bool enabled)
Parameters
enabled
bool
public VideoCodecState? SetOutputState(VideoFormat fmt, uint width, uint height, VideoCodecState? reference)
Parameters
fmt
VideoFormat
width
uint
height
uint
reference
VideoCodecState
Returns
- VideoCodecState
SetPacketized(bool)
public void SetPacketized(bool packetized)
Parameters
packetized
bool
SetSubframeMode(bool)
[Version("1.20")]
public void SetSubframeMode(bool subframeMode)
Parameters
subframeMode
bool
SetUseDefaultPadAcceptcaps(bool)
[Version("1.6")]
public void SetUseDefaultPadAcceptcaps(bool use)
Parameters
use
bool