il.setWidth(dstBounds.width); il.setHeight(dstBounds.height); il.setTileWidth(op.getTileWidth()); il.setTileWidth(op.getTileHeight()); localHints.add(new RenderingHints(JAI.KEY_IMAGE_LAYOUT, il));
layout.setWidth(w); layout.setHeight(h); layout.setTileWidth(op.getTileWidth()); layout.setTileHeight(op.getTileHeight()); RenderingHints hints = op.getRenderingHints(); il.setWidth(dstBounds.width); il.setHeight(dstBounds.height); il.setTileWidth(op.getTileWidth()); il.setTileHeight(op.getTileHeight()); localHints.put(JAI.KEY_IMAGE_LAYOUT, il);
final int height = image.getHeight(); final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
int tileWidth = at.getTileWidth(); int tileHeight = at.getTileHeight(); ImageUtilities.disposeSinglePlanarImage(at);
private RenderedOp getBandSourceImage(int i) { RenderedOp bandImage = BandSelectDescriptor.create(sourceImage, new int[]{i}, null); int tileWidth = bandImage.getTileWidth(); int tileHeight = bandImage.getTileHeight(); ImageLayout imageLayout = new ImageLayout(); boolean noSourceImageTiling = tileWidth == bandImage.getWidth() && tileHeight == bandImage.getHeight(); if (noSourceImageTiling) { tileWidth = Math.min(bandImage.getWidth(), 512); tileHeight = Math.min(bandImage.getHeight(), 512); imageLayout.setTileWidth(tileWidth); imageLayout.setTileHeight(tileHeight); } imageLayout.setSampleModel(new SingleBandedSampleModel(bandImage.getSampleModel().getDataType(), tileWidth, tileHeight)); bandImage = FormatDescriptor.create(bandImage, bandImage.getSampleModel().getDataType(), new RenderingHints(JAI.KEY_IMAGE_LAYOUT, imageLayout)); return bandImage; }
RenderedOp bandImage = getBandSourceImage(i); if (i == 0){ product.setPreferredTileSize(bandImage.getTileWidth(), bandImage.getTileHeight());
final int height = image.getHeight(); final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
final int height = image.getHeight(); final int tileHeight = image.getTileHeight(); final int tileWidth = image.getTileWidth();
assertEquals(10, image.getTileWidth()); assertEquals(10, image.getTileHeight()); for (int x = 0; x < image.getNumXTiles(); x++) {
private void check(int type, RenderedImage src, RenderedOp shaded, boolean roiUsed, ROI roi, boolean nodataUsed, Range noData) { int tileWidth = shaded.getTileWidth(); int tileHeight = shaded.getTileHeight(); int minTileX = shaded.getMinTileX();
private void check(RenderedImage src, RenderedOp dest, double[] low, double[] high, double[] con, boolean roiUsed, ROI roi, boolean nodataUsed, Range noData) { int tileWidth = dest.getTileWidth(); int tileHeight = dest.getTileHeight(); int minTileX = dest.getMinTileX();
private void check(RenderedImage src, RenderedOp clamped, double[] low, double[] high, boolean roiUsed, ROI roi, boolean nodataUsed, Range noData) { int tileWidth = clamped.getTileWidth(); int tileHeight = clamped.getTileHeight(); int minTileX = clamped.getMinTileX();