PngCs  1.1.4
A C# library for read/write PNG images
Static Public Member Functions | Static Public Attributes | List of all members
Hjg.Pngcs.PngHelperInternal Class Reference

Some utility static methods for internal use. More...

Static Public Member Functions

static CRC32 GetCRC ()
 thread-singleton crc engine
 
static int DoubleToInt100000 (double d)
 
static double IntToDouble100000 (int i)
 
static void WriteInt2 (Stream os, int n)
 
static int ReadInt2 (Stream mask0)
 -1 si eof
 
static int ReadInt4 (Stream mask0)
 -1 si eof
 
static int ReadInt1fromByte (byte[] b, int offset)
 
static int ReadInt2fromBytes (byte[] b, int offset)
 
static int ReadInt4fromBytes (byte[] b, int offset)
 
static void WriteInt2tobytes (int n, byte[] b, int offset)
 
static void WriteInt4tobytes (int n, byte[] b, int offset)
 
static void WriteInt4 (Stream os, int n)
 
static void ReadBytes (Stream mask0, byte[] b, int offset, int len)
 guaranteed to read exactly len bytes. throws error if it cant
 
static void SkipBytes (Stream ist, int len)
 
static void WriteBytes (Stream os, byte[] b)
 
static void WriteBytes (Stream os, byte[] b, int offset, int n)
 
static int ReadByte (Stream mask0)
 
static void WriteByte (Stream os, byte b)
 
static int UnfilterRowPaeth (int r, int a, int b, int c)
 
static int FilterPaethPredictor (int a, int b, int c)
 
static void Logdebug (String msg)
 
static void InitCrcForTests (PngReader pngr)
 
static long GetCrctestVal (PngReader pngr)
 

Static Public Attributes

static readonly byte[] PNG_ID_SIGNATURE = { 256 - 119, 80, 78, 71, 13, 10, 26, 10 }
 
static Encoding charsetLatin1 = System.Text.Encoding.GetEncoding("ISO-8859-1")
 
static Encoding charsetUtf8 = System.Text.Encoding.GetEncoding("UTF-8")
 
static bool DEBUG = false
 

Detailed Description

Some utility static methods for internal use.

Member Function Documentation

static CRC32 Hjg.Pngcs.PngHelperInternal.GetCRC ( )
static

thread-singleton crc engine

static int Hjg.Pngcs.PngHelperInternal.DoubleToInt100000 ( double  d)
static
static double Hjg.Pngcs.PngHelperInternal.IntToDouble100000 ( int  i)
static
static void Hjg.Pngcs.PngHelperInternal.WriteInt2 ( Stream  os,
int  n 
)
static
static int Hjg.Pngcs.PngHelperInternal.ReadInt2 ( Stream  mask0)
static

-1 si eof

static int Hjg.Pngcs.PngHelperInternal.ReadInt4 ( Stream  mask0)
static

-1 si eof

static int Hjg.Pngcs.PngHelperInternal.ReadInt1fromByte ( byte[]  b,
int  offset 
)
static
static int Hjg.Pngcs.PngHelperInternal.ReadInt2fromBytes ( byte[]  b,
int  offset 
)
static
static int Hjg.Pngcs.PngHelperInternal.ReadInt4fromBytes ( byte[]  b,
int  offset 
)
static
static void Hjg.Pngcs.PngHelperInternal.WriteInt2tobytes ( int  n,
byte[]  b,
int  offset 
)
static
static void Hjg.Pngcs.PngHelperInternal.WriteInt4tobytes ( int  n,
byte[]  b,
int  offset 
)
static
static void Hjg.Pngcs.PngHelperInternal.WriteInt4 ( Stream  os,
int  n 
)
static
static void Hjg.Pngcs.PngHelperInternal.ReadBytes ( Stream  mask0,
byte[]  b,
int  offset,
int  len 
)
static

guaranteed to read exactly len bytes. throws error if it cant

static void Hjg.Pngcs.PngHelperInternal.SkipBytes ( Stream  ist,
int  len 
)
static
static void Hjg.Pngcs.PngHelperInternal.WriteBytes ( Stream  os,
byte[]  b 
)
static
static void Hjg.Pngcs.PngHelperInternal.WriteBytes ( Stream  os,
byte[]  b,
int  offset,
int  n 
)
static
static int Hjg.Pngcs.PngHelperInternal.ReadByte ( Stream  mask0)
static
static void Hjg.Pngcs.PngHelperInternal.WriteByte ( Stream  os,
byte  b 
)
static
static int Hjg.Pngcs.PngHelperInternal.UnfilterRowPaeth ( int  r,
int  a,
int  b,
int  c 
)
static
static int Hjg.Pngcs.PngHelperInternal.FilterPaethPredictor ( int  a,
int  b,
int  c 
)
static
static void Hjg.Pngcs.PngHelperInternal.Logdebug ( String  msg)
static
static void Hjg.Pngcs.PngHelperInternal.InitCrcForTests ( PngReader  pngr)
static
static long Hjg.Pngcs.PngHelperInternal.GetCrctestVal ( PngReader  pngr)
static

Member Data Documentation

readonly byte [] Hjg.Pngcs.PngHelperInternal.PNG_ID_SIGNATURE = { 256 - 119, 80, 78, 71, 13, 10, 26, 10 }
static
Encoding Hjg.Pngcs.PngHelperInternal.charsetLatin1 = System.Text.Encoding.GetEncoding("ISO-8859-1")
static
Encoding Hjg.Pngcs.PngHelperInternal.charsetUtf8 = System.Text.Encoding.GetEncoding("UTF-8")
static
bool Hjg.Pngcs.PngHelperInternal.DEBUG = false
static