From 542897061b01ed95d09bb3119b6d035dc43ecdbf Mon Sep 17 00:00:00 2001 From: "jiin.moon" Date: Wed, 10 May 2017 15:10:17 +0900 Subject: [PATCH] evas: Fix can't open tiff file on loader Refs: v1.19.0-423-gc89bf7b Author: jiin.moon AuthorDate: Mon May 8 15:20:01 2017 +0200 Commit: Stefan Schmidt CommitDate: Mon May 8 15:20:01 2017 +0200 evas: Fix can't open tiff file on loader Summary: Evas can't open tiff file because of no implement in client read api. I wrote codes simply for open. Test Plan: self Reviewers: jpeg, cedric, jypark Subscribers: stefan_schmidt Differential Revision: https://phab.enlightenment.org/D4857 Change-Id: Iae59a0a918a0e123bdce457df4207e341a55ef4d --- src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c b/src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c index 943c3e7..9f135ba 100644 --- a/src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c +++ b/src/modules/evas/image_loaders/tiff/evas_image_load_tiff.c @@ -42,11 +42,15 @@ struct TIFFRGBAMap { }; static tsize_t -_evas_tiff_RWProc(thandle_t handle EINA_UNUSED, - tdata_t data EINA_UNUSED, - tsize_t size EINA_UNUSED) +_evas_tiff_RWProc(thandle_t handle, + tdata_t data, + tsize_t size) { - return 0; + TIFFRGBAMap *map = (TIFFRGBAMap*) handle; + if (!data) return 0; + memcpy(data, map->mem, size); + + return size; } static toff_t -- 2.7.4