pgf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #------------------------------------------------------------------------------
  2. # $File: pgf,v 1.3 2021/02/23 00:51:10 christos Exp $
  3. # pgf: file(1) magic for Progressive Graphics File (PGF)
  4. #
  5. # <http://www.libpgf.org/uploads/media/PGF_Details_01.pdf>
  6. # 2013 by Philipp Hahn <pmhahn debian org>
  7. 0 string PGF Progressive Graphics image data,
  8. !:mime image/x-pgf
  9. >3 string 2 version %s,
  10. >3 string 4 version %s,
  11. >3 string 5 version %s,
  12. >3 string 6 version %s,
  13. # PGFPreHeader
  14. #>>4 lelong x header size %d,
  15. # PGFHeader
  16. >>8 lelong x %d x
  17. >>12 lelong x %d,
  18. >>16 byte x %d levels,
  19. >>17 byte x compression level %d,
  20. >>18 byte x %d bpp,
  21. >>19 byte x %d channels,
  22. >>20 clear x
  23. >>20 byte 0 bitmap,
  24. >>20 byte 1 gray scale,
  25. >>20 byte 2 indexed color,
  26. >>20 byte 3 RGB color,
  27. >>20 byte 4 CMYK color,
  28. >>20 byte 5 HSL color,
  29. >>20 byte 6 HSB color,
  30. >>20 byte 7 multi-channel,
  31. >>20 byte 8 duo tone,
  32. >>20 byte 9 LAB color,
  33. >>20 byte 10 gray scale 16,
  34. >>20 byte 11 RGB color 48,
  35. >>20 byte 12 LAB color 48,
  36. >>20 byte 13 CMYK color 64,
  37. >>20 byte 14 deep multi-channel,
  38. >>20 byte 15 duo tone 16,
  39. >>20 byte 17 RGBA color,
  40. >>20 byte 18 gray scale 32,
  41. >>20 byte 19 RGB color 12,
  42. >>20 byte 20 RGB color 16,
  43. >>20 byte 255 unknown format,
  44. >>20 default x format
  45. >>>20 byte x \b %d,
  46. >>21 byte x %d bpc
  47. # PGFPostHeader
  48. # Level-Sizes
  49. #>>(4.l+4) lelong x level 0 size: %d
  50. #>>(4.l+8) lelong x level 1 size: %d
  51. #>>(4.l+12) lelong x level 2 size: %d