/** Read the bits per component. */ public void readBitsPerComponentBox(int length)throws IOException { bitDepths = new byte[length]; in.readFully(bitDepths, 0, length); if (metadata != null) { metadata.addNode(new BitsPerComponentBox(bitDepths)); } }
byte[] bits = bitDepth.getBitDepth(); if ((bits[0] & 0x80) == 0x80) signed = true;