Package com.lightcrafts.mediax.jai

Examples of com.lightcrafts.mediax.jai.OpImage$TCL


    public Rectangle mapSourceRect(Long id,
           Rectangle sourceRect,
           int sourceIndex) throws RemoteException {

  RenderedOp op = (RenderedOp)nodes.get(id);
  OpImage rendering = (OpImage)(op.getRendering());
  return rendering.mapSourceRect(sourceRect, sourceIndex);
    }
View Full Code Here


     */
    public Rectangle mapDestRect(Long id, Rectangle destRect, int sourceIndex)
  throws RemoteException {

  RenderedOp op = (RenderedOp)nodes.get(id);
  OpImage rendering = (OpImage)(op.getRendering());
  return rendering.mapDestRect(destRect, sourceIndex);
    }
View Full Code Here

                clazz = Class.forName(classname);
                Class params[] = {
                    Class.forName("com.lightcrafts.media.jai.opimage.OpImageTester")};
                createTestMethod = clazz.getMethod("createTestImage",params);
                Object methodArgs[] = {oit};
                OpImage o = (OpImage)createTestMethod.invoke(null,methodArgs);
    
                long total = benchmarkOpImage(o,10);
                total = benchmarkOpImage(o,10);
   
                int loops = (int)(15000/((double)total/10.0));
View Full Code Here

                int imMinY = trans.getMinY();

                // Translate image and return it
    // TranslateIntOpImage can't deal with ImageLayout hint
    if (layout == null) {
        OpImage intermediateImage =
                        new TranslateIntOpImage(trans,
                                                hints,
                                                rotMinX - imMinX,
                                                rotMinY - imMinY);
                    try {
View Full Code Here

                    // ignore the exception.
                    canAttemptRecovery = false;
                }
            }

            OpImage image = null;
            try {
                // Attempt to create an OpImage from the decoder image.
                image = new DisposableNullOpImage(dec.decodeAsRenderedImage(page),
                                                  layout,
                                                  renderHints,
                                                  bound);
            } catch(OutOfMemoryError memoryError) {
                // Ran out of memory - may be due to the decoder being
                // obliged to read the entire image when it creates the
                // RenderedImage it returns.
                if(canAttemptRecovery) {
                    // First flush the cache if one is defined.
                    TileCache cache = image != null ?
                        image.getTileCache() :
                        RIFUtil.getTileCacheHint(renderHints);
                    if(cache != null) {
                        cache.flush();
                    }
View Full Code Here

                int imMinY = trans.getMinY();

    // TranslateIntOpImage can't deal with ImageLayout hint
    if (layout == null) {
        // Translate image and return it
                    OpImage intermediateImage =
                        new TranslateIntOpImage(trans,
                                                renderHints,
                                                rotMinX - imMinX,
                                                rotMinY - imMinY);
                    try {
View Full Code Here

TOP

Related Classes of com.lightcrafts.mediax.jai.OpImage$TCL

Copyright © 2018 www.massapicom. 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.