C# Class FluxJpeg.Core.Decoder.JpegComponent

Exibir arquivo Open project: prepare/HTML-Renderer Class Usage Examples

Public Properties

Property Type Description
ACTable FluxJpeg.Core.HuffmanTable
DCTable FluxJpeg.Core.HuffmanTable
Decode DecodeFunction
factorH byte
previousDC float
spectralStart int
successiveLow int
width int

Private Properties

Property Type Description
EmitQuantize QuantizeDel
decode_ac_coefficients void
writeBlockScaled void

Public Methods

Method Description
DecodeACFirst ( JPEGBinaryReader stream, float zz ) : void
DecodeACRefine ( JPEGBinaryReader stream, float dest ) : void
DecodeBaseline ( JPEGBinaryReader stream, float dest ) : void
DecodeDCFirst ( JPEGBinaryReader stream, float dest ) : void
DecodeDCRefine ( JPEGBinaryReader stream, float dest ) : void
DecodeMCU ( JPEGBinaryReader jpegReader, int i, int j ) : void
JpegComponent ( JpegScan parentScan, byte id, byte factorHorizontal, byte factorVertical, byte quantizationID, byte colorMode ) : System
SetBlock ( int idx ) : void
decode_dc_coefficient ( JPEGBinaryReader JPEGStream ) : float

Generated from text on F-22, F.2.2.1 - Huffman decoding of DC coefficients on ISO DIS 10918-1. Requirements and Guidelines.

idctData ( ) : void

Run the Inverse DCT method on all of the block data

padMCU ( int index, int length ) : void

If a restart marker is found with too little of an MCU count (i.e. our Restart Interval is 63 and we have 61 we copy the last MCU until it's full)

quantizeData ( ) : void

Run the Quantization backward method on all of the block data.

resetInterval ( ) : void

Reset the interval by setting the previous DC value

scaleByFactors ( BlockUpsamplingMode mode ) : void

Stretches components as needed to normalize the size of all components. For example, in a 2x1 (4:2:2) sequence, the Cr and Cb channels will be scaled vertically by a factor of 2.

setACTable ( JpegHuffmanTable table ) : void
setDCTable ( JpegHuffmanTable table ) : void
writeBlock ( byte raster, byte data, int compIndex, int x, int y ) : void
writeDataScaled ( byte raster, int componentIndex, BlockUpsamplingMode mode ) : void

Private Methods

Method Description
EmitQuantize ( ) : QuantizeDel
decode_ac_coefficients ( JPEGBinaryReader JPEGStream, float zz ) : void

Generated from text on F-23, F.13 - Huffman decoded of AC coefficients on ISO DIS 10918-1. Requirements and Guidelines.

writeBlockScaled ( byte raster, byte blockdata, int compIndex, int x, int y, BlockUpsamplingMode mode ) : void

Method Details

DecodeACFirst() public method

public DecodeACFirst ( JPEGBinaryReader stream, float zz ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
zz float
return void

DecodeACRefine() public method

public DecodeACRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
return void

DecodeBaseline() public method

public DecodeBaseline ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
return void

DecodeDCFirst() public method

public DecodeDCFirst ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
return void

DecodeDCRefine() public method

public DecodeDCRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
return void

DecodeMCU() public method

public DecodeMCU ( JPEGBinaryReader jpegReader, int i, int j ) : void
jpegReader FluxJpeg.Core.IO.JPEGBinaryReader
i int
j int
return void

JpegComponent() public method

public JpegComponent ( JpegScan parentScan, byte id, byte factorHorizontal, byte factorVertical, byte quantizationID, byte colorMode ) : System
parentScan JpegScan
id byte
factorHorizontal byte
factorVertical byte
quantizationID byte
colorMode byte
return System

SetBlock() public method

public SetBlock ( int idx ) : void
idx int
return void

decode_dc_coefficient() public method

Generated from text on F-22, F.2.2.1 - Huffman decoding of DC coefficients on ISO DIS 10918-1. Requirements and Guidelines.
public decode_dc_coefficient ( JPEGBinaryReader JPEGStream ) : float
JPEGStream FluxJpeg.Core.IO.JPEGBinaryReader Stream that contains huffman bits
return float

idctData() public method

Run the Inverse DCT method on all of the block data
public idctData ( ) : void
return void

padMCU() public method

If a restart marker is found with too little of an MCU count (i.e. our Restart Interval is 63 and we have 61 we copy the last MCU until it's full)
public padMCU ( int index, int length ) : void
index int
length int
return void

quantizeData() public method

Run the Quantization backward method on all of the block data.
public quantizeData ( ) : void
return void

resetInterval() public method

Reset the interval by setting the previous DC value
public resetInterval ( ) : void
return void

scaleByFactors() public method

Stretches components as needed to normalize the size of all components. For example, in a 2x1 (4:2:2) sequence, the Cr and Cb channels will be scaled vertically by a factor of 2.
public scaleByFactors ( BlockUpsamplingMode mode ) : void
mode BlockUpsamplingMode
return void

setACTable() public method

public setACTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
return void

setDCTable() public method

public setDCTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
return void

writeBlock() public method

public writeBlock ( byte raster, byte data, int compIndex, int x, int y ) : void
raster byte
data byte
compIndex int
x int
y int
return void

writeDataScaled() public method

public writeDataScaled ( byte raster, int componentIndex, BlockUpsamplingMode mode ) : void
raster byte
componentIndex int
mode BlockUpsamplingMode
return void

Property Details

ACTable public_oe property

public HuffmanTable,FluxJpeg.Core ACTable
return FluxJpeg.Core.HuffmanTable

DCTable public_oe property

public HuffmanTable,FluxJpeg.Core DCTable
return FluxJpeg.Core.HuffmanTable

Decode public_oe property

public DecodeFunction Decode
return DecodeFunction

factorH public_oe property

public byte factorH
return byte

previousDC public_oe property

public float previousDC
return float

spectralStart public_oe property

public int spectralStart
return int

successiveLow public_oe property

public int successiveLow
return int

width public_oe property

public int width
return int