CSJ2K.Color.Boxes.ChannelDefinitionBox.readBox C# (CSharp) Method

readBox() private method

Analyze the box content.
private readBox ( ) : void
return void
        private void readBox()
        {
            byte[] bfr = new byte[8];

            in_Renamed.seek(dataStart);
            in_Renamed.readFully(bfr, 0, 2);
            ndefs = ICCProfile.getShort(bfr, 0) & 0x0000ffff;

            int offset = dataStart + 2;
            in_Renamed.seek(offset);
            for (int i = 0; i < ndefs; ++i)
            {
                in_Renamed.readFully(bfr, 0, 6);
                int channel = ICCProfile.getShort(bfr, 0);
                int[] channel_def = new int[3];
                channel_def[0] = getCn(bfr);
                channel_def[1] = getTyp(bfr);
                channel_def[2] = getAsoc(bfr);
                definitions[(System.Int32) channel_def[0]] = channel_def;
            }
        }