diff --git a/crates/doc/src/cmyk.rs b/crates/doc/src/cmyk.rs index 2c957d5779..6b72f77a67 100644 --- a/crates/doc/src/cmyk.rs +++ b/crates/doc/src/cmyk.rs @@ -283,11 +283,11 @@ fn row_buffer(d: &mut tiff::decoder::Decoder( mut d: tiff::decoder::Decoder, file: usize, @@ -724,12 +724,12 @@ pub fn turned_cmyk(bytes: &[u8], orientation: image::metadata::Orientation, ppi: /// converted at 16 bits, and only the result is rounded to 8 bits. The samples may be stored /// together or one plane per channel. A CMYK file with two or more samples past its inks and its /// ExtraSamples values (or with no ExtraSamples tag) is read too, opaque when none of those values -/// names an alpha. `None` for other images, -/// CMYK ones without alpha (their inks are read by [`ImageBlob::cmyk`]), ones larger than -/// [`MAX_CMYK_PIXELS`], ones whose SamplesPerPixel is more than [`MAX_EXTRA_SAMPLES_PIXEL`], ones -/// whose samples aren't unsigned integers (a SampleFormat other than 1) and ones whose samples, with the copy a planar file needs, the row the decoder reads each strip or -/// tile into and the RGBA pixels, take more than [`crate::MAX_RASTER_ALLOC`]; those are refused -/// from the file's tags, before any decoding. +/// names an alpha. `None` for other images, CMYK ones without alpha (their inks are read by +/// [`ImageBlob::cmyk`]), ones larger than [`MAX_CMYK_PIXELS`], ones whose SamplesPerPixel is more +/// than [`MAX_EXTRA_SAMPLES_PIXEL`], ones whose samples aren't unsigned integers (a SampleFormat +/// other than 1) and ones whose samples, with the copy a planar file needs, the row the decoder +/// reads each strip or tile into and the RGBA pixels, take more than [`crate::MAX_RASTER_ALLOC`]; +/// those are refused from the file's tags, before any decoding. pub fn extra_samples_tiff_rgba(bytes: &[u8], rgb: impl Fn([f32; 4]) -> [f32; 3]) -> Option { use tiff::tags::Tag; let mut d = tiff_decoder(bytes)?;