C# Class FluxJpeg.Core.Decoder.JpegComponent

Afficher le fichier Open project: prepare/HTML-Renderer Class Usage Examples

Méthodes publiques

Свойство Type Description
ACTable FluxJpeg.Core.HuffmanTable
DCTable FluxJpeg.Core.HuffmanTable
Decode DecodeFunction
factorH byte
previousDC float
spectralStart int
successiveLow int
width int

Private Properties

Свойство Type Description
EmitQuantize QuantizeDel
decode_ac_coefficients void
writeBlockScaled void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DecodeACFirst ( JPEGBinaryReader stream, float zz ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
zz float
Résultat void

DecodeACRefine() public méthode

public DecodeACRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Résultat void

DecodeBaseline() public méthode

public DecodeBaseline ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Résultat void

DecodeDCFirst() public méthode

public DecodeDCFirst ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Résultat void

DecodeDCRefine() public méthode

public DecodeDCRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Résultat void

DecodeMCU() public méthode

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

JpegComponent() public méthode

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
Résultat System

SetBlock() public méthode

public SetBlock ( int idx ) : void
idx int
Résultat void

decode_dc_coefficient() public méthode

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
Résultat float

idctData() public méthode

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

padMCU() public méthode

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
Résultat void

quantizeData() public méthode

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

resetInterval() public méthode

Reset the interval by setting the previous DC value
public resetInterval ( ) : void
Résultat void

scaleByFactors() public méthode

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
Résultat void

setACTable() public méthode

public setACTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
Résultat void

setDCTable() public méthode

public setDCTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
Résultat void

writeBlock() public méthode

public writeBlock ( byte raster, byte data, int compIndex, int x, int y ) : void
raster byte
data byte
compIndex int
x int
y int
Résultat void

writeDataScaled() public méthode

public writeDataScaled ( byte raster, int componentIndex, BlockUpsamplingMode mode ) : void
raster byte
componentIndex int
mode BlockUpsamplingMode
Résultat void

Property Details

ACTable public_oe property

public HuffmanTable,FluxJpeg.Core ACTable
Résultat FluxJpeg.Core.HuffmanTable

DCTable public_oe property

public HuffmanTable,FluxJpeg.Core DCTable
Résultat FluxJpeg.Core.HuffmanTable

Decode public_oe property

public DecodeFunction Decode
Résultat DecodeFunction

factorH public_oe property

public byte factorH
Résultat byte

previousDC public_oe property

public float previousDC
Résultat float

spectralStart public_oe property

public int spectralStart
Résultat int

successiveLow public_oe property

public int successiveLow
Résultat int

width public_oe property

public int width
Résultat int