summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_image.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-04 11:51:42 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-04 11:51:42 +0000
commitc15e9c6575c3b5f39ded167dda5259de3de96151 (patch)
tree5115d7ae3620af24c2bc094cd062575af7adeda9 /src/lib/evas/common/evas_image.h
parenta5ac6a987caec5a7f7596a25d0a065b9cc94c50c (diff)
merge: and now Evas
I've tested make -j 3 install and it works nicely I've tested expedite with software and opengl xlib, and it works. Not tested other engines, so please report any problems (engines or other) on the ML. TODO: examples and tests, I'll add them later ISSUE: Eina_Unicode size check. It indirectly depends on eina_config.h, which is created at the end of the configure script. So its size is always 0. I don't know how that size is used, so I can't do a lot, for now. SVN revision: 78895
Diffstat (limited to 'src/lib/evas/common/evas_image.h')
-rw-r--r--src/lib/evas/common/evas_image.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_image.h b/src/lib/evas/common/evas_image.h
new file mode 100644
index 0000000000..766c90c680
--- /dev/null
+++ b/src/lib/evas/common/evas_image.h
@@ -0,0 +1,68 @@
1#ifndef _EVAS_IMAGE_H
2#define _EVAS_IMAGE_H
3
4
5EAPI void evas_common_image_init (void);
6EAPI void evas_common_image_shutdown (void);
7
8EAPI void evas_common_image_image_all_unload (void);
9
10EAPI void evas_common_rgba_image_free (Image_Entry *ie);
11EAPI void evas_common_rgba_image_unload (Image_Entry *ie);
12EAPI void evas_common_image_colorspace_normalize (RGBA_Image *im);
13EAPI void evas_common_image_colorspace_dirty (RGBA_Image *im);
14EAPI void evas_common_image_cache_free (void); /*2*/
15EAPI void evas_common_image_premul (Image_Entry *ie); /*2*/
16EAPI void evas_common_image_set_alpha_sparse (Image_Entry *ie); /*2*/
17/* EAPI RGBA_Image *evas_common_image_alpha_create (int w, int h); */
18/* EAPI RGBA_Image *evas_common_image_create (int w, int h); */
19EAPI RGBA_Image *evas_common_image_new (unsigned int w, unsigned int h, unsigned int alpha);
20EAPI Evas_Cache_Image *evas_common_image_cache_get (void);
21#ifdef EVAS_CSERVE2
22EAPI Evas_Cache2 *evas_common_image_cache2_get (void);
23#endif
24
25EAPI void evas_common_image_set_cache (unsigned int size);
26EAPI int evas_common_image_get_cache (void);
27
28EAPI RGBA_Image *evas_common_image_line_buffer_obtain (int len);
29EAPI void evas_common_image_line_buffer_release (RGBA_Image *im);
30
31EAPI RGBA_Image *evas_common_image_alpha_line_buffer_obtain (int len);
32EAPI void evas_common_image_alpha_line_buffer_release (RGBA_Image *im);
33EAPI void evas_common_image_alpha_line_buffer_free (RGBA_Image *im);
34
35EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, RGBA_Image_Loadopts *lo, int *error);
36EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress);
37
38EAPI void evas_common_rgba_image_scalecache_init(Image_Entry *ie);
39EAPI void evas_common_rgba_image_scalecache_shutdown(Image_Entry *ie);
40EAPI void evas_common_rgba_image_scalecache_size_set(unsigned int size);
41EAPI unsigned int evas_common_rgba_image_scalecache_size_get(void);
42EAPI void evas_common_rgba_image_scalecache_flush(void);
43EAPI void evas_common_rgba_image_scalecache_dump(void);
44EAPI void
45 evas_common_rgba_image_scalecache_prepare(Image_Entry *ie, RGBA_Image *dst,
46 RGBA_Draw_Context *dc, int smooth,
47 int src_region_x, int src_region_y,
48 int src_region_w, int src_region_h,
49 int dst_region_x, int dst_region_y,
50 int dst_region_w, int dst_region_h);
51EAPI void
52 evas_common_rgba_image_scalecache_do(Image_Entry *ie, RGBA_Image *dst,
53 RGBA_Draw_Context *dc, int smooth,
54 int src_region_x, int src_region_y,
55 int src_region_w, int src_region_h,
56 int dst_region_x, int dst_region_y,
57 int dst_region_w, int dst_region_h);
58
59
60EAPI int evas_common_load_rgba_image_module_from_file (Image_Entry *im);
61EAPI int evas_common_load_rgba_image_data_from_file (Image_Entry *im);
62EAPI double evas_common_load_rgba_image_frame_duration_from_file(Image_Entry *im, int start_frame, int frame_num);
63
64void _evas_common_rgba_image_post_surface(Image_Entry *ie);
65
66EAPI Eina_Bool evas_common_extension_can_load_get(const char *file);
67
68#endif /* _EVAS_IMAGE_H */