summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-12-12 17:46:46 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:16 +0900
commit109894bb562ecd0b6a0a4f59739c536fc1557fff (patch)
treefafaea0fc9cb0ee41699b40a9adb5992e9d0e438 /src/lib/evas/include/evas_filter.h
parent0a450b3ace1459919d0888074993f2369b99ec96 (diff)
Evas filters: Add fill command
This will simply clear the target buffer with the specified color.
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index f599707deb..8a3c02a368 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -26,6 +26,7 @@ enum _Evas_Filter_Mode
26 EVAS_FILTER_MODE_BLUR, /**< @see Evas_Filter_Blur_Type */ 26 EVAS_FILTER_MODE_BLUR, /**< @see Evas_Filter_Blur_Type */
27 EVAS_FILTER_MODE_CURVE, /**< Apply color curve */ 27 EVAS_FILTER_MODE_CURVE, /**< Apply color curve */
28 EVAS_FILTER_MODE_DISPLACE, /**< Apply XY displacement based on RG mask */ 28 EVAS_FILTER_MODE_DISPLACE, /**< Apply XY displacement based on RG mask */
29 EVAS_FILTER_MODE_FILL, /**< Fill a buffer with a solid color */
29 EVAS_FILTER_MODE_MASK, /**< Apply Alpha or RGBA texture on image */ 30 EVAS_FILTER_MODE_MASK, /**< Apply Alpha or RGBA texture on image */
30 EVAS_FILTER_MODE_BUMP, /**< Apply bump mapping (light effect) */ 31 EVAS_FILTER_MODE_BUMP, /**< Apply bump mapping (light effect) */
31 EVAS_FILTER_MODE_LAST 32 EVAS_FILTER_MODE_LAST
@@ -126,6 +127,17 @@ int evas_filter_command_blend_add(Evas_Filter_Context *ctx,
126int 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); 127int 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);
127 128
128/** 129/**
130 * @brief Fill a buffer with the current color
131 * @param ctx Current filter chain
132 * @param draw_context Current Evas draw context. Current color is used when buf is RGBA, and clip is used to specify the fill area.
133 * @param buf Buffer: ALPHA or RGBA
134 * @return Filter command ID or -1 in case of error
135 * @note The current draw context's render operation is ignored (always uses COPY mode).
136 */
137int evas_filter_command_fill_add(Evas_Filter_Context *ctx, void *draw_context, int buf);
138int evas_filter_command_curve_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, DATA8 *curve /* 256 elements */, Evas_Filter_Channel channel);
139
140/**
129 * @brief Grow/Shrink an image, as defined in image processing (this is not a scale algorithm!) 141 * @brief Grow/Shrink an image, as defined in image processing (this is not a scale algorithm!)
130 * @param ctx Current filter chain 142 * @param ctx Current filter chain
131 * @param draw_context Current Evas draw context. Current color is used when inbuf is ALPHA and outbuf is RGBA. 143 * @param draw_context Current Evas draw context. Current color is used when inbuf is ALPHA and outbuf is RGBA.
@@ -136,7 +148,6 @@ int evas_filter_command_blur_add(Evas_Filter_Context *ctx,
136 * @return Filter command ID or -1 in case of error 148 * @return Filter command ID or -1 in case of error
137 */ 149 */
138int evas_filter_command_grow_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int radius, Eina_Bool smooth); 150int evas_filter_command_grow_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int radius, Eina_Bool smooth);
139int evas_filter_command_curve_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, DATA8 *curve /* 256 elements */, Evas_Filter_Channel channel);
140 151
141/** 152/**
142 * @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 153 * @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