// Tile-parts and packed packet headers
int pktspertp = j2kwparam.getPacketPerTilePart();
int ntiles = imgtiler.getNumTiles();
if (pktspertp>0 || pphTile || pphMain){
CodestreamManipulator cm =
new CodestreamManipulator(tmpFile, ntiles, pktspertp,
pphMain, pphTile, tempSop,
tempEph);
fileLength += cm.doCodestreamManipulation();
}
// File Format
int nc= imgsrc.getNumComps() ;
int[] bpc = new int[nc];