C# Класс FluxJpeg.Core.Decoder.JpegComponent

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ACTable FluxJpeg.Core.HuffmanTable
DCTable FluxJpeg.Core.HuffmanTable
Decode DecodeFunction
factorH byte
previousDC float
spectralStart int
successiveLow int
width int

Private Properties

Свойство Тип Описание
EmitQuantize QuantizeDel
decode_ac_coefficients void
writeBlockScaled void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

DecodeACFirst() публичный Метод

public DecodeACFirst ( JPEGBinaryReader stream, float zz ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
zz float
Результат void

DecodeACRefine() публичный Метод

public DecodeACRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Результат void

DecodeBaseline() публичный Метод

public DecodeBaseline ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Результат void

DecodeDCFirst() публичный Метод

public DecodeDCFirst ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Результат void

DecodeDCRefine() публичный Метод

public DecodeDCRefine ( JPEGBinaryReader stream, float dest ) : void
stream FluxJpeg.Core.IO.JPEGBinaryReader
dest float
Результат void

DecodeMCU() публичный Метод

public DecodeMCU ( JPEGBinaryReader jpegReader, int i, int j ) : void
jpegReader FluxJpeg.Core.IO.JPEGBinaryReader
i int
j int
Результат void

JpegComponent() публичный Метод

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
Результат System

SetBlock() публичный Метод

public SetBlock ( int idx ) : void
idx int
Результат void

decode_dc_coefficient() публичный Метод

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
Результат float

idctData() публичный Метод

Run the Inverse DCT method on all of the block data
public idctData ( ) : void
Результат void

padMCU() публичный Метод

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
Результат void

quantizeData() публичный Метод

Run the Quantization backward method on all of the block data.
public quantizeData ( ) : void
Результат void

resetInterval() публичный Метод

Reset the interval by setting the previous DC value
public resetInterval ( ) : void
Результат void

scaleByFactors() публичный Метод

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
Результат void

setACTable() публичный Метод

public setACTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
Результат void

setDCTable() публичный Метод

public setDCTable ( JpegHuffmanTable table ) : void
table FluxJpeg.Core.JpegHuffmanTable
Результат void

writeBlock() публичный Метод

public writeBlock ( byte raster, byte data, int compIndex, int x, int y ) : void
raster byte
data byte
compIndex int
x int
y int
Результат void

writeDataScaled() публичный Метод

public writeDataScaled ( byte raster, int componentIndex, BlockUpsamplingMode mode ) : void
raster byte
componentIndex int
mode BlockUpsamplingMode
Результат void

Описание свойств

ACTable публичное свойство

public HuffmanTable,FluxJpeg.Core ACTable
Результат FluxJpeg.Core.HuffmanTable

DCTable публичное свойство

public HuffmanTable,FluxJpeg.Core DCTable
Результат FluxJpeg.Core.HuffmanTable

Decode публичное свойство

public DecodeFunction Decode
Результат DecodeFunction

factorH публичное свойство

public byte factorH
Результат byte

previousDC публичное свойство

public float previousDC
Результат float

spectralStart публичное свойство

public int spectralStart
Результат int

successiveLow публичное свойство

public int successiveLow
Результат int

width публичное свойство

public int width
Результат int