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
Afficher le fichier Open project: Core-Techs/TiffLibrary Class Usage Examples

Méthodes publiques

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

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

public CodecWithPredictor ( Tiff tif, Compression scheme, string name ) : System
tif Tiff
scheme Compression
name string
Résultat System

DecodeRow() public méthode

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.
Résultat bool

DecodeStrip() public méthode

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.
Résultat bool

DecodeTile() public méthode

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.
Résultat bool

EncodeRow() public méthode

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.
Résultat bool

EncodeStrip() public méthode

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.
Résultat bool

EncodeTile() public méthode

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.
Résultat bool

GetChildTagMethods() public méthode

public GetChildTagMethods ( ) : TiffTagMethods
Résultat TiffTagMethods

GetPredictorValue() public méthode

public GetPredictorValue ( ) : Predictor
Résultat Predictor

SetPredictorValue() public méthode

public SetPredictorValue ( Predictor value ) : void
value Predictor
Résultat void

SetupDecode() public méthode

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

SetupEncode() public méthode

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

TIFFPredictorCleanup() public méthode

public TIFFPredictorCleanup ( ) : void
Résultat void

TIFFPredictorInit() public méthode

public TIFFPredictorInit ( TiffTagMethods tagMethods ) : void
tagMethods TiffTagMethods
Résultat void

predictor_decoderow() public méthode

public predictor_decoderow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_decodestrip() public méthode

public predictor_decodestrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_decodetile() public méthode

public predictor_decodetile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_encoderow() public méthode

public predictor_encoderow ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_encodestrip() public méthode

public predictor_encodestrip ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_encodetile() public méthode

public predictor_encodetile ( byte buffer, int offset, int count, short plane ) : bool
buffer byte
offset int
count int
plane short
Résultat bool

predictor_setupdecode() public méthode

public predictor_setupdecode ( ) : bool
Résultat bool

predictor_setupencode() public méthode

public predictor_setupencode ( ) : bool
Résultat bool