summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-02-14 08:33:20 -0500
committerMike Blumenkrantz <zmike@samsung.com>2020-02-14 08:33:20 -0500
commit7aec0565cb33cc664b3a1be4df01c721e92d6dfd (patch)
tree15732e01666df7e195203686104d279d4f56fa49
parent08b291e540902dccced85591f40ba2624d5cb0d4 (diff)
downloadefl-7aec0565cb33cc664b3a1be4df01c721e92d6dfd.tar.gz
Revert "evas: remove unused function evas_common_load_image_from_file."
Summary: This reverts commit 7672d1050ea9e1050c27ce2eda68718ea054b638. Depends on D11335 Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11336
-rw-r--r--src/lib/evas/common/evas_image.h1
-rw-r--r--src/lib/evas/common/evas_image_main.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image.h b/src/lib/evas/common/evas_image.h
index 281e82a616..68f4686d59 100644
--- a/src/lib/evas/common/evas_image.h
+++ b/src/lib/evas/common/evas_image.h
@@ -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);
diff --git a/src/lib/evas/common/evas_image_main.c b/src/lib/evas/common/evas_image_main.c
index e06fc9f653..57a9a8c0c5 100644
--- a/src/lib/evas/common/evas_image_main.c
+++ b/src/lib/evas/common/evas_image_main.c
@@ -1016,6 +1016,18 @@ evas_common_image_get_cache(void)
}
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)
{