Class BasicVideoDepacketizer
A basic video depacketizer.
Inheritance
System.Object
MediaPipe<IVideoOutput, IVideoOutputCollection, IVideoInput, IVideoInputCollection, VideoPipe, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
BasicVideoDepacketizer
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class BasicVideoDepacketizer : VideoDepacketizer<VideoFragment>, IVideoInput, IMediaInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IInput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoOutput, IMediaOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IOutput<IVideoOutput, IVideoInput, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>, IVideoElement, IMediaElement, IElement
Constructors
BasicVideoDepacketizer(IVideoOutput)
Initializes a new instance of the BasicVideoDepacketizer class.
Declaration
public BasicVideoDepacketizer(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
BasicVideoDepacketizer(VideoFormat)
Initializes a new instance of the BasicVideoDepacketizer class.
Declaration
public BasicVideoDepacketizer(VideoFormat format)
Parameters
Type | Name | Description |
---|---|---|
VideoFormat | format | The format. |
Properties
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaPipe<FM.LiveSwitch.IVideoOutput, FM.LiveSwitch.IVideoOutputCollection, FM.LiveSwitch.IVideoInput, FM.LiveSwitch.IVideoInputCollection, FM.LiveSwitch.VideoPipe, FM.LiveSwitch.VideoFrame, FM.LiveSwitch.VideoBuffer, FM.LiveSwitch.VideoBufferCollection, FM.LiveSwitch.VideoFormat>.Label
Methods
DoCreateFragment(RtpPacketHeader, DataBuffer)
Creates a fragment from a data buffer.
Declaration
protected override VideoFragment DoCreateFragment(RtpPacketHeader header, DataBuffer dataBuffer)
Parameters
Type | Name | Description |
---|---|---|
RtpPacketHeader | header | The rtp header for this packet. |
DataBuffer | dataBuffer | The data buffer. |
Returns
Type | Description |
---|---|
VideoFragment |
Overrides
FM.LiveSwitch.VideoDepacketizer<FM.LiveSwitch.VideoFragment>.DoCreateFragment(FM.LiveSwitch.RtpPacketHeader, FM.LiveSwitch.DataBuffer)
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.VideoDepacketizer<FM.LiveSwitch.VideoFragment>.DoDestroy()
IsKeyFrame(DataBuffer)
Checks if the databuffer contains a keyframe.
Declaration
protected override bool IsKeyFrame(DataBuffer inputBuffer)
Parameters
Type | Name | Description |
---|---|---|
DataBuffer | inputBuffer | VideoBuffer containing video data. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
FM.LiveSwitch.VideoDepacketizer<FM.LiveSwitch.VideoFragment>.IsKeyFrame(FM.LiveSwitch.DataBuffer)