C# 클래스 BitMiracle.LibTiff.Classic.TiffCodec

Base class for all codecs within the library.

A codec is a class that implements decoding, encoding, or decoding and encoding of a compression algorithm.

The library provides a collection of builtin codecs. More codecs may be registered through calls to the library and/or the builtin implementations may be overridden.

파일 보기 프로젝트 열기: Core-Techs/TiffLibrary 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_name string
m_scheme Compression
m_tif Tiff

공개 메소드들

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

DefStripSize ( int size ) : int

Calculates and/or constrains a strip size.

DefTileSize ( int &width, int &height ) : void

Calculate and/or constrains a tile size

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

Initializes this instance.

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.

Seek ( int row ) : bool

Seeks the specified row in the strip being processed.

SetupDecode ( ) : bool

Setups the decoder part of the codec.

SetupDecode is called once before PreDecode.

SetupEncode ( ) : bool

Setups the encoder part of the codec.

SetupEncode is called once before PreEncode.

TiffCodec ( Tiff tif, Compression scheme, string name )

Initializes a new instance of the TiffCodec class.

비공개 메소드들

메소드 설명
noDecode ( string method ) : bool
noEncode ( string method ) : bool

메소드 상세

Cleanup() 공개 메소드

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
리턴 void

Close() 공개 메소드

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

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

DefStripSize() 공개 메소드

Calculates and/or constrains a strip size.
public DefStripSize ( int size ) : int
size int The proposed strip size (may be zero or negative).
리턴 int

DefTileSize() 공개 메소드

Calculate and/or constrains a tile size
public DefTileSize ( int &width, int &height ) : void
width int The proposed tile width upon the call / tile width to use after the call.
height int The proposed tile height upon the call / tile height to use after the call.
리턴 void

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

Init() 공개 메소드

Initializes this instance.
public Init ( ) : bool
리턴 bool

PostEncode() 공개 메소드

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

PreDecode() 공개 메소드

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

PreEncode() 공개 메소드

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

Seek() 공개 메소드

Seeks the specified row in the strip being processed.
public Seek ( int row ) : bool
row int The row to seek.
리턴 bool

SetupDecode() 공개 메소드

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

SetupEncode() 공개 메소드

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

TiffCodec() 공개 메소드

Initializes a new instance of the TiffCodec class.
public TiffCodec ( Tiff tif, Compression scheme, string name )
tif Tiff An instance of class.
scheme Compression The compression scheme for the codec.
name string The name of the codec.

프로퍼티 상세

m_name 보호되어 있는 프로퍼티

Codec name.
protected string m_name
리턴 string

m_scheme 보호되어 있는 프로퍼티

Compression scheme this codec impelements.
protected Compression m_scheme
리턴 Compression

m_tif 보호되어 있는 프로퍼티

An instance of Tiff.
protected Tiff,BitMiracle.LibTiff.Classic m_tif
리턴 Tiff