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
파일 보기 프로젝트 열기: cureos/csj2k 1 사용 예제들

공개 메소드들

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