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
This commit is contained in:
parent
7a3bed83ee
commit
c89bf7b2d8
|
@ -42,11 +42,15 @@ struct TIFFRGBAMap {
|
||||||
};
|
};
|
||||||
|
|
||||||
static tsize_t
|
static tsize_t
|
||||||
_evas_tiff_RWProc(thandle_t handle EINA_UNUSED,
|
_evas_tiff_RWProc(thandle_t handle,
|
||||||
tdata_t data EINA_UNUSED,
|
tdata_t data,
|
||||||
tsize_t size EINA_UNUSED)
|
tsize_t size)
|
||||||
{
|
{
|
||||||
return 0;
|
TIFFRGBAMap *map = (TIFFRGBAMap*) handle;
|
||||||
|
if (!data) return 0;
|
||||||
|
memcpy(data, map->mem, size);
|
||||||
|
|
||||||
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
static toff_t
|
static toff_t
|
||||||
|
|
Loading…
Reference in New Issue