C# Class FluxJpeg.Core.JpegQuantizationTable

Mostra file Open project: prepare/HTML-Renderer

Public Properties

Property Type Description
K1Div2Luminance JpegQuantizationTable
K1Luminance JpegQuantizationTable
K2Chrominance JpegQuantizationTable
K2Div2Chrominance JpegQuantizationTable

Public Methods

Method Description
JpegQuantizationTable ( int table ) : System

Construct a new JPEG quantization table. A copy is created of the table argument.

getScaledInstance ( float scaleFactor, bool forceBaseline ) : JpegQuantizationTable

Retrieve a copy of this JPEG quantization table with every value scaled by the given scale factor, and clamped from 1 to 255

Private Methods

Method Description
JpegQuantizationTable ( int table, bool copy ) : System

Private constructor that avoids unnecessary copying and argument checking.

checkTable ( int table ) : int[]

Method Details

JpegQuantizationTable() public method

Construct a new JPEG quantization table. A copy is created of the table argument.
public JpegQuantizationTable ( int table ) : System
table int The 64-element value table, stored in natural order
return System

getScaledInstance() public method

Retrieve a copy of this JPEG quantization table with every value scaled by the given scale factor, and clamped from 1 to 255
public getScaledInstance ( float scaleFactor, bool forceBaseline ) : JpegQuantizationTable
scaleFactor float the factor by which to scale this table
forceBaseline bool clamp scaled values to a maximum of 255 if baseline or from 1 to 32767 otherwise.
return JpegQuantizationTable

Property Details

K1Div2Luminance public_oe static_oe property

The standard JPEG luminance quantization table, scaled by one-half. Values are stored in natural order.
public static JpegQuantizationTable,FluxJpeg.Core K1Div2Luminance
return JpegQuantizationTable

K1Luminance public_oe static_oe property

The standard JPEG luminance quantization table. Values are stored in natural order.
public static JpegQuantizationTable,FluxJpeg.Core K1Luminance
return JpegQuantizationTable

K2Chrominance public_oe static_oe property

The standard JPEG chrominance quantization table. Values are stored in natural order.
public static JpegQuantizationTable,FluxJpeg.Core K2Chrominance
return JpegQuantizationTable

K2Div2Chrominance public_oe static_oe property

The standard JPEG chrominance quantization table, scaled by one-half. Values are stored in natural order.
public static JpegQuantizationTable,FluxJpeg.Core K2Div2Chrominance
return JpegQuantizationTable