C# Класс BitMiracle.LibTiff.Classic.Internal.OJpegCodec

Наследование: TiffCodec
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

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.

GetTiff ( ) : Tiff
Init ( ) : bool
OJPEGReadBlock ( ushort len, byte mem, int offset ) : bool
OJPEGReadBytePeek ( byte &b ) : bool
OJPEGSubsamplingCorrect ( ) : void
OJpegCodec ( Tiff tif, Compression scheme, string name ) : System
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

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.

Приватные методы

Метод Описание
ForceProcessedRgbOutput ( bool force ) : void
OJPEGCleanup ( ) : void
OJPEGDecode ( byte buf, int offset, int cc, short s ) : bool
OJPEGDecodeRaw ( byte buf, int offset, int cc ) : bool
OJPEGDecodeScanlines ( byte buf, int offset, int cc ) : bool
OJPEGLibjpegSessionAbort ( ) : void
OJPEGPreDecode ( short s ) : bool
OJPEGPreDecodeSkipRaw ( ) : bool
OJPEGPreDecodeSkipScanlines ( ) : bool
OJPEGReadBufferFill ( ) : bool
OJPEGReadByte ( byte &b ) : bool
OJPEGReadByteAdvance ( ) : void
OJPEGReadHeaderInfo ( ) : bool
OJPEGReadHeaderInfoSec ( ) : bool
OJPEGReadHeaderInfoSecStreamDht ( ) : bool
OJPEGReadHeaderInfoSecStreamDqt ( ) : bool
OJPEGReadHeaderInfoSecStreamDri ( ) : bool
OJPEGReadHeaderInfoSecStreamSof ( byte marker_id ) : bool
OJPEGReadHeaderInfoSecStreamSos ( ) : bool
OJPEGReadHeaderInfoSecTablesAcTable ( ) : bool
OJPEGReadHeaderInfoSecTablesDcTable ( ) : bool
OJPEGReadHeaderInfoSecTablesQTable ( ) : bool
OJPEGReadSecondarySos ( short s ) : bool
OJPEGReadSkip ( ushort len ) : void
OJPEGReadWord ( ushort &word ) : bool
OJPEGSetupDecode ( ) : bool
OJPEGWriteHeaderInfo ( ) : bool
OJPEGWriteStream ( byte &mem, uint &len ) : bool
OJPEGWriteStreamAcTable ( byte table_index, byte &mem, uint &len ) : void
OJPEGWriteStreamCompressed ( byte &mem, uint &len ) : bool
OJPEGWriteStreamDcTable ( byte table_index, byte &mem, uint &len ) : void
OJPEGWriteStreamDri ( byte &mem, uint &len ) : void
OJPEGWriteStreamEoi ( byte &mem, uint &len ) : void
OJPEGWriteStreamQTable ( byte table_index, byte &mem, uint &len ) : void
OJPEGWriteStreamRst ( byte &mem, uint &len ) : void
OJPEGWriteStreamSof ( byte &mem, uint &len ) : void
OJPEGWriteStreamSoi ( byte &mem, uint &len ) : void
OJPEGWriteStreamSos ( byte &mem, uint &len ) : void
OJpegEncodeIsUnsupported ( ) : bool
cleanState ( ) : void
jpeg_create_decompress_encap ( ) : bool
jpeg_read_header_encap ( bool require_image ) : ReadResult
jpeg_read_raw_data_encap ( int max_lines ) : int
jpeg_read_scanlines_encap ( byte scanlines, int max_lines ) : int
jpeg_start_decompress_encap ( ) : 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

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

GetTiff() публичный Метод

public GetTiff ( ) : Tiff
Результат Tiff

Init() публичный Метод

public Init ( ) : bool
Результат bool

OJPEGReadBlock() публичный Метод

public OJPEGReadBlock ( ushort len, byte mem, int offset ) : bool
len ushort
mem byte
offset int
Результат bool

OJPEGReadBytePeek() публичный Метод

public OJPEGReadBytePeek ( byte &b ) : bool
b byte
Результат bool

OJPEGSubsamplingCorrect() публичный Метод

public OJPEGSubsamplingCorrect ( ) : void
Результат void

OJpegCodec() публичный Метод

public OJpegCodec ( Tiff tif, Compression scheme, string name ) : System
tif Tiff
scheme Compression
name string
Результат System

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

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