Browse Source

- adapted configs to new grammar

pull/4/head v0.2.0-beta
Andreas Romeyke 5 years ago
parent
commit
6dcc0d074a
  1. 4
      example_configs/cit_tiff-a_whitepaper.cfg
  2. 8
      example_configs/cit_tiff6_baseline_SLUB.cfg
  3. 8
      example_configs/cit_tiff6_baseline_SLUBrelaxed.cfg
  4. 8
      example_configs/cit_tiff6_legacy_SLUB.cfg
  5. 54
      example_configs/cit_tiff_baseline_minimal.cfg

4
example_configs/cit_tiff-a_whitepaper.cfg

@ -26,7 +26,7 @@
# 258 0102 BitsPerSample Number of bits per component.
##########################258; mandatory; logical_or(8,16)
# Bitonal is optional, grey & RGB is mandatory. If 262 AND 258 exist, then the values need to be in the specified range.
258; depends(262.2); only(8,8,8)
258; depends(262.2); ntupel(8,8,8)
#258; depends(262.2); only(16,16,16) # needs to be fixed in parser
258; depends(258.any); logical_or(4, 8)
@ -58,7 +58,7 @@
282; depends(296.any); range(300, 1200)
# 283 011B YResolution The number of pixels per ResolutionUnit in the ImageLength direction.
283; depends(206.any); range(300, 1200)
283; depends(296.any); range(300, 1200)
# 296 0128 ResolutionUnit The unit of measurement for XResolution and YResolution. 1 = No absolute unit of measurement. 2 = Inch. 3 = Centimeter. Default: 2
296; optional; any

8
example_configs/cit_tiff6_baseline_SLUB.cfg

@ -22,7 +22,7 @@
# 258 0102 BitsPerSample Number of bits per component.
##########################258; mandatory; logical_or(8,16)
# Bitonal is optional, grey & RGB is mandatory. If 262 AND 258 exist, then the values need to be in the specified range.
258; depends(262.2); only(8,8,8)
258; depends(262.2); logical_or(ntupel(8,8,8), ntupel(16,16,16))
258; optdepends(262.0); logical_or(1, 4, 8)
258; optdepends(262.1); logical_or(1, 4, 8)
258; depends(262.3); logical_or(4, 8)
@ -130,7 +130,7 @@
291; optdepends(262.1); any
# 297 PageNumber actual page, and total pagecount, the actual page count starts with 0; Recommended: 0, 1
297; optional; only(0,1)
297; optional; ntupel(0,1)
# 305 0131 Software Name and version number of the software package(s) used to create the image.
305; optional; regex("^[[:print:]]*$")
@ -177,10 +177,6 @@
# 338 0152 ExtraSamples Description of extra components.
#338; optional; range(0-2)
# 339 0153 SampleFormat This field specifies how to interpret each data sample in a pixel.
339; optdepends(277.1); only(1)
339; optdepends(277.3); only(1,1,1)
# 700 02BC XMP XML packet containing XMP metadata.
700; optional; any

8
example_configs/cit_tiff6_baseline_SLUBrelaxed.cfg

@ -22,7 +22,7 @@
# 258 0102 BitsPerSample Number of bits per component.
##########################258; mandatory; logical_or(8,16)
# Bitonal is optional, grey & RGB is mandatory. If 262 AND 258 exist, then the values need to be in the specified range.
258; depends(262.2); only(8,8,8)
258; depends(262.2); ntupel(8,8,8)
258; optdepends(262.0); logical_or(1, 4, 8)
258; optdepends(262.1); logical_or(1, 4, 8)
258; depends(262.3); logical_or(4, 8)
@ -130,7 +130,7 @@
291; optdepends(262.1); any
# 297 PageNumber actual page, and total pagecount, the actual page count starts with 0; Recommended: 0, 1
297; optional; only(0,1)
297; optional; ntupel(0,1)
# 305 0131 Software Name and version number of the software package(s) used to create the image.
305; optional; regex("^[[:print:]]*$")
@ -177,10 +177,6 @@
# 338 0152 ExtraSamples Description of extra components.
#338; optional; range(0-2)
# 339 0153 SampleFormat This field specifies how to interpret each data sample in a pixel.
339; optdepends(277.1); only(1)
339; optdepends(277.3); only(1,1,1)
# 700 02BC XMP XML packet containing XMP metadata.
700; optional; any

8
example_configs/cit_tiff6_legacy_SLUB.cfg

