exif-format.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*! \file exif-format.h
  2. * \brief Handling native EXIF data types
  3. */
  4. /*
  5. *
  6. * Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net>
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. * Boston, MA 02110-1301 USA.
  22. */
  23. #ifndef __EXIF_FORMAT_H__
  24. #define __EXIF_FORMAT_H__
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif /* __cplusplus */
  28. /*! EXIF tag data formats */
  29. typedef enum {
  30. EXIF_FORMAT_BYTE = 1,
  31. EXIF_FORMAT_ASCII = 2,
  32. EXIF_FORMAT_SHORT = 3,
  33. EXIF_FORMAT_LONG = 4,
  34. EXIF_FORMAT_RATIONAL = 5,
  35. EXIF_FORMAT_SBYTE = 6,
  36. EXIF_FORMAT_UNDEFINED = 7,
  37. EXIF_FORMAT_SSHORT = 8,
  38. EXIF_FORMAT_SLONG = 9,
  39. EXIF_FORMAT_SRATIONAL = 10,
  40. EXIF_FORMAT_FLOAT = 11,
  41. EXIF_FORMAT_DOUBLE = 12
  42. } ExifFormat;
  43. /*! Return a textual representation of the given EXIF data type.
  44. *
  45. * \param[in] format EXIF data format
  46. * \return localized textual name
  47. */
  48. const char *exif_format_get_name (ExifFormat format);
  49. /*! Return the raw size of the given EXIF data type.
  50. *
  51. * \param[in] format EXIF data format
  52. * \return size in bytes
  53. */
  54. unsigned char exif_format_get_size (ExifFormat format);
  55. #ifdef __cplusplus
  56. }
  57. #endif /* __cplusplus */
  58. #endif /* __EXIF_FORMAT_H__ */