Package com.sun.media.jai.codecimpl.util

Examples of com.sun.media.jai.codecimpl.util.FloatDoubleColorModel


        default:
            throw new IllegalArgumentException();
        }

        if(dataType == DataBuffer.TYPE_FLOAT) {
            ccm = new FloatDoubleColorModel(cs,
                                            true,
                                            isAlphaPremultiplied,
                                            transparency,
                                            dataType);
        } else { // all other types
View Full Code Here


                   bands >= 1 && bands <= 4) {
            ColorSpace cs = bands <= 2 ?
                ColorSpace.getInstance(ColorSpace.CS_GRAY) :
                ColorSpace.getInstance(ColorSpace.CS_sRGB);
            boolean hasAlpha = bands % 2 == 0;
            cm = new FloatDoubleColorModel(cs, hasAlpha, false,
                                           hasAlpha ?
                                           Transparency.TRANSLUCENT :
                                           Transparency.OPAQUE,
                                           DataBuffer.TYPE_FLOAT);
        }
View Full Code Here

            }
        }

        if (type == DataBuffer.TYPE_FLOAT &&
                   bands >= 1 && bands <= 4) {
            cm = new FloatDoubleColorModel(cp, hasAlpha, false,
                                           transparency,
                                           DataBuffer.TYPE_FLOAT);
        } else {
            cm = new ComponentColorModel(cp, bits, hasAlpha,
                                         false, transparency, transferType);
View Full Code Here

/*      */     default:
/* 2022 */       throw new IllegalArgumentException();
/*      */     }
/*      */
/* 2025 */     if (dataType == 4) {
/* 2026 */       ccm = new FloatDoubleColorModel(cs, true, isAlphaPremultiplied, transparency, dataType);
/*      */     }
/*      */     else
/*      */     {
/* 2032 */       int componentSize = 0;
/* 2033 */       switch (dataType) {
View Full Code Here

/* 704 */     else if ((type == 4) && (bands >= 1) && (bands <= 4))
/*     */     {
/* 706 */       ColorSpace cs = bands <= 2 ? ColorSpace.getInstance(1003) : ColorSpace.getInstance(1000);
/*     */
/* 709 */       boolean hasAlpha = bands % 2 == 0;
/* 710 */       cm = new FloatDoubleColorModel(cs, hasAlpha, false, hasAlpha ? 3 : 1, 4);
/*     */     }
/*     */
/* 717 */     return cm;
/*     */   }
View Full Code Here

/*     */
/*     */     }
/*     */
/* 794 */     if ((type == 4) && (bands >= 1) && (bands <= 4))
/*     */     {
/* 796 */       cm = new FloatDoubleColorModel(cp, hasAlpha, false, transparency, 4);
/*     */     }
/*     */     else
/*     */     {
/* 800 */       cm = new ComponentColorModel(cp, bits, hasAlpha, false, transparency, transferType);
/*     */     }
View Full Code Here

                    dataType);
        case DataBuffer.TYPE_INT:
            return new ComponentColorModel(cs, bits, useAlpha, premultiplied, transparency,
                    dataType);
        case DataBuffer.TYPE_FLOAT:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        case DataBuffer.TYPE_DOUBLE:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        default:
            throw new IllegalArgumentException("Wrong data type used");
        }
    }
View Full Code Here

                    dataType);
        case DataBuffer.TYPE_INT:
            return new ComponentColorModel(cs, bits, useAlpha, premultiplied, transparency,
                    dataType);
        case DataBuffer.TYPE_FLOAT:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        case DataBuffer.TYPE_DOUBLE:
            return new FloatDoubleColorModel(cs, useAlpha, premultiplied, transparency, dataType);
        default:
            throw new IllegalArgumentException("Wrong data type used");
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.media.jai.codecimpl.util.FloatDoubleColorModel

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.