summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-05-18 17:35:49 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:08 +0900
commit2faaef966e41b35656fd77be94701009ad183c42 (patch)
tree542c31634a984e0534a8b92095899bfa32e0f610 /src/lib/evas/include/evas_filter.h
parent6db0ff42291ff4c44815df3a5f77c31ae1bad1ac (diff)
Evas filters: Add internal function _program_run
This will allow changing the state of the filter and re-run it without re-creating the Lua_State object. This is to handle size, color, animation state and scale changes (amongst other things).
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 22804413c5..b8b23616ad 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -118,6 +118,8 @@ enum _Evas_Filter_Transform_Flags
118 118
119/* Parser stuff (high level API) */ 119/* Parser stuff (high level API) */
120EAPI Evas_Filter_Program *evas_filter_program_new(const char *name, Eina_Bool input_alpha); 120EAPI Evas_Filter_Program *evas_filter_program_new(const char *name, Eina_Bool input_alpha);
121EAPI Eina_Bool evas_filter_program_run(Evas_Filter_Program *pgm);
122EAPI void evas_filter_program_state_set(Evas_Filter_Program *pgm, int w, int h);
121EAPI Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str); 123EAPI Eina_Bool evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str);
122EAPI void evas_filter_program_del(Evas_Filter_Program *pgm); 124EAPI void evas_filter_program_del(Evas_Filter_Program *pgm);
123Eina_Bool evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm); 125Eina_Bool evas_filter_context_program_use(Evas_Filter_Context *ctx, Evas_Filter_Program *pgm);
@@ -130,7 +132,7 @@ Evas_Filter_Context *evas_filter_context_new(Evas_Public_Data *evas, Eina_Bo
130void evas_filter_context_destroy(Evas_Filter_Context *ctx); 132void evas_filter_context_destroy(Evas_Filter_Context *ctx);
131void evas_filter_context_post_run_callback_set(Evas_Filter_Context *ctx, Evas_Filter_Cb cb, void *data); 133void evas_filter_context_post_run_callback_set(Evas_Filter_Context *ctx, Evas_Filter_Cb cb, void *data);
132#define evas_filter_context_autodestroy(ctx) evas_filter_context_post_run_callback_set(ctx, ((Evas_Filter_Cb) evas_filter_context_destroy), ctx) 134#define evas_filter_context_autodestroy(ctx) evas_filter_context_post_run_callback_set(ctx, ((Evas_Filter_Cb) evas_filter_context_destroy), ctx)
133Eina_Bool evas_filter_context_buffers_allocate_all(Evas_Filter_Context *ctx, unsigned w, unsigned h); 135Eina_Bool evas_filter_context_buffers_allocate_all(Evas_Filter_Context *ctx);
134 136
135int evas_filter_buffer_empty_new(Evas_Filter_Context *ctx, Eina_Bool alpha_only); 137int evas_filter_buffer_empty_new(Evas_Filter_Context *ctx, Eina_Bool alpha_only);
136int evas_filter_buffer_image_new(Evas_Filter_Context *ctx, void *image); 138int evas_filter_buffer_image_new(Evas_Filter_Context *ctx, void *image);