summaryrefslogtreecommitdiff
path: root/src/lib/evas
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 /src/lib/evas
parent08b291e540902dccced85591f40ba2624d5cb0d4 (diff)
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
Diffstat (limited to 'src/lib/evas')
-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);
32EAPI void evas_common_image_alpha_line_buffer_release (RGBA_Image *im); 32EAPI void evas_common_image_alpha_line_buffer_release (RGBA_Image *im);
33EAPI void evas_common_image_alpha_line_buffer_free (RGBA_Image *im); 33EAPI void evas_common_image_alpha_line_buffer_free (RGBA_Image *im);
34 34
35EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, Evas_Image_Load_Opts *lo, int *error);
35EAPI RGBA_Image *evas_common_load_image_from_mmap (Eina_File *f, const char *key, Evas_Image_Load_Opts *lo, int *error); 36EAPI RGBA_Image *evas_common_load_image_from_mmap (Eina_File *f, const char *key, Evas_Image_Load_Opts *lo, int *error);
36EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress, const char *encoding); 37EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress, const char *encoding);
37 38
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)
1016} 1016}
1017 1017
1018EAPI RGBA_Image * 1018EAPI RGBA_Image *
1019evas_common_load_image_from_file(const char *file, const char *key,
1020 Evas_Image_Load_Opts *lo, int *error)
1021{
1022 if (!file)
1023 {
1024 *error = EVAS_LOAD_ERROR_GENERIC;
1025 return NULL;
1026 }
1027 return (RGBA_Image *) evas_cache_image_request(eci, file, key, lo, error);
1028}
1029
1030EAPI RGBA_Image *
1019evas_common_load_image_from_mmap(Eina_File *f, const char *key, 1031evas_common_load_image_from_mmap(Eina_File *f, const char *key,
1020 Evas_Image_Load_Opts *lo, int *error) 1032 Evas_Image_Load_Opts *lo, int *error)
1021{ 1033{