summaryrefslogtreecommitdiff
path: root/src/eom-image-jpeg.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-06 19:30:49 -0300
committerPerberos <[email protected]>2011-11-06 19:30:49 -0300
commita8d28a6ce7e0c56dacba5d527d9134573a008902 (patch)
tree8852602004b5a13cc5d1ce3ecd7a314be81d1198 /src/eom-image-jpeg.h
downloadeom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.bz2
eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.xz
inicial
Diffstat (limited to 'src/eom-image-jpeg.h')
-rw-r--r--src/eom-image-jpeg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/eom-image-jpeg.h b/src/eom-image-jpeg.h
new file mode 100644
index 0000000..4e43d0d
--- /dev/null
+++ b/src/eom-image-jpeg.h
@@ -0,0 +1,22 @@
+#ifndef _EOM_IMAGE_JPEG_H_
+#define _EOM_IMAGE_JPEG_H_
+
+#if HAVE_JPEG
+
+#include <glib.h>
+#include "eom-image.h"
+#include "eom-image-save-info.h"
+
+/* Saves a source jpeg file in an arbitrary format (as specified by
+ * target). The target pointer may be NULL, in which case the output
+ * file is saved as jpeg too. This method tries to be as smart as
+ * possible. It will save the image as lossless as possible (if the
+ * target is a jpeg image too).
+ */
+G_GNUC_INTERNAL
+gboolean eom_image_jpeg_save_file (EomImage *image, const char *file,
+ EomImageSaveInfo *source, EomImageSaveInfo *target,
+ GError **error);
+#endif
+
+#endif /* _EOM_IMAGE_JPEG_H_ */