AC_ISC_POSIX
AC_PROG_CC
+AC_PROG_CXX
AC_STDC_HEADERS
AC_ARG_PROGRAM
have_lcms="no (lcms support disabled)"
fi
+
+PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.11,
+ [ have_exiv2=yes
+ AC_DEFINE(HAVE_EXIV2, 1, have exiv2) ],
+ [ have_exiv2=no
+ AC_MSG_RESULT($EXIV2_PKG_ERRORS) ] )
+
AC_SUBST(LCMS_LIBS)
AM_CONDITIONAL(HAVE_LCMS, test "$have_lcms" = "yes")
editors.h \
exif.c \
exif.h \
+ exiv2.cc \
filelist.c \
filelist.h \
format_canon.c \
ExifData *exif;
gint len, i;
- exif = exif_read(eb->fd, FALSE);
+ exif = exif_read(eb->fd->path, FALSE);
if (!exif)
{
time_t date = -1;
ExifData *exif;
- exif = exif_read(cl->fd, FALSE);
+ exif = exif_read(cl->fd->path, FALSE);
if (exif)
{
gchar *text;
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
+
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
g_free(exif);
}
-ExifData *exif_read(FileData *fd, gint parse_color_profile)
+ExifData *exif_read(gchar *path, gint parse_color_profile)
{
ExifData *exif;
void *f;
if (!fd) return NULL;
- pathl = path_from_utf8(fd->path);
+ pathl = path_from_utf8(path);
if (map_file(pathl, &f, &size) == -1)
{
g_free(pathl);
fprintf(f, "----------------------------------------------------\n");
}
+#endif
+/* not HAVE_EXIV2 */
*-----------------------------------------------------------------------------
*/
-ExifData *exif_read(FileData *fd, gint parse_color_profile);
+ExifData *exif_read(gchar *path, gint parse_color_profile);
void exif_free(ExifData *exif);
gchar *exif_get_data_as_text(ExifData *exif, const gchar *key);
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
#include <stdio.h>
#include <string.h>
}
+#endif
+/* not HAVE_EXIV2 */
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
#include <stdio.h>
#include <string.h>
return TRUE;
}
+#endif
+/* not HAVE_EXIV2 */
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
#include <stdio.h>
#include <string.h>
return TRUE;
}
+#endif
+/* not HAVE_EXIV2 */
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
#include <stdio.h>
#include <string.h>
}
+#endif
+/* not HAVE_EXIV2 */
# include "config.h"
#endif
+#ifndef HAVE_EXIV2
#include <stdio.h>
#include <string.h>
}
#endif
+#endif
+/* not HAVE_EXIV2 */
if (exif_rotate_enable ||
(imd->color_profile_enable && imd->color_profile_use_image) )
{
- exif = exif_read(imd->image_fd, (imd->color_profile_enable && imd->color_profile_use_image));
+ exif = exif_read(imd->image_fd->path, (imd->color_profile_enable && imd->color_profile_use_image));
}
if (exif_rotate_enable && exif)
{
ExifData *exif = NULL;
- if (imd->color_profile_use_image) exif = exif_read(imd->image_fd, TRUE);
+ if (imd->color_profile_use_image) exif = exif_read(imd->image_fd->path, TRUE);
image_post_process_color(imd, imd->prev_color_row, exif);
exif_free(exif);
}
gint i;
if (!fd) return;
- exif = exif_read(fd, FALSE);
+ exif = exif_read(fd->path, FALSE);
if (!exif) return;
pan_text_alignment_add(ta, NULL, NULL);