Refs: v1.19.0-423-gc89bf7b
Author: jiin.moon <jiin.moon@samsung.com>
AuthorDate: Mon May 8 15:20:01 2017 +0200
Commit: Stefan Schmidt <stefan@osg.samsung.com>
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
};
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