@@ -4,9 +4,7 @@ use crate::decoder::DecoderRegistry;
44use crate :: error:: AsyncTiffResult ;
55use crate :: predictor:: { FloatingPointPredictor , HorizontalPredictor , NoPredictor , Unpredict } ;
66use crate :: reader:: Endianness ;
7- use crate :: tiff:: tags:: {
8- CompressionMethod , PhotometricInterpretation , PlanarConfiguration , Predictor ,
9- } ;
7+ use crate :: tiff:: tags:: { CompressionMethod , PhotometricInterpretation , Predictor } ;
108use crate :: tiff:: { TiffError , TiffUnsupportedError } ;
119
1210/// All info that may be used by a predictor
@@ -36,10 +34,6 @@ pub(crate) struct PredictorInfo {
3634 pub ( crate ) bits_per_sample : u16 ,
3735 /// number of samples per pixel
3836 pub ( crate ) samples_per_pixel : u16 ,
39- /// planar configuration
40- ///
41- /// determines the bits per pixel
42- pub ( crate ) planar_configuration : PlanarConfiguration ,
4337}
4438
4539impl PredictorInfo {
@@ -257,7 +251,7 @@ impl Tile {
257251
258252#[ cfg( test) ]
259253mod test {
260- use crate :: { reader:: Endianness , tiff :: tags :: PlanarConfiguration } ;
254+ use crate :: reader:: Endianness ;
261255
262256 use super :: PredictorInfo ;
263257
@@ -271,7 +265,6 @@ mod test {
271265 chunk_height : 8 ,
272266 bits_per_sample : 8 ,
273267 samples_per_pixel : 1 ,
274- planar_configuration : PlanarConfiguration :: Chunky ,
275268 } ;
276269 assert_eq ! ( info. chunks_across( ) , 2 ) ;
277270 assert_eq ! ( info. chunks_down( ) , 3 ) ;
0 commit comments