static isDefaultDecode(decode, numComps) {
    if (!Array.isArray(decode)) {
      return true;
    }
    if (numComps * 2 !== decode.length) {
      warn("The decode map is not the correct length");
      return true;
    }
    for (let i = 0, ii = decode.length; i < ii; i += 2) {
      if (decode[i] !== 0 || decode[i + 1] !== 1) {
        return false;
      }
    }
    return true;
  }
Checks if a decode map matches the default decode map for a color space.
This handles the general decode maps where there are two values per
component, e.g. [0, 1, 0, 1, 0, 1] for a RGB color.
This does not handle Lab, Indexed, or Pattern decode maps since they are
slightly different.
@param {Array} decode - Decode map (usually from an image).
@param {number} numComps - Number of components the color space has.