Class JpegConstants
Defines some JPEG constants.
Inheritance
Inherited Members
Namespace: BitMiracle.LibJpeg.Classic
Assembly: BitMiracle.LibJpeg.NET.dll
Syntax
public static class JpegConstants
Fields
| Improve this Doc View SourceBITS_IN_JSAMPLE
The size of sample.
Declaration
public const int BITS_IN_JSAMPLE = 8
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
Are either:
8 - for 8-bit sample values (the usual setting)
9 - for 9-bit sample values
10 - for 10-bit sample values
11 - for 11-bit sample values
12 - for 12-bit sample values (not supported by this version)
Only 8, 9, 10, 11, and 12 bits sample data precision are supported for
full-feature DCT processing.Further depths up to 16-bit may be added
later for the lossless modes of operation.
Run-time selection and conversion of data precision will be added later
and are currently not supported, sorry.
Exception: The transcoding part(jpegtran) supports all settings in a
single instance, since it operates on the level of DCT coefficients and
not sample values.The DCT coefficients are of the same type(16 bits)
in all cases(see below).
C_MAX_BLOCKS_IN_MCU
Compressor's limit on blocks per MCU.
Declaration
public const int C_MAX_BLOCKS_IN_MCU = 10
Field Value
Type | Description |
---|---|
System.Int32 |
CENTERJSAMPLE
The medium sample value.
Declaration
public const int CENTERJSAMPLE = 128
Field Value
Type | Description |
---|---|
System.Int32 |
D_MAX_BLOCKS_IN_MCU
Decompressor's limit on blocks per MCU.
Declaration
public const int D_MAX_BLOCKS_IN_MCU = 10
Field Value
Type | Description |
---|---|
System.Int32 |
DCTSIZE
The basic DCT block is 8x8 coefficients
Declaration
public const int DCTSIZE = 8
Field Value
Type | Description |
---|---|
System.Int32 |
DCTSIZE2
DCTSIZE squared; the number of elements in a block.
Declaration
public const int DCTSIZE2 = 64
Field Value
Type | Description |
---|---|
System.Int32 |
HUFF_LOOKAHEAD
The number of bits of lookahead.
Declaration
public const int HUFF_LOOKAHEAD = 8
Field Value
Type | Description |
---|---|
System.Int32 |
JDCT_DEFAULT
DCT method used by default.
Declaration
public const J_DCT_METHOD JDCT_DEFAULT = J_DCT_METHOD.JDCT_ISLOW
Field Value
Type | Description |
---|---|
J_DCT_METHOD |
JDCT_FASTEST
Fastest DCT method.
Declaration
public const J_DCT_METHOD JDCT_FASTEST = J_DCT_METHOD.JDCT_IFAST
Field Value
Type | Description |
---|---|
J_DCT_METHOD |
JPEG_MAX_DIMENSION
A tad under 64K to prevent overflows.
Declaration
public const int JPEG_MAX_DIMENSION = 65500
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_COMPONENTS
Maximum number of color channels allowed in JPEG image.
Declaration
public const int MAX_COMPONENTS = 10
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_COMPS_IN_SCAN
JPEG limit on the number of components in one scan.
Declaration
public const int MAX_COMPS_IN_SCAN = 4
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_SAMP_FACTOR
JPEG limit on sampling factors.
Declaration
public const int MAX_SAMP_FACTOR = 4
Field Value
Type | Description |
---|---|
System.Int32 |
MAXJSAMPLE
The maximum sample value.
Declaration
public const int MAXJSAMPLE = 255
Field Value
Type | Description |
---|---|
System.Int32 |
NUM_ARITH_TBLS
Arith-coding tables are numbered 0..15
Declaration
public const int NUM_ARITH_TBLS = 16
Field Value
Type | Description |
---|---|
System.Int32 |
NUM_HUFF_TBLS
Huffman tables are numbered 0..3
Declaration
public const int NUM_HUFF_TBLS = 4
Field Value
Type | Description |
---|---|
System.Int32 |
NUM_QUANT_TBLS
Quantization tables are numbered 0..3
Declaration
public const int NUM_QUANT_TBLS = 4
Field Value
Type | Description |
---|---|
System.Int32 |
RGB_BLUE
Offset of Blue in an RGB scanline element.
Declaration
public const int RGB_BLUE = 2
Field Value
Type | Description |
---|---|
System.Int32 |
RGB_GREEN
Offset of Green in an RGB scanline element.
Declaration
public const int RGB_GREEN = 1
Field Value
Type | Description |
---|---|
System.Int32 |
RGB_PIXELSIZE
Bytes per RGB scanline element.
Declaration
public const int RGB_PIXELSIZE = 3
Field Value
Type | Description |
---|---|
System.Int32 |
RGB_RED
Offset of Red in an RGB scanline element.
Declaration
public const int RGB_RED = 0
Field Value
Type | Description |
---|---|
System.Int32 |