236-magic-add-foveon-x3f.patch 847 B

12345678910111213141516171819202122
  1. Author: Adam Buchbinder <adam.buchbinder@gmail.com>
  2. Description: Adding new magics for Foveon X3F (Closes: #516800).
  3. diff -Naurp file.orig/magic/Magdir/images file/magic/Magdir/images
  4. --- file.orig/magic/Magdir/images 2009-12-05 18:43:12.000000000 +0100
  5. +++ file/magic/Magdir/images 2009-12-05 18:43:37.000000000 +0100
  6. @@ -655,3 +655,15 @@
  7. #!mime image/x-pfs
  8. >1 regex [0-9]*\ \b, %s
  9. >>1 regex \ [0-9]{4} \bx%s
  10. +
  11. +# Type: Foveon X3F
  12. +# URL: http://www.photofo.com/downloads/x3f-raw-format.pdf
  13. +# From: Adam Buchbinder <adam.buchbinder@gmail.com>
  14. +# Note that the MIME type isn't defined anywhere that I can find; if
  15. +# there's a canonical type for this format, it should replace this one.
  16. +0 string FOVb Foveon X3F raw image data
  17. +!:mime image/x-x3f
  18. +>6 leshort x \b, version %d.
  19. +>4 leshort x \b%d
  20. +>28 lelong x \b, %dx
  21. +>32 lelong x \b%d