summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-02 15:57:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:17 +0900
commit82032d494f9c5ecfa40119b95e3ad61fc83e968d (patch)
tree4734b587c160cc29013bcfa1afe084e62b6b222d /src/lib/evas/include/evas_filter.h
parent7000907cd3701ab1ae0ab80c8db470ea066a1d8e (diff)
Evas filters: Implement curve script API
Currently supports interpolation modes "none" and "linear". Cubic interpolation is not implemented yet.
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 4fe04f7a30..59b430ba50 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -150,6 +150,17 @@ int evas_filter_command_blur_add(Evas_Filter_Context *ctx,
150 * @note The current draw context's render operation is ignored (always uses COPY mode). 150 * @note The current draw context's render operation is ignored (always uses COPY mode).
151 */ 151 */
152int evas_filter_command_fill_add(Evas_Filter_Context *ctx, void *draw_context, int buf); 152int evas_filter_command_fill_add(Evas_Filter_Context *ctx, void *draw_context, int buf);
153
154/**
155 * @brief evas_filter_command_curve_add
156 * @param ctx Current filter chain
157 * @param draw_context Current Evas draw context. Current color is used when buf is RGBA, and clip is used to specify the fill area.
158 * @param inbuf Input buffer, ALPHA or RGBA.
159 * @param outbuf Output buffer, must have same colorspace as inbuf.
160 * @param curve The data points to use, must contain 256 values.
161 * @param channel Which channel to apply the curve (red, green, blue, alpha or RGB)
162 * @return Filter command ID or -1 in case of error
163 */
153int evas_filter_command_curve_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, DATA8 *curve /* 256 elements */, Evas_Filter_Channel channel); 164int evas_filter_command_curve_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, DATA8 *curve /* 256 elements */, Evas_Filter_Channel channel);
154 165
155/** 166/**