code: def RDcurv(s):
      
      # See [ICC 2001] 6.5.3
      assert s[0:4] == 'curv'
      count, = struct.unpack('>L', s[8:12])
      if count == 0:
          return dict(gamma=1)
      table = struct.unpack('>%dH' % count, s[12:])
      if count == 1:
          return dict(gamma=table[0] * 2 ** -8)
      return table
docs: Convert ICC curveType.