Search in sources :

Example 1 with ComponentMappingBox

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

the class FileFormatReader method readComponentMappingBox.

/**
 * Read the component mapping channel.
 */
public void readComponentMappingBox(int length) throws IOException {
    int num = length / 4;
    comps = new short[num];
    type = new byte[num];
    maps = new byte[num];
    for (int i = 0; i < num; i++) {
        comps[i] = in.readShort();
        type[i] = in.readByte();
        maps[i] = in.readByte();
    }
    if (metadata != null) {
        metadata.addNode(new ComponentMappingBox(comps, type, maps));
    }
}
Also used : ComponentMappingBox(com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox)

Example 2 with ComponentMappingBox

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

the class FileFormatReader method readComponentMappingBox.

/**
 * Read the component mapping channel.
 */
public void readComponentMappingBox(int length) throws IOException {
    int num = length / 4;
    comps = new short[num];
    type = new byte[num];
    maps = new byte[num];
    for (int i = 0; i < num; i++) {
        comps[i] = in.readShort();
        type[i] = in.readByte();
        maps[i] = in.readByte();
    }
    if (metadata != null) {
        metadata.addNode(new ComponentMappingBox(comps, type, maps));
    }
}
Also used : ComponentMappingBox(com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox)

Aggregations

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