forked from enlightenment/efl
Revert "evas: remove unused function evas_common_load_image_from_file."
Summary:
This reverts commit 7672d1050e
.
Depends on D11335
Reviewers: raster
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D11336
This commit is contained in:
parent
08b291e540
commit
7aec0565cb
|
@ -32,6 +32,7 @@ EAPI RGBA_Image *evas_common_image_alpha_line_buffer_obtain (int len);
|
|||
EAPI void evas_common_image_alpha_line_buffer_release (RGBA_Image *im);
|
||||
EAPI void evas_common_image_alpha_line_buffer_free (RGBA_Image *im);
|
||||
|
||||
EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, Evas_Image_Load_Opts *lo, int *error);
|
||||
EAPI RGBA_Image *evas_common_load_image_from_mmap (Eina_File *f, const char *key, Evas_Image_Load_Opts *lo, int *error);
|
||||
EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress, const char *encoding);
|
||||
|
||||
|
|
|
@ -1015,6 +1015,18 @@ evas_common_image_get_cache(void)
|
|||
return evas_cache_image_get(eci);
|
||||
}
|
||||
|
||||
EAPI RGBA_Image *
|
||||
evas_common_load_image_from_file(const char *file, const char *key,
|
||||
Evas_Image_Load_Opts *lo, int *error)
|
||||
{
|
||||
if (!file)
|
||||
{
|
||||
*error = EVAS_LOAD_ERROR_GENERIC;
|
||||
return NULL;
|
||||
}
|
||||
return (RGBA_Image *) evas_cache_image_request(eci, file, key, lo, error);
|
||||
}
|
||||
|
||||
EAPI RGBA_Image *
|
||||
evas_common_load_image_from_mmap(Eina_File *f, const char *key,
|
||||
Evas_Image_Load_Opts *lo, int *error)
|
||||
|
|
Loading…
Reference in New Issue