Examples of unsetValid()


Examples of javax.media.jai.ImageLayout.unsetValid()

/* 155 */       il.setSampleModel(sm);
/*     */
/* 158 */       ColorModel cm = il.getColorModel(null);
/* 159 */       if ((cm != null) && (!JDKWorkarounds.areCompatibleDataModels(sm, cm)))
/*     */       {
/* 162 */         il.unsetValid(512);
/*     */       }
/*     */     }
/*     */
/* 166 */     return il;
/*     */   }
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        // Tile Size
        if(hints.containsKey(JAI.KEY_IMAGE_LAYOUT)){
            final ImageLayout layout= (ImageLayout) hints.get(JAI.KEY_IMAGE_LAYOUT);
//            // only tiles are valid at this stage?? TODO
            layout.unsetImageBounds();
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK&ImageLayout.SAMPLE_MODEL_MASK);
        }
        // this prevents users from overriding lenient hint
        this.hints.put(Hints.LENIENT_DATUM_SHIFT, Boolean.TRUE);
        this.hints.put(Hints.COVERAGE_PROCESSING_VIEW, ViewType.SAME);
       
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        // Selection of a colormodel associated with the layout
        ColorModel cm = layout.getColorModel(null);

        if (cm != null && !JDKWorkarounds.areCompatibleDataModels(sm, cm)) {
            // Clear the mask bit if incompatible.
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
        }

        if ((cm == null || !cm.hasAlpha()) && sm instanceof ComponentSampleModel) {
            cm = getDefaultColorModel(sm);
            layout.setColorModel(cm);
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        // Selection of a colormodel associated with the layout
        ColorModel cm = layout.getColorModel(null);

        if (cm != null && !JDKWorkarounds.areCompatibleDataModels(sm, cm)) {
            // Clear the mask bit if incompatible.
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
        }

        if ((cm == null || !cm.hasAlpha()) && sm instanceof ComponentSampleModel) {
            cm = getDefaultColorModel(sm);
            layout.setColorModel(cm);
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

    // a the possibility to expand the color model.
    if (strategy != ViewType.PHOTOGRAPHIC)
      targetHints.add(ImageUtilities.DONT_REPLACE_INDEX_COLOR_MODEL);
    else {
      targetHints.add(ImageUtilities.REPLACE_INDEX_COLOR_MODEL);
      layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
      layout.unsetValid(ImageLayout.SAMPLE_MODEL_MASK);
    }
 
    // /////////////////////////////////////////////////////////////////////
    //
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

    if (strategy != ViewType.PHOTOGRAPHIC)
      targetHints.add(ImageUtilities.DONT_REPLACE_INDEX_COLOR_MODEL);
    else {
      targetHints.add(ImageUtilities.REPLACE_INDEX_COLOR_MODEL);
      layout.unsetValid(ImageLayout.COLOR_MODEL_MASK);
      layout.unsetValid(ImageLayout.SAMPLE_MODEL_MASK);
    }
 
    // /////////////////////////////////////////////////////////////////////
    //
    // Creating final grid coverage.
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

         * Boolean.TRUE is not enough to force the operators to do an expansion. If we explicitly
         * provide an ImageLayout built with the source image where the CM and the SM are valid.
         * those will be employed overriding a the possibility to expand the color model.
         */
        if (ViewType.PHOTOGRAPHIC.equals(processingView)) {
            layout.unsetValid(ImageLayout.COLOR_MODEL_MASK | ImageLayout.SAMPLE_MODEL_MASK);
        }
        targetHints.put(JAI.KEY_IMAGE_LAYOUT, layout);

        ////////////////////////////////////////////////////////////////////////////////////////
        ////                                                                                ////
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        ImageLayout layout = null;
        // Check on the ImageLayout
        if (layoutOld != null) {
            layout = (ImageLayout) layoutOld.clone();
            // Unset the previous dimension parameters
            layout.unsetValid(ImageLayout.MIN_X_MASK);
            layout.unsetValid(ImageLayout.MIN_Y_MASK);
            layout.unsetValid(ImageLayout.WIDTH_MASK);
            layout.unsetValid(ImageLayout.HEIGHT_MASK);
        } else {
            // Create a new one
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        // Check on the ImageLayout
        if (layoutOld != null) {
            layout = (ImageLayout) layoutOld.clone();
            // Unset the previous dimension parameters
            layout.unsetValid(ImageLayout.MIN_X_MASK);
            layout.unsetValid(ImageLayout.MIN_Y_MASK);
            layout.unsetValid(ImageLayout.WIDTH_MASK);
            layout.unsetValid(ImageLayout.HEIGHT_MASK);
        } else {
            // Create a new one
            layout = new ImageLayout2();
View Full Code Here

Examples of javax.media.jai.ImageLayout.unsetValid()

        if (layoutOld != null) {
            layout = (ImageLayout) layoutOld.clone();
            // Unset the previous dimension parameters
            layout.unsetValid(ImageLayout.MIN_X_MASK);
            layout.unsetValid(ImageLayout.MIN_Y_MASK);
            layout.unsetValid(ImageLayout.WIDTH_MASK);
            layout.unsetValid(ImageLayout.HEIGHT_MASK);
        } else {
            // Create a new one
            layout = new ImageLayout2();
        }
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.