Examples of DataBuffer


Examples of ae.java.awt.image.DataBuffer

        default:
            throw new InternalError("Unsupported depth " +
                                    cm.getPixelSize());
        }

        DataBuffer dbn = new DataBufferNative(sd, dataType,
                                              width, height);
        return new WritableRasterNative(smHw, dbn);
    }
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer

        this.output = output;
        this.dataTypeName = dataTypeName;
    }

    public synchronized void initialize(int initialBufferSize) {
        available.addFirst(new DataBuffer(initialBufferSize));
        available.addFirst(new DataBuffer(initialBufferSize));
    }
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer

            flushBuffer();
            if (available.isEmpty()) {
                throw new IllegalStateException();
            }
        }
        DataBuffer first = available.removeFirst();
        first.reset(0, 0);
        return first;
    }
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer

        this.input = input;
        this.blockRest = Math.max(blocks - 1, -1);
    }

    public void initialize() {
        releaseBuffer(new DataBuffer());
        releaseBuffer(new DataBuffer());
    }
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer

    private void submitIfAvailable() {
        if (sawEof || running != null || available.isEmpty()) {
            return;
        }
        // acquires an available buffer for reading next page, and submit the task
        DataBuffer buffer = available.removeFirst();
        Task task = new Task(input, buffer, positionInBlock, currentBlock, blockRest);
        running = executor.submit(task);
    }
View Full Code Here

Examples of com.asakusafw.runtime.io.util.DataBuffer

    /**
     * 初期バッファサイズを指定してインスタンスを生成する。
     * @param bufferSize 初期バッファサイズ
     */
    public LookUpKey(int bufferSize) {
        this.buffer = new DataBuffer(bufferSize);
    }
View Full Code Here

Examples of com.google.code.appengine.awt.image.DataBuffer

            AffineTransform t, RenderingHints hints) {
        Object value = hints.get(RenderingHints.KEY_INTERPOLATION);
        boolean bilinear = (value != null)
                && (value != RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
        int type = img.getType();
        DataBuffer buf = img.getRaster().getDataBuffer();
        if (buf instanceof DataBufferInt) {
            if (type == BufferedImage.TYPE_INT_ARGB || type == BufferedImage.TYPE_INT_ARGB_PRE
                    || type == BufferedImage.TYPE_INT_BGR || type == BufferedImage.TYPE_INT_RGB) {
                if (bilinear) {
                    return new TexturePaintContext.IntBilinear(img, anchor, t);
View Full Code Here

Examples of com.sourcetap.sfa.event.DataBuffer

        String primaryEntityTitle = "";

        if ((dataMatrix.getCurrentBuffer().getContents() == null) ||
                (dataMatrix.getCurrentBuffer().getContents().size() < 1)) {
            // No rows in data matrix.  Set the title using an empty string.
            DataBuffer tempBuffer = new DataBuffer(delegator, dataMatrix);
            primaryEntityTitle = UIWebUtility.decodeEntityDisplayDef(titleDef,
                    tempBuffer.createEmptyRow(), "");
        } else {
            // There is data in the data matrix.  Use the first row to set the title.
            primaryEntityTitle = UIWebUtility.decodeEntityDisplayDef(titleDef,
                    dataMatrix.getCurrentBuffer().getContentsRow(0), "");
        }
View Full Code Here

Examples of java.awt.image.DataBuffer

       
        // And its ColorModel
        ColorModel colorModel = rdrdImage.getColorModel();
        Raster raster = rdrdImage.getData();
        SampleModel sampleModel = raster.getSampleModel();
        DataBuffer dataBuffer = raster.getDataBuffer();
       
        if (colorModel == null) {
            colorModel = ColorModel.getRGBdefault();
        }
        int minX = raster.getMinX();
View Full Code Here

Examples of java.awt.image.DataBuffer

    }
    else
    bi = convert(image);
    }
   
    final DataBuffer dataBuffer = bi.getRaster().getDataBuffer();
   
    final Object pixels;
    final int pixelsLength;
    final Class dataType;
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.