C# 클래스 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
상속: TiffCodec
파일 보기 프로젝트 열기: Core-Techs/TiffLibrary 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

CodecWithPredictor() 공개 메소드

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

DecodeRow() 공개 메소드

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.
리턴 bool

DecodeStrip() 공개 메소드

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.
리턴 bool

DecodeTile() 공개 메소드

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.
리턴 bool

EncodeRow() 공개 메소드

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.
리턴 bool

EncodeStrip() 공개 메소드

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.
리턴 bool

EncodeTile() 공개 메소드

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.
리턴 bool

GetChildTagMethods() 공개 메소드

public GetChildTagMethods ( ) : TiffTagMethods
리턴 TiffTagMethods

GetPredictorValue() 공개 메소드

public GetPredictorValue ( ) : Predictor
리턴 Predictor

SetPredictorValue() 공개 메소드

public SetPredictorValue ( Predictor value ) : void
value Predictor
리턴 void

SetupDecode() 공개 메소드

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

SetupEncode() 공개 메소드

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

TIFFPredictorCleanup() 공개 메소드

public TIFFPredictorCleanup ( ) : void
리턴 void

TIFFPredictorInit() 공개 메소드

public TIFFPredictorInit ( TiffTagMethods tagMethods ) : void
tagMethods TiffTagMethods
리턴 void

predictor_decoderow() 공개 메소드

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

predictor_decodestrip() 공개 메소드

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

predictor_decodetile() 공개 메소드

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

predictor_encoderow() 공개 메소드

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

predictor_encodestrip() 공개 메소드

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

predictor_encodetile() 공개 메소드

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

predictor_setupdecode() 공개 메소드

public predictor_setupdecode ( ) : bool
리턴 bool

predictor_setupencode() 공개 메소드

public predictor_setupencode ( ) : bool
리턴 bool