@ -22,7 +22,7 @@
# 258 0102 BitsPerSample Number of bits per component.
##########################258; mandatory; logical_or(8,16)
# Bitonal is optional, grey & RGB is mandatory. If 262 AND 258 exist, then the values need to be in the specified range.
258; depends(262.2); only(8,8,8)
258; depends(262.2); ntupel(8,8,8)
258; optdepends(262.0); logical_or(1, 4, 8)
258; optdepends(262.1); logical_or(1, 4, 8)
258; depends(262.3); logical_or(4, 8)
@ -130,7 +130,7 @@
291; optdepends(262.1); any
# 297 PageNumber actual page, and total pagecount, the actual page count starts with 0; Recommended: 0, 1
297; optional; only(0,1)
297; optional; ntupel(0,1)
# 305 0131 Software Name and version number of the software package(s) used to create the image.
305; optional; regex("^[[:print:]]*$")
@ -177,10 +177,6 @@
# 338 0152 ExtraSamples Description of extra components.
#338; optional; range(0-2)
# 339 0153 SampleFormat This field specifies how to interpret each data sample in a pixel.
339; optdepends(277.1); only(1)
339; optdepends(277.3); only(1,1,1)
# 700 02BC XMP XML packet containing XMP metadata.
700; optional; any

54
example_configs/cit_tiff_baseline_minimal.cfg

@ -10,6 +10,12 @@
# entry here
# Required Baseline Tags
# 254 00fe NewSubfileType A general indication of the kind of data contained in this subfile.
### could be part of baseline TIFF, but value could only be 0, because whether
### another image is contained (bit 0), nor is it a multipage TIFF (bit 2), nor
### it is a transparency mask (bit 3), because baseline does not allow multiple
### IFDs
254; optional; only(0)
# 256 0100 ImageWidth The number of columns in the image, i.e., the number of pixels per row.
256; mandatory; any
@ -18,23 +24,47 @@
257; mandatory; any
# 258 0102 BitsPerSample Number of bits per component.
258; mandatory; logical_or(8,16)
### black/white
### grayscale
258; depends(262.0); logical_or(1,4,8)
258; depends(262.1); logical_or(1,4,8)
### colormap
258; depends(320.any); logical_or(4,8)
### RGB
258; depends(262.2); logical_or(ntupel(8,8,8),ntupel(16,16,16))
# 259 0103 Compression Compression scheme used on the image data
### (1 means no compression)
259; mandatory; only(1)
### (1 means no compression, 2 CCIT Group 3, 32773 PackBits)
### black/white (BitsPerSample is optional for b/w)
259; depends(262.0); logical_or(1,2,32773)
259; depends(262.1); logical_or(1,2,32773)
### grayscale (BitsPerSample must exist)
259; depends(258.4); logical_or(1,32773)
259; depends(258.8); logical_or(1,32773)
### colormap
259; depends(262.3); logical_or(1,32773)
### RGB
259; depends(262.2); logical_or(1,32773)
# 262 0106 PhotometricInterpretation The color space of the image data.
### 2 means RGB, 0 and 1 means bilevel or grayscale, 0 is unusual
262; mandatory; logical_or(2,1)
### 2 means RGB, 0 and 1 means bilevel or grayscale, 0 is unusual, 3 colormap
262; mandatory; logical_or(0,1,2)
# TODO: needs checks in code
262; depends(320.any); only(3)
# 273 0111 StripOffsets For each strip, the byte offset of that strip.
273; mandatory; any
# 274 0112 Orientation The orientation of the image with respect to the rows and columns
274; optional; only(1)
# 277 0115 SamplesPerPixel The number of components per pixel.
### if RGB then 3 else 1
277; depends(262.2); only(3)
277; depends(262.3); only(1)
277; depends(262.1); only(1)
277; depends(262.0); only(1)
# 278 0116 RowsPerStrip The number of rows per strip.
278; mandatory; any
@ -43,12 +73,20 @@
279; mandatory; any
# 282 011A XResolution The number of pixels per ResolutionUnit in the ImageWidth direction.
282; mandatory; range(300, 1200)
282; mandatory; any
# 283 011B YResolution The number of pixels per ResolutionUnit in the ImageLength direction.
283; mandatory; range(300, 1200)
283; mandatory; any
# 284 011C PlanarConfiguration If 2 then Bitplanes used, if 1 chunks used, only for RGB relevant
### for baseline only value 1 allowed and only if SamplesPerPixel = 3
284; optdepends(277.3); only(1)
# 296 0128 ResolutionUnit The unit of measurement for XResolution and YResolution.
### (2 means inch)
296; mandatory; only(2)
296; optional; logical_or(1,2,3)
# 320 ColorMap, only for paletted
320; optional; any
Loading…
Cancel
Save