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

Inheritance: TiffCodec
Afficher le fichier Open project: Core-Techs/TiffLibrary

Méthodes publiques

Méthode Description
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
PackBitsCodec ( Tiff tif, Compression scheme, string name ) : System
PreEncode ( short plane ) : bool

Prepares the encoder part of the codec for a encoding.

PreEncode is called after TiffCodec.SetupEncode and before encoding.

Private Methods

Méthode Description
PackBitsDecode ( byte buffer, int offset, int count, short plane ) : bool
PackBitsEncode ( byte buf, int offset, int cc, short s ) : bool
PackBitsEncodeChunk ( byte buffer, int offset, int count, short plane ) : bool

Encode a rectangular chunk of pixels. We break it up into row-sized pieces to insure that encoded runs do not span rows. Otherwise, there can be problems with the decoder if data is read, for example, by scanlines when it was encoded by strips.

PackBitsPreEncode ( short s ) : bool

Method Details

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

Init() public méthode

public Init ( ) : bool
Résultat bool

PackBitsCodec() public méthode

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

PreEncode() public méthode

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