@classmethod<EOL><INDENT>def parse(cls, fptr, offset, length):<DEDENT>
nbytes = length - <NUM_LIT:8><EOL>data = fptr.read(nbytes)<EOL>bpc = tuple(((x & <NUM_LIT>) + <NUM_LIT:1>) for x in bytearray(data))<EOL>signed = tuple(((x & <NUM_LIT>) > <NUM_LIT:0>) for x in bytearray(data))<EOL>return cls(bpc, signed, length=length, offset=offset)<EOL>
Parse bits per component box.

        Parameters
        ----------
        fptr : file
            Open file object.
        offset : int
            Start position of box in bytes.
        length : int
            Length of the box in bytes.

        Returns
        -------
        BitsPerComponent
            Instance of the current bits per component box.