summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_filter.h
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-07 10:16:39 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-07 17:33:17 +0900
commite7a67dd13b5319376f6c4681db23495bf0bdc620 (patch)
treec52e73efbee89148b09299362f1bb2175eec0bc4 /src/lib/evas/include/evas_filter.h
parentb54eb40006db3e9360b98000c1135bdcb32e8ea9 (diff)
Evas filters: Remove complicated displacement flags
The displacement effect is way too complicated. Let's keep it simple and have only one displacement map format (RG + Alpha). Here's what's missing now: - Alpha support, to blend in the input with a variable intensity - Extra padding (see below) Also, the intensity VS. map values are not perfectly defined yet. Problems: How to create a complete mirror effect (map needs to go over boundaries... add extra padding to the buffers).
Diffstat (limited to 'src/lib/evas/include/evas_filter.h')
-rw-r--r--src/lib/evas/include/evas_filter.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/evas/include/evas_filter.h b/src/lib/evas/include/evas_filter.h
index 59b430ba50..7496673789 100644
--- a/src/lib/evas/include/evas_filter.h
+++ b/src/lib/evas/include/evas_filter.h
@@ -53,20 +53,11 @@ enum _Evas_Filter_Channel
53 53
54enum _Evas_Filter_Displacement_Flags 54enum _Evas_Filter_Displacement_Flags
55{ 55{
56 EVAS_FILTER_DISPLACE_ALPHA = 0x0, /**< Displace based on Alpha values */
57 EVAS_FILTER_DISPLACE_X = 0x1, /**< X displacement */
58 EVAS_FILTER_DISPLACE_X_ALPHA = 0x1, /**< X displacement */
59 EVAS_FILTER_DISPLACE_Y = 0x2, /**< Y displacement */
60 EVAS_FILTER_DISPLACE_Y_ALPHA = 0x2, /**< Y displacement */
61 EVAS_FILTER_DISPLACE_RG = 0x4, /**< Displace based on R(G) values */
62 EVAS_FILTER_DISPLACE_XY_ALPHA = 0x3, /**< XY displacement based on alpha */
63 EVAS_FILTER_DISPLACE_XY_RG = 0x7, /**< Full 2-D displacement based on RG values */
64 EVAS_FILTER_DISPLACE_NEAREST = 0x0, /**< Interpolate between pixels (linear interpolation) */ 56 EVAS_FILTER_DISPLACE_NEAREST = 0x0, /**< Interpolate between pixels (linear interpolation) */
65 EVAS_FILTER_DISPLACE_LINEAR = 0x8, /**< Interpolate between pixels (linear interpolation) */ 57 EVAS_FILTER_DISPLACE_LINEAR = 0x1, /**< Interpolate between pixels (linear interpolation) */
66 EVAS_FILTER_DISPLACE_BLACK = 0x0, /**< Use black (or transparent) when going out of bounds) */ 58 EVAS_FILTER_DISPLACE_BLACK = 0x0, /**< Use black (or transparent) when going out of bounds) */
67 EVAS_FILTER_DISPLACE_STRETCH = 0x8, /**< Stretch border pixels when going out of bounds */ 59 EVAS_FILTER_DISPLACE_STRETCH = 0x2, /**< Stretch border pixels when going out of bounds */
68 //EVAS_FILTER_DISPLACE_WRAP = 0x10, /**< Wrap around input when displacement goes out of bounds */ 60 EVAS_FILTER_DISPLACE_BITMASK = 0x3
69 EVAS_FILTER_DISPLACE_BITMASK = 0xf
70}; 61};
71 62
72enum _Evas_Filter_Bump_Flags 63enum _Evas_Filter_Bump_Flags