C# Class Emgu.CV.Util.ZlibCompression

Use zlib included in OpenCV to perform in-memory binary compression and decompression
Exibir arquivo Open project: fajoy/RTSPExample

Public Methods

Method Description
Compress ( Byte original, int compressionLevel ) : Byte[]

Compress the data using the specific compression level

Uncompress ( Byte compressedData, int estimatedUncompressedSize ) : Byte[]

Uncompress the data

Method Details

Compress() public static method

Compress the data using the specific compression level
public static Compress ( Byte original, int compressionLevel ) : Byte[]
original Byte The data to be compressed
compressionLevel int The compression level, 0-9 where 0 mean no compression at all
return Byte[]

Uncompress() public static method

Uncompress the data
public static Uncompress ( Byte compressedData, int estimatedUncompressedSize ) : Byte[]
compressedData Byte The compressed data
estimatedUncompressedSize int The estimated size fo the uncompress data. Must be large enough to hold the decompressed data.
return Byte[]