@@ -50,28 +50,28 @@ fn encode_decode() {
5050 (
5151 Tag :: BitsPerSample ,
5252 ifd:: Value :: List ( vec![
53- ifd:: Value :: UnsignedBig ( 8 ) ,
54- ifd:: Value :: UnsignedBig ( 8 ) ,
55- ifd:: Value :: UnsignedBig ( 8 )
53+ ifd:: Value :: Short ( 8 ) ,
54+ ifd:: Value :: Short ( 8 ) ,
55+ ifd:: Value :: Short ( 8 )
5656 ] )
5757 ) ,
58- ( Tag :: Compression , ifd:: Value :: Unsigned ( 1 ) ) ,
59- ( Tag :: PhotometricInterpretation , ifd:: Value :: Unsigned ( 2 ) ) ,
58+ ( Tag :: Compression , ifd:: Value :: Short ( 1 ) ) ,
59+ ( Tag :: PhotometricInterpretation , ifd:: Value :: Short ( 2 ) ) ,
6060 ( Tag :: StripOffsets , ifd:: Value :: Unsigned ( 8 ) ) ,
61- ( Tag :: SamplesPerPixel , ifd:: Value :: Unsigned ( 3 ) ) ,
61+ ( Tag :: SamplesPerPixel , ifd:: Value :: Short ( 3 ) ) ,
6262 ( Tag :: RowsPerStrip , ifd:: Value :: Unsigned ( 3334 ) ) ,
6363 ( Tag :: StripByteCounts , ifd:: Value :: Unsigned ( 30000 ) ) ,
6464 ( Tag :: XResolution , ifd:: Value :: Rational ( 1 , 1 ) ) ,
6565 ( Tag :: YResolution , ifd:: Value :: Rational ( 1 , 1 ) ) ,
66- ( Tag :: ResolutionUnit , ifd:: Value :: Unsigned ( 1 ) ) ,
66+ ( Tag :: ResolutionUnit , ifd:: Value :: Short ( 1 ) ) ,
6767 ( Tag :: Artist , ifd:: Value :: Ascii ( "Image-tiff" . into( ) ) ) ,
68- ( Tag :: Predictor , ifd:: Value :: Unsigned ( 1 ) ) ,
68+ ( Tag :: Predictor , ifd:: Value :: Short ( 1 ) ) ,
6969 (
7070 Tag :: SampleFormat ,
7171 ifd:: Value :: List ( vec![
72- ifd:: Value :: UnsignedBig ( 1 ) ,
73- ifd:: Value :: UnsignedBig ( 1 ) ,
74- ifd:: Value :: UnsignedBig ( 1 )
72+ ifd:: Value :: Short ( 1 ) ,
73+ ifd:: Value :: Short ( 1 ) ,
74+ ifd:: Value :: Short ( 1 )
7575 ] )
7676 ) ,
7777 ]
@@ -135,17 +135,17 @@ fn encode_decode_big() {
135135 ifd:: Value :: Short ( 8 )
136136 ] )
137137 ) ,
138- ( Tag :: Compression , ifd:: Value :: Unsigned ( 1 ) ) ,
139- ( Tag :: PhotometricInterpretation , ifd:: Value :: Unsigned ( 2 ) ) ,
138+ ( Tag :: Compression , ifd:: Value :: Short ( 1 ) ) ,
139+ ( Tag :: PhotometricInterpretation , ifd:: Value :: Short ( 2 ) ) ,
140140 ( Tag :: StripOffsets , ifd:: Value :: UnsignedBig ( 16 ) ) ,
141- ( Tag :: SamplesPerPixel , ifd:: Value :: Unsigned ( 3 ) ) ,
141+ ( Tag :: SamplesPerPixel , ifd:: Value :: Short ( 3 ) ) ,
142142 ( Tag :: RowsPerStrip , ifd:: Value :: Unsigned ( 3334 ) ) ,
143143 ( Tag :: StripByteCounts , ifd:: Value :: UnsignedBig ( 30000 ) ) ,
144144 ( Tag :: XResolution , ifd:: Value :: Rational ( 1 , 1 ) ) ,
145145 ( Tag :: YResolution , ifd:: Value :: Rational ( 1 , 1 ) ) ,
146- ( Tag :: ResolutionUnit , ifd:: Value :: Unsigned ( 1 ) ) ,
146+ ( Tag :: ResolutionUnit , ifd:: Value :: Short ( 1 ) ) ,
147147 ( Tag :: Artist , ifd:: Value :: Ascii ( "Image-tiff" . into( ) ) ) ,
148- ( Tag :: Predictor , ifd:: Value :: Unsigned ( 1 ) ) ,
148+ ( Tag :: Predictor , ifd:: Value :: Short ( 1 ) ) ,
149149 (
150150 Tag :: SampleFormat ,
151151 ifd:: Value :: List ( vec![
0 commit comments