Show / Hide Table of Contents

Class RtpVideoFramer

Inheritance
System.Object
RtpVideoFramer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class RtpVideoFramer

Constructors

| Improve this Doc View Source

RtpVideoFramer(VideoCodecsEnum, Int32)

Declaration
public RtpVideoFramer(VideoCodecsEnum codec, int maxFrameSize)
Parameters
Type Name Description
SIPSorceryMedia.Abstractions.VideoCodecsEnum codec
System.Int32 maxFrameSize

Methods

| Improve this Doc View Source

CreateLowQualityRtpJpegHeader(UInt32, Int32, Int32, Int32)

Utility function to create RtpJpegHeader either for initial packet or template for further packets

0                   1                   2                   3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type-specific |              Fragment Offset                  |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|      Type     |       Q       |     Width     |     Height    |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Declaration
public static byte[] CreateLowQualityRtpJpegHeader(uint fragmentOffset, int quality, int width, int height)
Parameters
Type Name Description
System.UInt32 fragmentOffset
System.Int32 quality
System.Int32 width
System.Int32 height
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

GotRtpPacket(RTPPacket)

Declaration
public byte[] GotRtpPacket(RTPPacket rtpPacket)
Parameters
Type Name Description
RTPPacket rtpPacket
Returns
Type Description
System.Byte[]

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX