C# Класс CSJ2K.j2k.util.CodestreamManipulator

This class takes a legal JPEG 2000 codestream and performs some manipulation on it. Currently the manipulations supported are: Tile-parts
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CodestreamManipulator ( System.Stream stream, int nt, int pptp, bool ppm, bool ppt, bool tempSop, bool tempEph ) : System.Collections.Generic

Instantiates a codestream manipulator..

doCodestreamManipulation ( ) : int

This method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers

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

Метод Описание
InitBlock ( ) : void
createTileParts ( ) : void

This method creates the tileparts from the buffered tile headers, packet headers and packet data

parseAndFind ( BufferedRandomAccessFile fi ) : void

This method parses the codestream for SOT, SOP and EPH markers and removes header header bits signalling SOP and EPH markers if packed packet headers are used

readAndBuffer ( BufferedRandomAccessFile fi ) : void

This method reads and buffers the tile headers, packet headers and packet data.

writeNewCodestream ( BufferedRandomAccessFile fi ) : void

This method writes the new codestream to the file.

Описание методов

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

Instantiates a codestream manipulator..
public CodestreamManipulator ( System.Stream stream, int nt, int pptp, bool ppm, bool ppt, bool tempSop, bool tempEph ) : System.Collections.Generic
stream System.Stream The output stream /// ///
nt int The number of tiles in the image /// ///
pptp int Packets per tile-part. If zero, no division into tileparts /// is performed /// ///
ppm bool Flag indicating that PPM marker is used /// ///
ppt bool Flag indicating that PPT marker is used /// ///
tempSop bool Flag indicating whether SOP merker should be removed /// ///
tempEph bool Flag indicating whether EPH merker should be removed /// ///
Результат System.Collections.Generic

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

This method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers
If an I/O error ocurred. /// ///
public doCodestreamManipulation ( ) : int
Результат int