C# Class Yodiwo.Media.Video.Sink.MjpegServer.MjpegWriter

Provides a stream writer that can be used to write images as MJPEG or (Motion JPEG) to any stream.
Inheritance: IDisposable
Mostrar archivo Open project: yodiwo/plegma Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
MjpegWriter ( Stream stream ) : System
MjpegWriter ( Stream stream, string boundary ) : System
ReadRequest ( int length ) : string
Write ( Image image ) : void
Write ( MemoryStream imageStream ) : void
WriteHeader ( ) : void

Private Methods

Method Description
BytesOf ( Image image ) : MemoryStream
BytesOf ( string text ) : byte[]
Write ( byte data ) : void
Write ( string text ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MjpegWriter() public method

public MjpegWriter ( Stream stream ) : System
stream Stream
return System

MjpegWriter() public method

public MjpegWriter ( Stream stream, string boundary ) : System
stream Stream
boundary string
return System

ReadRequest() public method

public ReadRequest ( int length ) : string
length int
return string

Write() public method

public Write ( Image image ) : void
image Image
return void

Write() public method

public Write ( MemoryStream imageStream ) : void
imageStream System.IO.MemoryStream
return void

WriteHeader() public method

public WriteHeader ( ) : void
return void