Class Depacketizer
An H.264 depacketizer.
Inheritance
System.Object
MediaPipe<IVideoOutput, IVideoOutputCollection, IVideoInput, IVideoInputCollection, VideoPipe, VideoFrame, VideoBuffer, VideoBufferCollection, VideoFormat>
Depacketizer
Implements
Inherited Members
Namespace: FM.LiveSwitch.H264
Assembly: FM.LiveSwitch.dll
Syntax
public class Depacketizer : VideoDepacketizer<Fragment>, 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
Depacketizer()
Initializes a new instance of the Depacketizer class.
Declaration
public Depacketizer()
Depacketizer(ProfileLevelId, Int32)
Initializes a new instance of the Depacketizer class.
Declaration
public Depacketizer(ProfileLevelId profileLevelId, int packetizationMode)
Parameters
Type | Name | Description |
---|---|---|
ProfileLevelId | profileLevelId | The profile level ID. |
System.Int32 | packetizationMode | The packetization mode. |
Depacketizer(IVideoOutput)
Initializes a new instance of the Depacketizer class.
Declaration
public Depacketizer(IVideoOutput input)
Parameters
Type | Name | Description |
---|---|---|
IVideoOutput | input | The input. |
Depacketizer(Int32)
Initializes a new instance of the Depacketizer class.
Declaration
public Depacketizer(int packetizationMode)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | packetizationMode | The packetization mode. |
Depacketizer(String, String, Int32)
Initializes a new instance of the Depacketizer class.
Declaration
public Depacketizer(string profile, string level, int packetizationMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | profile | The profile. |
System.String | level | The level. |
System.Int32 | packetizationMode | The packetization mode. |
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
PacketizationMode
Gets the packetization mode.
Declaration
public int PacketizationMode { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
DoCreateFragment(RtpPacketHeader, DataBuffer)
Creates a fragment from a data buffer.
Declaration
protected override Fragment 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 |
---|---|
Fragment |
Overrides
FM.LiveSwitch.VideoDepacketizer<FM.LiveSwitch.H264.Fragment>.DoCreateFragment(FM.LiveSwitch.RtpPacketHeader, FM.LiveSwitch.DataBuffer)
DoDestroy()
Destroys this instance.
Declaration
protected override void DoDestroy()
Overrides
FM.LiveSwitch.VideoDepacketizer<FM.LiveSwitch.H264.Fragment>.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.H264.Fragment>.IsKeyFrame(FM.LiveSwitch.DataBuffer)
RaiseFrame(VideoFrame)
Raises a frame.
Declaration
protected override void RaiseFrame(VideoFrame frame)
Parameters
Type | Name | Description |
---|---|---|
VideoFrame | frame | The frame. |