Search in sources :

Example 1 with ChannelDefinitionBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox in project bioformats by ome.

the class FileFormatReader method readChannelDefinitionBox.

/**
 * This method reads the Channel Definition box
 *
 * @exception java.io.IOException If an I/O error ocurred.
 */
public void readChannelDefinitionBox(int length) throws IOException {
    int num = in.readShort();
    channels = new short[num];
    cType = new short[num];
    associations = new short[num];
    for (int i = 0; i < num; i++) {
        channels[i] = in.readShort();
        cType[i] = in.readShort();
        associations[i] = in.readShort();
    }
    if (metadata != null) {
        metadata.addNode(new ChannelDefinitionBox(channels, cType, associations));
    }
}
Also used : ChannelDefinitionBox(com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox)

Example 2 with ChannelDefinitionBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox in project bioformats by openmicroscopy.

the class FileFormatReader method readChannelDefinitionBox.

/**
 * This method reads the Channel Definition box
 *
 * @exception java.io.IOException If an I/O error ocurred.
 */
public void readChannelDefinitionBox(int length) throws IOException {
    int num = in.readShort();
    channels = new short[num];
    cType = new short[num];
    associations = new short[num];
    for (int i = 0; i < num; i++) {
        channels[i] = in.readShort();
        cType[i] = in.readShort();
        associations[i] = in.readShort();
    }
    if (metadata != null) {
        metadata.addNode(new ChannelDefinitionBox(channels, cType, associations));
    }
}
Also used : ChannelDefinitionBox(com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox)

Aggregations

ChannelDefinitionBox (com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox)2