summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-12-31 17:51:09 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:16 +0900
commit9623e1f23855f342de09795229d5a5ade0a7417b (patch)
tree648cc9d602d4de84fdafab7063d83c309142ffc9 /src/lib/evas/include/evas_filter.h
parenta87ef5735d07960d247b05b9a78cac9382a6f051 (diff)
Evas filters: Pass fillmode to the filters
I just need to actually implement them, now :)
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 655225feda..4fe04f7a30 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -121,9 +121,10 @@ Eina_Bool evas_filter_run(Evas_Filter_Context *ctx, Eina_Bool do_
121 * @param outbuf Destination buffer: ALPHA or RGBA (note: must be RGBA if inbuf is RGBA) 121 * @param outbuf Destination buffer: ALPHA or RGBA (note: must be RGBA if inbuf is RGBA)
122 * @param ox X offset in the destination buffer 122 * @param ox X offset in the destination buffer
123 * @param oy Y offset in the destination buffer 123 * @param oy Y offset in the destination buffer
124 * @param fillmode Specifies whether to repeat or stretch the input onto its destination, and on which axes
124 * @return Filter command ID or -1 in case of error 125 * @return Filter command ID or -1 in case of error
125 */ 126 */
126int evas_filter_command_blend_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int ox, int oy); 127int 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);
127 128
128/** 129/**
129 * @brief Apply a blur effect on a buffer 130 * @brief Apply a blur effect on a buffer
@@ -172,9 +173,10 @@ int evas_filter_command_grow_add(Evas_Filter_Context *ctx,
172 * @param dispbuf Displacement map. Should be an RGBA buffer, where the Red and Green channels are the displacement maps for X and Y. Can be also ALPHA buffer, in which case only one dimension can be specified (X or Y). 173 * @param dispbuf Displacement map. Should be an RGBA buffer, where the Red and Green channels are the displacement maps for X and Y. Can be also ALPHA buffer, in which case only one dimension can be specified (X or Y).
173 * @param flags Alters how the map is interpreted, @see Evas_Filter_Displacement_Flags 174 * @param flags Alters how the map is interpreted, @see Evas_Filter_Displacement_Flags
174 * @param intensity Maximum offset possible, if the map's value is maximal at this point (ie. 0 or 255) 175 * @param intensity Maximum offset possible, if the map's value is maximal at this point (ie. 0 or 255)
176 * @param fillmode Specifies how to repeat and stretch the map to fit the target size
175 * @return Filter command ID or -1 in case of error 177 * @return Filter command ID or -1 in case of error
176 */ 178 */
177int evas_filter_command_displacement_map_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int dispbuf, Evas_Filter_Displacement_Flags flags, int intensity); 179int evas_filter_command_displacement_map_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int outbuf, int dispbuf, Evas_Filter_Displacement_Flags flags, int intensity, Evas_Filter_Fill_Mode fillmode);
178 180
179/** 181/**
180 * @brief Apply a texture to a buffer 182 * @brief Apply a texture to a buffer
@@ -183,10 +185,11 @@ int evas_filter_command_displacement_map_add(Evas_Filter_Co
183 * @param inbuf Input buffer (Alpha or RGBA) 185 * @param inbuf Input buffer (Alpha or RGBA)
184 * @param maskbuf Texture buffer (Alpha or RGBA) 186 * @param maskbuf Texture buffer (Alpha or RGBA)
185 * @param outbuf Output buffer (Alpha or RGBA) 187 * @param outbuf Output buffer (Alpha or RGBA)
188 * @param fillmode Specifies how to repeat and stretch the mask to fit the target size
186 * @return Filter command ID or -1 in case of error 189 * @return Filter command ID or -1 in case of error
187 * @note For the moment, inbuf can only be ALPHA, and output must be RGBA if mask is RGBA as well 190 * @note For the moment, inbuf can only be ALPHA, and output must be RGBA if mask is RGBA as well
188 */ 191 */
189int evas_filter_command_mask_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int maskbuf, int outbuf); 192int evas_filter_command_mask_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int maskbuf, int outbuf, Evas_Filter_Fill_Mode fillmode);
190 193
191/** 194/**
192 * @brief Apply a relief effect based on a bump map (Z map) 195 * @brief Apply a relief effect based on a bump map (Z map)
@@ -203,9 +206,10 @@ int evas_filter_command_mask_add(Evas_Filter_Context *ctx,
203 * @param color Light's normal color 206 * @param color Light's normal color
204 * @param white Brightest color, used in the shininess effect 207 * @param white Brightest color, used in the shininess effect
205 * @param flags Optional flags: compensation for darkening 208 * @param flags Optional flags: compensation for darkening
209 * @param fillmode Specifies how to repeat and stretch the map to fit the target size
206 * @return Filter command ID or -1 in case of error 210 * @return Filter command ID or -1 in case of error
207 */ 211 */
208int evas_filter_command_bump_map_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int bumpbuf, int outbuf, float azimuth, float elevation, float depth, float specular_factor, DATA32 black, DATA32 color, DATA32 white, Evas_Filter_Bump_Flags flags); 212int evas_filter_command_bump_map_add(Evas_Filter_Context *ctx, void *draw_context, int inbuf, int bumpbuf, int outbuf, float azimuth, float elevation, float depth, float specular_factor, DATA32 black, DATA32 color, DATA32 white, Evas_Filter_Bump_Flags flags, Evas_Filter_Fill_Mode fillmode);
209 213
210#endif 214#endif
211 215