A Simple X Image Viewer
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* sxiv: exif.h
  2. * Copyright (c) 2012 Bert Muennich <be.muennich at googlemail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. */
  18. #ifndef EXIF_H
  19. #define EXIF_H
  20. #include "types.h"
  21. enum {
  22. JPEG_MARKER_SOI = 0xFFD8,
  23. JPEG_MARKER_APP1 = 0xFFE1
  24. };
  25. enum {
  26. EXIF_MAX_LEN = 0x10000,
  27. EXIF_HEAD = 0x45786966,
  28. EXIF_BO_BIG_ENDIAN = 0x4D4D,
  29. EXIF_BO_LITTLE_ENDIAN = 0x4949,
  30. EXIF_TAG_MARK = 0x002A,
  31. EXIF_TAG_ORIENTATION = 0x0112
  32. };
  33. int exif_orientation(const fileinfo_t*);
  34. void exif_auto_orientate(const fileinfo_t*); /* in image.c */
  35. #endif /* EXIF_H */