/** * Initializes this object with the given source of image data and with all the decompositon * parameters * * @param src From where the image data should be obtained. * @param encSpec The encoder specifications * @param pox The horizontal coordinate of the cell and code-block partition origin with respect * to the canvas origin, on the reference grid. * @param poy The vertical coordinate of the cell and code-block partition origin with respect to * the canvas origin, on the reference grid. * @see ForwardWT */ public ForwWTFull(BlkImgDataSrc src, J2KImageWriteParamJava wp, int pox, int poy) { super(src); this.src = src; this.cb0x = cb0x; this.cb0y = cb0y; this.dls = wp.getDecompositionLevel(); this.filters = wp.getFilters(); this.cblks = wp.getCodeBlockSize(); this.pss = wp.getPrecinctPartition(); int ncomp = src.getNumComps(); int ntiles = src.getNumTiles(); currentSubband = new SubbandAn[ncomp]; decomposedComps = new DataBlk[ncomp]; subbTrees = new SubbandAn[ntiles][ncomp]; lastn = new int[ncomp]; lastm = new int[ncomp]; }