/** 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)); } }
maps[i] = (byte)i; addNode(new ComponentMappingBox(channels, types, maps));