summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-19 19:37:19 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-20 13:27:43 +0900
commitc256bdc367118b3aebf845623496c48031708e47 (patch)
tree3c19a98b2de23dbd77eb4fae7e418618bacdae87 /src
parent2fe5656b639072880f2e1de9e1ab99852bf99e74 (diff)
Evas filters: Fix documentation for color with rgba buffers
The documentation said color was used as a multiplier, but in reality the image drawing functions don't use the context's color when drawing. So the color is only defined for Alpha -> RGBA operations.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/filters/evas_filter_parser.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c
index cb9c18a015..c3a401b1b1 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -976,9 +976,10 @@ _blend_padding_update(Evas_Filter_Program *pgm, Evas_Filter_Instruction *instr,
976 @param dst Destination buffer for blending. 976 @param dst Destination buffer for blending.
977 @param ox X offset. Moves the buffer to the right (ox > 0) or to the left (ox < 0) by N pixels. 977 @param ox X offset. Moves the buffer to the right (ox > 0) or to the left (ox < 0) by N pixels.
978 @param oy Y offset. Moves the buffer to the bottom (oy > 0) or to the top (oy < 0) by N pixels. 978 @param oy Y offset. Moves the buffer to the bottom (oy > 0) or to the top (oy < 0) by N pixels.
979 @param color A color to use as multiplier. See @ref evasfilters_color "colors". <br> 979 @param color A color to use for alpha to RGBA conversion. See @ref evasfilters_color "colors". <br>
980 If the input is an alpha buffer and the output is RGBA, this will 980 If the input is an alpha buffer and the output is RGBA, this will
981 draw the buffer in this color. 981 draw the buffer in this color. If both buffers are RGBA, this will
982 have no effect.
982 @param fillmode Map the input onto the whole surface of the output by stretching or 983 @param fillmode Map the input onto the whole surface of the output by stretching or
983 repeating it. See @ref evasfilter_fillmode "fillmodes". 984 repeating it. See @ref evasfilter_fillmode "fillmodes".
984 985
@@ -1069,7 +1070,7 @@ _blur_padding_update(Evas_Filter_Program *pgm, Evas_Filter_Instruction *instr,
1069 @param type Blur type to apply. One of @c default, @c box or @c gaussian. @c default is an alias for @c gaussian. 1070 @param type Blur type to apply. One of @c default, @c box or @c gaussian. @c default is an alias for @c gaussian.
1070 @param ox X offset. Moves the buffer to the right (@a ox > 0) or to the left (@a ox < 0) by N pixels. 1071 @param ox X offset. Moves the buffer to the right (@a ox > 0) or to the left (@a ox < 0) by N pixels.
1071 @param oy Y offset. Moves the buffer to the bottom (@a oy > 0) or to the top (@a oy < 0) by N pixels. 1072 @param oy Y offset. Moves the buffer to the bottom (@a oy > 0) or to the top (@a oy < 0) by N pixels.
1072 @param color A color to use as multiplier. See @ref evasfilters_color "colors". <br> 1073 @param color A color to use for alpha to RGBA conversion. See @ref evasfilters_color "colors". <br>
1073 If the input is an alpha buffer and the output is RGBA, this will 1074 If the input is an alpha buffer and the output is RGBA, this will
1074 draw the buffer in this color. 1075 draw the buffer in this color.
1075 @param src Source buffer to blur. 1076 @param src Source buffer to blur.
@@ -1478,7 +1479,7 @@ _grow_instruction_prepare(Evas_Filter_Instruction *instr)
1478 1479
1479 @subsection sec_commands_mask Mask 1480 @subsection sec_commands_mask Mask
1480 1481
1481 Blend two buffers into a destination. 1482 Blend two input buffers into a third (target).
1482 1483
1483 @code 1484 @code
1484 mask (mask, src = input, dst = output, color = white, fillmode = none); 1485 mask (mask, src = input, dst = output, color = white, fillmode = none);
@@ -1487,7 +1488,8 @@ _grow_instruction_prepare(Evas_Filter_Instruction *instr)
1487 @param mask A mask or texture to blend with the input @a src into the target @a dst. 1488 @param mask A mask or texture to blend with the input @a src into the target @a dst.
1488 @param src Source buffer. This can also be thought of a mask if @a src is alpha and @a mask is RGBA. 1489 @param src Source buffer. This can also be thought of a mask if @a src is alpha and @a mask is RGBA.
1489 @param dst Destination buffer for blending. This must be of same size and colorspace as @a src. 1490 @param dst Destination buffer for blending. This must be of same size and colorspace as @a src.
1490 @param color A color to use as multiplier for the blend operation. White means no change. See @ref evasfilters_color "colors". 1491 @param color A color to use for alpha to RGBA conversion for the blend operations. White means no change.
1492 See @ref evasfilters_color "colors". This will have no effect on RGBA sources.
1491 @param fillmode Defines whether to stretch or repeat the @a mask if its size that of @src. Should be set when masking with external textures. Default is none. See @ref evasfilter_fillmode "fillmodes". 1493 @param fillmode Defines whether to stretch or repeat the @a mask if its size that of @src. Should be set when masking with external textures. Default is none. See @ref evasfilter_fillmode "fillmodes".
1492 1494
1493 Note that @a src and @a mask are interchangeable, if they have the same dimensions. 1495 Note that @a src and @a mask are interchangeable, if they have the same dimensions.