Debian Codegraph @

tests/encode_images_with_compression.rs

raw symbols SCIP
1 extern crate tiffrust-analyzer cargo tiff 0.11.3 tiff/;
2
3 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::{Cursorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/cursor/Cursor#, Seekrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Seek#, Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#};
4 use tiffrust-analyzer cargo tiff 0.11.3 crate/::{
5 decoderrust-analyzer cargo tiff 0.11.3 decoder/::{Decoderrust-analyzer cargo tiff 0.11.3 decoder/Decoder#, DecodingResultrust-analyzer cargo tiff 0.11.3 decoder/DecodingResult#},
6 encoderrust-analyzer cargo tiff 0.11.3 encoder/::{
7 colortyperust-analyzer cargo tiff 0.11.3 encoder/colortype/::{selfrust-analyzer cargo tiff 0.11.3 encoder/colortype/, ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#},
8 compressionrust-analyzer cargo tiff 0.11.3 encoder/compression/::*,
9 Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#, TiffEncoderrust-analyzer cargo tiff 0.11.3 encoder/TiffEncoder#, TiffValuerust-analyzer cargo tiff 0.11.3 encoder/tiff_value/TiffValue#,
10 },
11 };
12
13 trait TestImagerust-analyzer cargo tiff 0.11.3 TestImage#<const NUM_CHANNELS: usize>: Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<<Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#>> {
14 const WIDTHrust-analyzer cargo tiff 0.11.3 TestImage#WIDTH.: u32;
15 const HEIGHTrust-analyzer cargo tiff 0.11.3 TestImage#HEIGHT.: u32;
16 type Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color#: ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#;
17
18 fn reference_datarust-analyzer cargo tiff 0.11.3 TestImage#reference_data().(&self) -> &[<Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#];
19 fn generate_pixelrust-analyzer cargo tiff 0.11.3 TestImage#generate_pixel().(x: u32, y: u32) -> [<Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#; NUM_CHANNELS];
20
21 fn compressrust-analyzer cargo tiff 0.11.3 TestImage#compress().<W: Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write# + Seekrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Seek#>(&self, encoder: &mut TiffEncoderrust-analyzer cargo tiff 0.11.3 encoder/TiffEncoder#<W>)
22 where
23 [<Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#]: TiffValuerust-analyzer cargo tiff 0.11.3 encoder/tiff_value/TiffValue#,
24 {
25 let image = encoder
26 .new_imagerust-analyzer cargo tiff 0.11.3 encoder/impl#[`TiffEncoder<W, K>`]new_image().::<Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color#>(Self::WIDTHrust-analyzer cargo tiff 0.11.3 TestImage#WIDTH., Self::HEIGHTrust-analyzer cargo tiff 0.11.3 TestImage#HEIGHT.)
27 .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
28 image.write_datarust-analyzer cargo tiff 0.11.3 encoder/impl#[`ImageEncoder<'a, W, T, K>`]write_data().(self.reference_datarust-analyzer cargo tiff 0.11.3 TestImage#reference_data().()).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
29 }
30
31 fn generaterust-analyzer cargo tiff 0.11.3 TestImage#generate().() -> Self {
32 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(
33 Self::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color#::BITS_PER_SAMPLErust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#BITS_PER_SAMPLE..lenrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]len().(),
34 NUM_CHANNELS,
35 "Incompatible color type"
36 );
37
38 let mut data = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::with_capacityrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]with_capacity().((Self::WIDTHrust-analyzer cargo tiff 0.11.3 TestImage#WIDTH. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().Self::HEIGHTrust-analyzer cargo tiff 0.11.3 TestImage#HEIGHT.) as usize rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul().NUM_CHANNELS);
39 for x in 0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#Self::WIDTHrust-analyzer cargo tiff 0.11.3 TestImage#WIDTH. {
40 for y in 0..rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/range/Range#Self::HEIGHTrust-analyzer cargo tiff 0.11.3 TestImage#HEIGHT. {
41 data.extendrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`][`Extend<T>`]extend().(IntoIteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#::into_iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/iter/impl#[`[T; N]`][IntoIterator]into_iter().(Self::generate_pixelrust-analyzer cargo tiff 0.11.3 TestImage#generate_pixel().(x, y)));
42 }
43 }
44 Self::fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#from().(data)
45 }
46 }
47
48 struct TestImageColorrust-analyzer cargo tiff 0.11.3 TestImageColor#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u16>);
49
50 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u16>> for TestImageColorrust-analyzer cargo tiff 0.11.3 TestImageColor# {
51 fn fromrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`From<Vec<u16>>`]from().(value: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u16>) -> Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`From<Vec<u16>>`] {
52 Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`From<Vec<u16>>`](value)
53 }
54 }
55
56 impl TestImagerust-analyzer cargo tiff 0.11.3 TestImage#<3> for TestImageColorrust-analyzer cargo tiff 0.11.3 TestImageColor# {
57 const WIDTHrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]WIDTH.: u32 = 1;
58 const HEIGHTrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]HEIGHT.: u32 = 7;
59 type Colorrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]Color# = colortyperust-analyzer cargo tiff 0.11.3 encoder/colortype/::RGB16rust-analyzer cargo tiff 0.11.3 encoder/colortype/RGB16#;
60
61 fn reference_datarust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]reference_data().(&self) -> &[u16] {
62 &self.0rust-analyzer cargo tiff 0.11.3 TestImageColor#0.
63 }
64
65 fn generate_pixelrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]generate_pixel().(x: u32, y: u32) -> [<Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#; 3] {
66 let val = (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().y) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem().%rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem().<Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u16]MAX. as u32;
67 [val as <Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#; 3]
68 }
69 }
70
71 struct TestImageGrayscalerust-analyzer cargo tiff 0.11.3 TestImageGrayscale#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>);
72
73 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>> for TestImageGrayscalerust-analyzer cargo tiff 0.11.3 TestImageGrayscale# {
74 fn fromrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`From<Vec<u8>>`]from().(value: Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>) -> Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`From<Vec<u8>>`] {
75 Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`From<Vec<u8>>`](value)
76 }
77 }
78
79 impl TestImagerust-analyzer cargo tiff 0.11.3 TestImage#<1> for TestImageGrayscalerust-analyzer cargo tiff 0.11.3 TestImageGrayscale# {
80 const WIDTHrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]WIDTH.: u32 = 21;
81 const HEIGHTrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]HEIGHT.: u32 = 10;
82 type Colorrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]Color# = colortyperust-analyzer cargo tiff 0.11.3 encoder/colortype/::Gray8rust-analyzer cargo tiff 0.11.3 encoder/colortype/Gray8#;
83
84 fn reference_datarust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]reference_data().(&self) -> &[u8] {
85 &self.0rust-analyzer cargo tiff 0.11.3 TestImageGrayscale#0.
86 }
87
88 fn generate_pixelrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]generate_pixel().(x: u32, y: u32) -> [<Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#; 1] {
89 let val = (x rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().y) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem().%rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Rem<Self>`]rem().<Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#::MAXrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]MAX. as u32;
90 [val as <Selfrust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]::Colorrust-analyzer cargo tiff 0.11.3 TestImage#Color# as ColorTyperust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#>::Innerrust-analyzer cargo tiff 0.11.3 encoder/colortype/ColorType#Inner#]
91 }
92 }
93
94 fn encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(compression: Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#) {
95 let mut data = Cursorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/cursor/Cursor#::newrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/cursor/impl#[`Cursor<T>`]new().(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().());
96
97 let image_rgb = TestImageColorrust-analyzer cargo tiff 0.11.3 TestImageColor#::generaterust-analyzer cargo tiff 0.11.3 TestImage#generate().();
98 let image_grayscale = TestImageGrayscalerust-analyzer cargo tiff 0.11.3 TestImageGrayscale#::generaterust-analyzer cargo tiff 0.11.3 TestImage#generate().();
99
100 // Encode tiff with compression
101 {
102 // Create a multipage image with 2 images
103 let mut encoder = TiffEncoderrust-analyzer cargo tiff 0.11.3 encoder/TiffEncoder#::newrust-analyzer cargo tiff 0.11.3 encoder/impl#[`TiffEncoder<W>`]new().(&mut data)
104 .unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().()
105 .with_compressionrust-analyzer cargo tiff 0.11.3 encoder/impl#[`TiffEncoder<W, K>`]with_compression().(compression);
106 image_rgb.compressrust-analyzer cargo tiff 0.11.3 TestImage#compress().(&mut encoder);
107 image_grayscale.compressrust-analyzer cargo tiff 0.11.3 TestImage#compress().(&mut encoder);
108 }
109
110 // Decode tiff
111 data.set_positionrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/cursor/impl#[`Cursor<T>`]set_position().(0);
112 {
113 let mut decoder = Decoderrust-analyzer cargo tiff 0.11.3 decoder/Decoder#::newrust-analyzer cargo tiff 0.11.3 decoder/impl#[`Decoder<R>`]new().(data).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
114
115 // Check the RGB image
116 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(
117 match decoder.read_imagerust-analyzer cargo tiff 0.11.3 decoder/impl#[`Decoder<R>`]read_image().() {
118 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(DecodingResultrust-analyzer cargo tiff 0.11.3 decoder/DecodingResult#::U16rust-analyzer cargo tiff 0.11.3 decoder/DecodingResult#U16#(image_data)) => image_data,
119 unexpected => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("Descoding RGB failed: {unexpected:?}"),
120 },
121 image_rgb.reference_datarust-analyzer cargo tiff 0.11.3 impl#[TestImageColor][`TestImage<3>`]reference_data().()
122 );
123
124 // Check the grayscale image
125 decoder.next_imagerust-analyzer cargo tiff 0.11.3 decoder/impl#[`Decoder<R>`]next_image().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
126 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(
127 match decoder.read_imagerust-analyzer cargo tiff 0.11.3 decoder/impl#[`Decoder<R>`]read_image().() {
128 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(DecodingResultrust-analyzer cargo tiff 0.11.3 decoder/DecodingResult#::U8rust-analyzer cargo tiff 0.11.3 decoder/DecodingResult#U8#(image_data)) => image_data,
129 unexpected => panicrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/panic!!("Decoding grayscale failed: {unexpected:?}"),
130 },
131 image_grayscale.reference_datarust-analyzer cargo tiff 0.11.3 impl#[TestImageGrayscale][`TestImage<1>`]reference_data().()
132 );
133 }
134 }
135
136 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
137 fn encode_decode_without_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_without_compression().() {
138 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Uncompressedrust-analyzer cargo tiff 0.11.3 encoder/Compression#Uncompressed#);
139 }
140
141 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
142 #[cfg(feature = "lzw")]
143 fn encode_decode_with_lzwrust-analyzer cargo tiff 0.11.3 encode_decode_with_lzw().() {
144 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Lzwrust-analyzer cargo tiff 0.11.3 encoder/Compression#Lzw#);
145 }
146
147 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
148 #[cfg(feature = "deflate")]
149 fn encode_decode_with_deflaterust-analyzer cargo tiff 0.11.3 encode_decode_with_deflate().() {
150 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Deflaterust-analyzer cargo tiff 0.11.3 encoder/Compression#Deflate#(DeflateLevelrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#::Fastrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#Fast#));
151 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Deflaterust-analyzer cargo tiff 0.11.3 encoder/Compression#Deflate#(DeflateLevelrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#::Balancedrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#Balanced#));
152 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Deflaterust-analyzer cargo tiff 0.11.3 encoder/Compression#Deflate#(DeflateLevelrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#::Bestrust-analyzer cargo tiff 0.11.3 encoder/compression/deflate/DeflateLevel#Best#));
153 }
154
155 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
156 fn encode_decode_with_packbitsrust-analyzer cargo tiff 0.11.3 encode_decode_with_packbits().() {
157 encode_decode_with_compressionrust-analyzer cargo tiff 0.11.3 encode_decode_with_compression().(Compressionrust-analyzer cargo tiff 0.11.3 encoder/Compression#::Packbitsrust-analyzer cargo tiff 0.11.3 encoder/Compression#Packbits#);
158 }