Examples of channels()


Examples of ca.eandb.jmist.framework.loader.openexr.attribute.ChannelList.channels()

        ByteBuffer inBuf = ByteBuffer.wrap(buf.getData(), buf.getOffset(), buf.getLength())
            .order(ByteOrder.LITTLE_ENDIAN);

        for (int y = y0; y <= y1; y++) {
          for (Channel channel : chlist.channels()) {
            String name = channel.getName();
            int sx = channel.getxSampling();
            int sy = channel.getySampling();

            if ((y % sy) == 0) {
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.ChannelList.channels()

    int y0 = tile.getYMin();
    int x1 = tile.getXMax();
    int y1 = tile.getYMax();

    int size = 0;
    for (Channel channel : chlist.channels()) {
      PixelType type = channel.getPixelType();
      int sx = channel.getxSampling();
      int sy = channel.getySampling();
      int nx = 1 + (x1 - x0 - (x1 % sx)) / sx;
      int ny = 1 + (y1 - y0 - (y1 % sy)) / sy;
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.ChannelList.channels()

    ChannelList chlist = getChannelList();
    int tw = tileSize.getX();
    int th = tileSize.getY();

    int size = 0;
    for (Channel channel : chlist.channels()) {
      PixelType type = channel.getPixelType();
      int sx = channel.getxSampling();
      int sy = channel.getySampling();
      int nx = 1 + (tw - 1) / sx;
      int ny = 1 + (th - 1) / sy;
View Full Code Here

Examples of ca.eandb.jmist.framework.loader.openexr.attribute.ChannelList.channels()

      int y1 = Math.min(y0 + cm.getScanLinesPerBlock() - 1, dw.getYMax());
      Box2i block = new Box2i(x0, y0, x1, y1);
      int blockSize = computeTileSize(block);

      for (int y = y0; y <= y1; y++) {
        for (Channel channel : chlist.channels()) {
          String name = channel.getName();
          int sx = channel.getxSampling();
          int sy = channel.getySampling();
          if (y % sy == 0) {
            int nx = 1 + (x1 - x0 - (x1 % sx)) / sx;
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

    EODatabaseContext dbc = EODatabaseContext.Factory.newDatabaseContextForDatabase(EODatabase.Factory.newDatabaseForModel(_model));
    EOAdaptorContext ac = dbc.adaptorContext();
    EOSynchronizationFactory sf = ((JDBCAdaptor) ac.adaptor()).plugIn().synchronizationFactory();

    NSMutableArray beforeOpenChannels = new NSMutableArray();
    Enumeration beforeChannelsEnum = ac.channels().objectEnumerator();
    while (beforeChannelsEnum.hasMoreElements()) {
      EOAdaptorChannel channel = (EOAdaptorChannel) beforeChannelsEnum.nextElement();
      if (channel.isOpen()) {
        beforeOpenChannels.addObject(channel);
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

      sql = sql.replaceAll("CREATE TABLE ([^\\s(]+)\\(", "CREATE TABLE $1 (");
      sqlBuffer.append(sql);

      callModelProcessorMethodIfExists("processSQL", new Object[] { sqlBuffer, _model, _entities, flags });
    } finally {
      Enumeration afterChannelsEnum = ac.channels().objectEnumerator();
      while (afterChannelsEnum.hasMoreElements()) {
        EOAdaptorChannel channel = (EOAdaptorChannel) afterChannelsEnum.nextElement();
        if (channel.isOpen() && !beforeOpenChannels.containsObject(channel)) {
          channel.closeChannel();
        }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

    fixClassPath();
    EODatabaseContext databaseContext = EODatabaseContext.Factory.newDatabaseContextForDatabase(EODatabase.Factory.newDatabaseForModel(_model));
    EOAdaptorContext adaptorContext = databaseContext.adaptorContext();

    NSMutableArray beforeOpenChannels = new NSMutableArray();
    Enumeration beforeChannelsEnum = adaptorContext.channels().objectEnumerator();
    while (beforeChannelsEnum.hasMoreElements()) {
      EOAdaptorChannel channel = (EOAdaptorChannel) beforeChannelsEnum.nextElement();
      if (channel.isOpen()) {
        beforeOpenChannels.addObject(channel);
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

        if (!channelOpen) {
          adaptorChannel.closeChannel();
        }
      }
    } finally {
      Enumeration afterChannelsEnum = adaptorContext.channels().objectEnumerator();
      while (afterChannelsEnum.hasMoreElements()) {
        EOAdaptorChannel channel = (EOAdaptorChannel) afterChannelsEnum.nextElement();
        if (channel.isOpen() && !beforeOpenChannels.containsObject(channel)) {
          channel.closeChannel();
        }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

    EODatabaseContext dbc = new EODatabaseContext(new EODatabase(_model));
    EOAdaptorContext ac = dbc.adaptorContext();
    EOSynchronizationFactory sf = ((JDBCAdaptor) ac.adaptor()).plugIn().synchronizationFactory();

    NSMutableArray beforeOpenChannels = new NSMutableArray();
    Enumeration beforeChannelsEnum = ac.channels().objectEnumerator();
    while (beforeChannelsEnum.hasMoreElements()) {
      EOAdaptorChannel channel = (EOAdaptorChannel) beforeChannelsEnum.nextElement();
      if (channel.isOpen()) {
        beforeOpenChannels.addObject(channel);
      }
View Full Code Here

Examples of com.webobjects.eoaccess.EOAdaptorContext.channels()

      sql = sql.replaceAll("CREATE TABLE ([^\\s(]+)\\(", "CREATE TABLE $1 (");
      sqlBuffer.append(sql);

      callModelProcessorMethodIfExists("processSQL", new Object[] { sqlBuffer, _model, _entities, flags });
    } finally {
      Enumeration afterChannelsEnum = ac.channels().objectEnumerator();
      while (afterChannelsEnum.hasMoreElements()) {
        EOAdaptorChannel channel = (EOAdaptorChannel) afterChannelsEnum.nextElement();
        if (channel.isOpen() && !beforeOpenChannels.containsObject(channel)) {
          channel.closeChannel();
        }
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.