summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-12-02 10:55:14 (GMT)
committerJean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>2014-12-03 14:08:19 (GMT)
commitf0be21988c9b0a4d165d386f8062a4bf2f5b095b (patch)
tree932c32cc203851222e63b7adac4be53d73e8b6b4 /src/include
parent561e2cae46730cdbadf485dfa7ab449e60524bae (diff)
downloadlibmedia-thumbnail-f0be21988c9b0a4d165d386f8062a4bf2f5b095b.zip
libmedia-thumbnail-f0be21988c9b0a4d165d386f8062a4bf2f5b095b.tar.gz
libmedia-thumbnail-f0be21988c9b0a4d165d386f8062a4bf2f5b095b.tar.bz2
Librarie gdk-pixbuf is used to create thumbnail instead of Ecore-evas Bug-Tizen: TC-1694 Change-Id: Ib8facf8ec8d2d82ffaf5138a3b7e09ee5853b7b5 Signed-off-by: Jean-Benoit MARTIN <jean-benoit.martin@open.eurogiciel.org>
Diffstat (limited to 'src/include')
-rwxr-xr-xsrc/include/media-thumb-internal.h5
-rwxr-xr-xsrc/include/util/media-thumb-util.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/include/media-thumb-internal.h b/src/include/media-thumb-internal.h
index 32427ca..e9990b2 100755
--- a/src/include/media-thumb-internal.h
+++ b/src/include/media-thumb-internal.h
@@ -24,6 +24,7 @@
#include "media-thumb-error.h"
#include "media-thumb-types.h"
#include "media-thumb-debug.h"
+#include <gdk-pixbuf/gdk-pixbuf.h>
#ifndef _MEDIA_THUMB_INTERNAL_H_
#define _MEDIA_THUMB_INTERNAL_H_
@@ -43,8 +44,8 @@ typedef struct {
int height;
int origin_width;
int origin_height;
- int alpha;
- unsigned char *data;
+ gboolean alpha;
+ GdkPixbuf *data;
} media_thumb_info;
enum Exif_Orientation {
diff --git a/src/include/util/media-thumb-util.h b/src/include/util/media-thumb-util.h
index 4fe33f8..41409d2 100755
--- a/src/include/util/media-thumb-util.h
+++ b/src/include/util/media-thumb-util.h
@@ -24,6 +24,7 @@
#include "media-thumb-debug.h"
#include "media-util.h"
#include <tzplatform_config.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
#ifndef _MEDIA_THUMB_UTIL_H_
#define _MEDIA_THUMB_UTIL_H_
@@ -75,10 +76,10 @@ _media_thumb_get_hash_name(const char *file_full_path,
char *thumb_hash_path, size_t max_thumb_path, uid_t uid);
int
-_media_thumb_save_to_file_with_evas(unsigned char *data,
+_media_thumb_save_to_file_with_gdk(GdkPixbuf *data,
int w,
int h,
- int alpha,
+ gboolean alpha,
char *thumb_path);
int