C# Class SIPSorcery.Net.Mjpeg

Show file Open project: sipsorcery/sipsorcery

Public Methods

Method Description
ProcessMjpegFrame ( List framePackets ) : byte[]

Writes the packets to a memory stream and creates the default header and quantization tables if necessary. Assigns Image from the result

Private Methods

Method Description
CreateDataRestartIntervalMarker ( ushort dri ) : byte[]
CreateHuffmanTableMarker ( byte codeLens, byte symbols, int tableNo, int tableClass ) : byte[]
CreateJFIFHeader ( uint type, uint width, uint height, ArraySegment tables, byte precision, ushort dri ) : byte[]
CreateQuantizationTables ( uint type, uint Q, byte precision ) : byte[]

Creates a Luma and Chroma Table in ZigZag order using the default quantizer

CreateQuantizationTablesMarker ( ArraySegment tables, byte precision ) : byte[]

Creates a Jpeg QuantizationTableMarker for each table given in the tables

Method Details

ProcessMjpegFrame() public static method

Writes the packets to a memory stream and creates the default header and quantization tables if necessary. Assigns Image from the result
public static ProcessMjpegFrame ( List framePackets ) : byte[]
framePackets List
return byte[]