Package jj2000.j2k.util
Class CodestreamManipulator
java.lang.Object
jj2000.j2k.util.CodestreamManipulator
This class takes a legal JPEG 2000 codestream and performs some
manipulation on it. Currently the manipulations supported are: Tile-parts
-
Constructor Summary
ConstructorsConstructorDescriptionCodestreamManipulator(File file, int nt, int pptp, boolean ppm, boolean ppt, boolean tempSop, boolean tempEph) Instantiates a codestream manipulator.. -
Method Summary
Modifier and TypeMethodDescriptionintThis method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers
-
Constructor Details
-
CodestreamManipulator
public CodestreamManipulator(File file, int nt, int pptp, boolean ppm, boolean ppt, boolean tempSop, boolean tempEph) Instantiates a codestream manipulator..- Parameters:
file- The name of the original outfilent- The number of tiles in the imagepptp- Packets per tile-part. If zero, no division into tileparts is performedppm- Flag indicating that PPM marker is usedppt- Flag indicating that PPT marker is usedtempSop- Flag indicating whether SOP merker should be removedtempEph- Flag indicating whether EPH merker should be removed
-
-
Method Details
-
doCodestreamManipulation
This method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers- Returns:
- The number of bytes that the file has increased by
- Throws:
IOException- If an I/O error ocurred.
-