summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 17:22:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 18:03:49 +0900
commit88bfba1fdd35e3aadd4c3fde266cc48c2544db32 (patch)
tree160c62a43e4eec03191d207e4c59c600bf6e1a11 /src/lib/evas/include/evas_filter.h
parent8bb03d8170219211be16974792d55f579806aa0d (diff)
evas filters: Add "alphaonly" flag for blend and blur
This is very useful to specify precisely which kind of RGBA -> Alpha conversion you want. If all you wanted was the alpha layer to use as a mask, set this flag to true. @feature
Diffstat (limited to '')
-rw-r--r--src/lib/evas/include/evas_filter.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 82b3ed6ce7..c6618d35d6 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -180,10 +180,11 @@ void _evas_filter_source_hash_free_cb(void *data);
180 * @param ox X offset in the destination buffer 180 * @param ox X offset in the destination buffer
181 * @param oy Y offset in the destination buffer 181 * @param oy Y offset in the destination buffer
182 * @param fillmode Specifies whether to repeat or stretch the input onto its destination, and on which axes 182 * @param fillmode Specifies whether to repeat or stretch the input onto its destination, and on which axes
183 * @param alphaonly If true, discard RGB during RGBA -> Alpha conversions.
183 * @return Filter command ID or -1 in case of error 184 * @return Filter command ID or -1 in case of error
184 * @internal 185 * @internal
185 */ 186 */
186Evas_Filter_Command *evas_filter_command_blend_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int ox, int oy, Evas_Filter_Fill_Mode fillmode); 187Evas_Filter_Command *evas_filter_command_blend_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int ox, int oy, Evas_Filter_Fill_Mode fillmode, Eina_Bool alphaonly);
187 188
188/** 189/**
189 * @brief Apply a blur effect on a buffer 190 * @brief Apply a blur effect on a buffer
@@ -197,10 +198,11 @@ Evas_Filter_Command *evas_filter_command_blend_add(Evas_Filter_Context *ctx,
197 * @param ox X offset in the destination buffer 198 * @param ox X offset in the destination buffer
198 * @param oy Y offset in the destination buffer 199 * @param oy Y offset in the destination buffer
199 * @param count Number of times to repeat the operation (used for smooth fast blurs with box blur) 200 * @param count Number of times to repeat the operation (used for smooth fast blurs with box blur)
201 * @param alphaonly If true, discard RGB during RGBA -> Alpha conversions.
200 * @return Filter command ID or -1 in case of error 202 * @return Filter command ID or -1 in case of error
201 * @internal 203 * @internal
202 */ 204 */
203Evas_Filter_Command *evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, Evas_Filter_Blur_Type type, int dx, int dy, int ox, int oy, int count); 205Evas_Filter_Command *evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, Evas_Filter_Blur_Type type, int dx, int dy, int ox, int oy, int count, Eina_Bool alphaonly);
204 206
205/** 207/**
206 * @brief Fill a buffer with the current color 208 * @brief Fill a buffer with the current color
@@ -234,10 +236,11 @@ Evas_Filter_Command *evas_filter_command_curve_add(Evas_Filter_Context *ctx,
234 * @param outbuf Destination buffer: ALPHA or RGBA (note: must be RGBA if inbuf is RGBA) 236 * @param outbuf Destination buffer: ALPHA or RGBA (note: must be RGBA if inbuf is RGBA)
235 * @param radius Number of pixels to grow by. If negative, shrink instead of grow 237 * @param radius Number of pixels to grow by. If negative, shrink instead of grow
236 * @param smooth Use smooth blur and curve for grow (default: true) 238 * @param smooth Use smooth blur and curve for grow (default: true)
239 * @param alphaonly If true, discard RGB during RGBA -> Alpha conversions.
237 * @return Filter command ID or -1 in case of error 240 * @return Filter command ID or -1 in case of error
238 * @internal 241 * @internal
239 */ 242 */
240Evas_Filter_Command *evas_filter_command_grow_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int radius, Eina_Bool smooth); 243Evas_Filter_Command *evas_filter_command_grow_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int radius, Eina_Bool smooth, Eina_Bool alphaonly);
241 244
242/** 245/**
243 * @brief Apply a displacement map to a buffer. This will move pixels from the source to the destination based on pixel per pixel offset, as defined in the displacement map 246 * @brief Apply a displacement map to a buffer. This will move pixels from the source to the destination based on pixel per pixel offset, as defined in the displacement map