pub const MAX_SAMPLED_INPUTS: usize = 8;Expand description
Maximum input dimensionality of a type 0 sampled function — pdfcer policy, explicitly permitted by the spec.
§7.10.2: “There shall be no dimensionality limit of a sampled function except for possible implementation limits.” That clause grants the limit; it does not set it.
Eight is chosen from the cost of the evaluation itself. Multilinear
interpolation reads 2^m table corners per evaluation — 256 at m = 8, 65,536
at m = 16 — and a DeviceN image runs the transform once per pixel, so the
exponent is multiplied by megapixels. The spec’s own illustration of an
expensive case is a six-component hexachrome DeviceN, which fits.