C# Class BitMiracle.LibTiff.Classic.Internal.CodecWithPredictor

Codecs that want to support the Predictor tag should inherit from this class instead of TiffCodec. Such codecs should not override default TiffCodec's methods for decode|encode setup and encoding|decoding of row|tile|strip. Codecs with predictor support should override equivalent methods provided by this class. If codec wants to provide custom tag get|set|print methods, then it should pass pointer to a object derived from TiffTagMethods as parameter to TIFFPredictorInit
Inheritance: TiffCodec
Datei anzeigen Open project: Core-Techs/TiffLibrary Class Usage Examples

Public Methods

Method Description
CodecWithPredictor ( Tiff tif, Compression scheme, string name ) : System
DecodeRow ( byte buffer, int offset, int count, short plane ) : bool

Decodes one row of image data.

DecodeStrip ( byte buffer, int offset, int count, short plane ) : bool

Decodes one strip of image data.

DecodeTile ( byte buffer, int offset, int count, short plane ) : bool

Decodes one tile of image data.

EncodeRow ( byte buffer, int offset, int count, short plane ) : bool

Encodes one row of image data.

EncodeStrip ( byte buffer, int offset, int count, short plane ) : bool

Encodes one strip of image data.

EncodeTile ( byte buffer, int offset, int count, short plane ) : bool

Encodes one tile of image data.

GetChildTagMethods ( ) : TiffTagMethods
GetPredictorValue ( ) : Predictor
SetPredictorValue ( Predictor value ) : void
SetupDecode ( ) : bool

Setups the decoder part of the codec.

SetupDecode is called once before TiffCodec.PreDecode.

SetupEncode ( ) : bool

Setups the encoder part of the codec.

SetupEncode is called once before TiffCodec.PreEncode.

TIFFPredictorCleanup ( ) : void
TIFFPredictorInit ( TiffTagMethods tagMethods ) : void
predictor_decoderow ( byte buffer, int offset, int count, short plane ) : bool
predictor_decodestrip ( byte buffer, int offset, int count, short plane ) : bool
predictor_decodetile ( byte buffer, int offset, int count, short plane ) : bool
predictor_encoderow ( byte buffer, int offset, int count, short plane ) : bool
predictor_encodestrip ( byte buffer, int offset, int count, short plane ) : bool
predictor_encodetile ( byte buffer, int offset, int count, short plane ) : bool
predictor_setupdecode ( ) : bool
predictor_setupencode ( ) : bool

Private Methods

Method Description
PredictorDecodeRow ( byte buffer, int offset, int count, short plane ) : bool

Decode a scanline and apply the predictor routine.

PredictorDecodeTile ( byte buffer, int offset, int count, short plane ) : bool

Decode a tile/strip and apply the predictor routine. Note that horizontal differencing must be done on a row-by-row basis. The width of a "row" has already been calculated at pre-decode time according to the strip/tile dimensions.

PredictorEncodeRow ( byte buffer, int offset, int count, short plane ) : bool
PredictorEncodeTile ( byte buffer, int offset, int count, short plane ) : bool
PredictorSetup ( ) : bool
PredictorSetupDecode ( ) : bool
PredictorSetupEncode ( ) : bool
fpAcc ( byte buffer, int offset, int count ) : void

Floating point predictor accumulation routine.

fpDiff ( byte buffer, int offset, int count ) : void

Floating point predictor differencing routine.

horAcc16 ( byte buffer, int offset, int count ) : void
horAcc32 ( byte buffer, int offset, int count ) : void
horAcc8 ( byte buffer, int offset, int count ) : void
horDiff16 ( byte buffer, int offset, int count ) : void
horDiff32 ( byte buffer, int offset, int count ) : void
horDiff8 ( byte buffer, int offset, int count ) : void
predictorFunc ( byte buffer, int offset, int count ) : void
swabHorAcc16 ( byte buffer, int offset, int count ) : void
swabHorAcc32 ( byte buffer, int offset, int count ) : void

Method Details

CodecWithPredictor() public method

public CodecWithPredictor ( Tiff tif, Compression scheme, string name ) : System
tif Tiff
scheme Compression
name string
return System

DecodeRow() public method

Decodes one row of image data.
public DecodeRow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer to place decoded image data to.
offset int The zero-based byte offset in at /// which to begin storing decoded bytes.
count int The number of decoded bytes that should be placed /// to
plane short The zero-based sample plane index.
return bool

DecodeStrip() public method

Decodes one strip of image data.
public DecodeStrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer to place decoded image data to.
offset int The zero-based byte offset in at /// which to begin storing decoded bytes.
count int The number of decoded bytes that should be placed /// to
plane short The zero-based sample plane index.
return bool

DecodeTile() public method

Decodes one tile of image data.
public DecodeTile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer to place decoded image data to.
offset int The zero-based byte offset in at /// which to begin storing decoded bytes.
count int The number of decoded bytes that should be placed /// to
plane short The zero-based sample plane index.
return bool

EncodeRow() public method

Encodes one row of image data.
public EncodeRow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer with image data to be encoded.
offset int The zero-based byte offset in at /// which to begin read image data.
count int The maximum number of encoded bytes that can be placed /// to
plane short The zero-based sample plane index.
return bool

EncodeStrip() public method

Encodes one strip of image data.
public EncodeStrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer with image data to be encoded.
offset int The zero-based byte offset in at /// which to begin read image data.
count int The maximum number of encoded bytes that can be placed /// to
plane short The zero-based sample plane index.
return bool

EncodeTile() public method

Encodes one tile of image data.
public EncodeTile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte The buffer with image data to be encoded.
offset int The zero-based byte offset in at /// which to begin read image data.
count int The maximum number of encoded bytes that can be placed /// to
plane short The zero-based sample plane index.
return bool

GetChildTagMethods() public method

public GetChildTagMethods ( ) : TiffTagMethods
return TiffTagMethods

GetPredictorValue() public method

public GetPredictorValue ( ) : Predictor
return Predictor

SetPredictorValue() public method

public SetPredictorValue ( Predictor value ) : void
value Predictor
return void

SetupDecode() public method

Setups the decoder part of the codec.
SetupDecode is called once before TiffCodec.PreDecode.
public SetupDecode ( ) : bool
return bool

SetupEncode() public method

Setups the encoder part of the codec.
SetupEncode is called once before TiffCodec.PreEncode.
public SetupEncode ( ) : bool
return bool

TIFFPredictorCleanup() public method

public TIFFPredictorCleanup ( ) : void
return void

TIFFPredictorInit() public method

public TIFFPredictorInit ( TiffTagMethods tagMethods ) : void
tagMethods TiffTagMethods
return void

predictor_decoderow() public method

public predictor_decoderow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_decodestrip() public method

public predictor_decodestrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_decodetile() public method

public predictor_decodetile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_encoderow() public method

public predictor_encoderow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_encodestrip() public method

public predictor_encodestrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_encodetile() public method

public predictor_encodetile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
return bool

predictor_setupdecode() public method

public predictor_setupdecode ( ) : bool
return bool

predictor_setupencode() public method

public predictor_setupencode ( ) : bool
return bool