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

Mostra file Open project: Core-Techs/TiffLibrary

Public Methods

Method Description
CCITTCodec ( Tiff tif, Compression scheme, string name ) : System
Cleanup ( ) : void

Cleanups the state of the codec.

Cleanup is called when codec is no longer needed (won't be used) and can be used for example to restore tag methods that were substituted.

Close ( ) : void

Flushes any internal data buffers and terminates current operation.

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.

Init ( ) : bool
PostEncode ( ) : bool

Performs any actions after encoding required by the codec.

PostEncode is called after encoding and can be used to release any external resources needed during encoding.

PreDecode ( short plane ) : bool

Prepares the decoder part of the codec for a decoding.

PreDecode is called after SetupDecode and before decoding.

PreEncode ( short plane ) : bool

Prepares the encoder part of the codec for a encoding.

PreEncode is called after SetupEncode and before encoding.

SetupDecode ( ) : bool
SetupEncode ( ) : bool

Setups the encoder part of the codec.

SetupEncode is called once before PreEncode.

Private Methods

Method Description
CHECK_b1 ( int &b1 ) : void
CLEANUP_RUNS ( string module ) : void
ClrBits ( int n ) : void
EXPAND1D ( string module ) : bool
EXPAND2D ( string module, int b1 ) : bool
EndOfData ( ) : bool
FILL ( int n, byte cp, int &offset, byte value ) : void
Fax3BadLength ( string module ) : void
Fax3Decode1D ( byte buffer, int offset, int count ) : bool

Decode the requested amount of G3 1D-encoded data.

Fax3Decode2D ( byte buffer, int offset, int count ) : bool

Decode the requested amount of G3 2D-encoded data.

Fax3DecodeRLE ( byte buffer, int offset, int count ) : bool

Decode the requested amount of RLE-encoded data.

Fax3Encode ( byte buffer, int offset, int count ) : bool

Encode a buffer of pixels.

Fax3Encode1DRow ( ) : bool
Fax3Encode2DRow ( ) : bool
Fax3Encode2DRow_Pixel ( byte buf, int bufOffset, int ix ) : int
Fax3Extension ( string module ) : void
Fax3PostEncode ( ) : bool
Fax3PrematureEOF ( string module ) : void
Fax3PutEOL ( ) : void
Fax3Unexpected ( string module ) : void
Fax4Decode ( byte buffer, int offset, int count ) : bool

Decode the requested amount of G4-encoded data.

Fax4Encode ( byte buffer, int offset, int count ) : bool

Encode the requested amount of data.

Fax4PostEncode ( ) : bool
GetBits ( int n ) : int
InitCCITTFax3 ( ) : void
LOOKUP16 ( faxTableEntry &TabEnt, int wid, bool useBlack ) : bool
LOOKUP8 ( faxTableEntry &TabEnt, int wid ) : bool
NeedBits16 ( int n ) : bool
NeedBits8 ( int n ) : bool
SETVALUE ( int x ) : void
SWAP ( int &a, int &b ) : void
SYNC_EOL ( ) : bool
TIFFInitCCITTFax3 ( ) : bool
TIFFInitCCITTFax4 ( ) : bool
TIFFInitCCITTRLE ( ) : bool
TIFFInitCCITTRLEW ( ) : bool
cleanState ( ) : void
fax3FillRuns ( byte buffer, int offset, int runs, int thisRunOffset, int nextRunOffset, int width ) : void
find0span ( byte bp, int bpOffset, int bs, int be ) : int
find1span ( byte bp, int bpOffset, int bs, int be ) : int
finddiff ( byte bp, int bpOffset, int _bs, int _be, int _color ) : int
finddiff2 ( byte bp, int bpOffset, int _bs, int _be, int _color ) : int
flushBits ( ) : void
handlePrematureEOFinExpand2D ( string module ) : void
is2DEncoding ( ) : bool
isLongAligned ( int offset ) : bool
isShortAligned ( int offset ) : bool
putBits ( int bits, int length ) : void
putcode ( tableEntry te ) : void
putspan ( int span, bool useBlack ) : void
setupState ( ) : bool

Method Details

CCITTCodec() public method

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

Cleanup() public method

Cleanups the state of the codec.
Cleanup is called when codec is no longer needed (won't be used) and can be used for example to restore tag methods that were substituted.
public Cleanup ( ) : void
return void

Close() public method

Flushes any internal data buffers and terminates current operation.
public Close ( ) : void
return void

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

Init() public method

public Init ( ) : bool
return bool

PostEncode() public method

Performs any actions after encoding required by the codec.
PostEncode is called after encoding and can be used to release any external resources needed during encoding.
public PostEncode ( ) : bool
return bool

PreDecode() public method

Prepares the decoder part of the codec for a decoding.
PreDecode is called after SetupDecode and before decoding.
public PreDecode ( short plane ) : bool
plane short The zero-based sample plane index.
return bool

PreEncode() public method

Prepares the encoder part of the codec for a encoding.
PreEncode is called after SetupEncode and before encoding.
public PreEncode ( short plane ) : bool
plane short The zero-based sample plane index.
return bool

SetupDecode() public method

public SetupDecode ( ) : bool
return bool

SetupEncode() public method

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