Skip to content

Commit

Permalink
Reorder classes (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondrake authored Jan 24, 2024
1 parent 68000aa commit 7312137
Show file tree
Hide file tree
Showing 361 changed files with 11,173 additions and 11,189 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ jobs:
php bin/fileeye-mediaprobe --version
# Remove the comment to the lines below during development, to let
# re-compile the specification PHP file from the YAML files.
php bin/fileeye-mediaprobe compile
# php bin/fileeye-mediaprobe compile
# php bin/fileeye-mediaprobe dump tests/media-samples tests/media-dumps
- name: Image file dumps
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion SPECIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ An IFD is fully described by a single YAML file. The file name should convention

```
type: 'IFD0'
class: FileEye\MediaProbe\Block\Exif\Ifd
class: FileEye\MediaProbe\Block\Tiff\Ifd
alias:
- '0'
- 'Main'
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"symfony/process": "^6 | ^7",
"symfony/var-dumper": "^6 | ^7",
"symfony/yaml": "^6 | ^7",
"bramus/monolog-colored-line-formatter": "^3"
"bramus/monolog-colored-line-formatter": "^3",
"phpstan/phpstan": "^1.10"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions examples/dump-media.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use FileEye\MediaProbe\Media;
use FileEye\MediaProbe\Data\DataWindow;
use FileEye\MediaProbe\Utility\ConvertBytes;
use FileEye\MediaProbe\Block\Jpeg;
use FileEye\MediaProbe\Block\Tiff;
use FileEye\MediaProbe\Block\Jpeg\Jpeg;
use FileEye\MediaProbe\Block\Tiff\Tiff;
use FileEye\MediaProbe\Utility\DumpLogFormatter;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Apple/Main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Apple
title: 'Apple Maker Notes'
class: FileEye\MediaProbe\Block\Exif\Vendor\Apple\MakerNote
DOMNode: makerNote
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Apple
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Apple/RunTime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: AppleRuntime
title: 'Apple Runtime'
class: FileEye\MediaProbe\Block\Exif\Vendor\Apple\RunTime
DOMNode: plist
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Apple
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/AFConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Index
DOMNode: index
format: Long
hasIndexSize: true
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/AFInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon AF Info'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\AFInfoIndex
DOMNode: index
format: Short
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/AFInfo2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\AFInfoIndex
DOMNode: index
format: Short
hasIndexSize: true
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/AFMicroAdj.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Map
DOMNode: map
format: Long
hasIndexSize: true
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/Ambience.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Map
DOMNode: map
format: Long
hasIndexSize: true
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/AspectInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon AspectInfo'
class: FileEye\MediaProbe\Block\Index
DOMNode: index
format: Long
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CNTH.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CanonCNTH
title: 'Canon CNTH'
class: FileEye\MediaProbe\Block\Index
DOMNode: index
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CTMD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CanonCTMD
title: 'Canon CTMD'
class: FileEye\MediaProbe\Block\Index
DOMNode: index
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1000D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1000D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1DX.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1DX'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1DmkII.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1DmkII'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1DmkIII.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1DmkIII'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1DmkIIN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1DmkIIN'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo1DmkIV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo1DmkIV'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo40D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo40D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo450D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo450D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo500D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo500D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo50D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo50D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo550D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo550D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo5D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo5D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo5DmkII.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo5DmkII'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo5DmkIII.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo5DmkIII'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo600D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo600D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo60D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo60D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo650D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo650D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo6D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo6D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo70D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo70D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo750D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo750D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo7D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo7D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfo80D.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfo80D'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfoPowerShot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfoPowerShot'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Long
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfoPowerShot2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfoPowerShot2'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Long
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfoUnknown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfoUnknown'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Byte
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraInfoUnknown32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon CameraInfoUnknown32'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\CameraInfoMap
DOMNode: map
format: Long
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/CameraSettings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Map
DOMNode: map
hasIndexSize: true
format: Short
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/ColorBalance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class: FileEye\MediaProbe\Block\Map
DOMNode: map
hasIndexSize: true
format: Short
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
2 changes: 1 addition & 1 deletion specs/ExifMakerNotes/Canon/ColorCalib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 'Canon ColorCalib'
class: FileEye\MediaProbe\Block\Exif\Vendor\Canon\ColorCalibMap
DOMNode: index
format: Short
defaultItemCollection: Tag
defaultItemCollection: Tiff\Tag
compiler:
exiftool:
g1: Canon
Expand Down
Loading

0 comments on commit 7312137

Please sign in to comment.