summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-05-02 06:57:59 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-05-02 06:57:59 +0000
commitd6821d5d8b710e215e7a82984d6e891f0d547fdd (patch)
treedf993984168e7456cc090db548938d15e00c77d0 /src
parent22b8898cfab0631fcce0229d271a9a5c06d0f69f (diff)
expedite: don't overallocate things.
SVN revision: 70609
Diffstat (limited to 'src')
-rw-r--r--src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c5
-rw-r--r--src/bin/image_data_ycbcr601pl_map_solid_rotate.c5
-rw-r--r--src/bin/image_map_3d_1.c5
-rw-r--r--src/bin/image_map_3d_2.c5
-rw-r--r--src/bin/image_map_3d_3.c5
-rw-r--r--src/bin/image_map_3d_4.c5
-rw-r--r--src/bin/image_map_3d_5.c5
-rw-r--r--src/bin/image_map_3d_6.c5
-rw-r--r--src/bin/image_map_3d_flow.c5
-rw-r--r--src/bin/image_map_color_alpha_nearest_rotate.c5
-rw-r--r--src/bin/image_map_color_alpha_nearest_solid_rotate.c5
-rw-r--r--src/bin/image_map_color_alpha_rotate.c5
-rw-r--r--src/bin/image_map_color_alpha_solid_rotate.c5
-rw-r--r--src/bin/image_map_color_nearest_rotate.c5
-rw-r--r--src/bin/image_map_color_nearest_solid_rotate.c5
-rw-r--r--src/bin/image_map_color_rotate.c5
-rw-r--r--src/bin/image_map_color_solid_rotate.c5
-rw-r--r--src/bin/image_map_nearest_rotate.c5
-rw-r--r--src/bin/image_map_nearest_solid_rotate.c5
-rw-r--r--src/bin/image_map_rotate.c5
-rw-r--r--src/bin/image_map_solid_rotate.c5
-rw-r--r--src/bin/image_mask_10.c5
-rw-r--r--src/bin/image_mask_11.c5
-rw-r--r--src/bin/image_mask_9.c5
24 files changed, 48 insertions, 72 deletions
diff --git a/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c b/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
index 85d9a58..3b827fa 100644
--- a/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
+++ b/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
@@ -85,9 +85,9 @@ static void _cleanup(void)
85static void _loop(double t, int f) 85static void _loop(double t, int f)
86{ 86{
87 int i; 87 int i;
88 Evas_Map *m; 88 static Evas_Map *m = NULL;
89 Evas_Coord x, y, w, h; 89 Evas_Coord x, y, w, h;
90 m = evas_map_new(4); 90 if (!m) m = evas_map_new(4);
91 evas_map_smooth_set(m, 0); 91 evas_map_smooth_set(m, 0);
92 for (i = 0; i < 1; i++) 92 for (i = 0; i < 1; i++)
93 { 93 {
@@ -103,7 +103,6 @@ static void _loop(double t, int f)
103 evas_object_map_enable_set(o_images[i], 1); 103 evas_object_map_enable_set(o_images[i], 1);
104 evas_object_map_set(o_images[i], m); 104 evas_object_map_set(o_images[i], m);
105 } 105 }
106 evas_map_free(m);
107 FPS_STD(NAME); 106 FPS_STD(NAME);
108} 107}
109 108
diff --git a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
index 6c7218f..290f716 100644
--- a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
+++ b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
@@ -84,9 +84,9 @@ static void _cleanup(void)
84static void _loop(double t, int f) 84static void _loop(double t, int f)
85{ 85{
86 int i; 86 int i;
87 Evas_Map *m; 87 static Evas_Map *m = NULL;
88 Evas_Coord x, y, w, h; 88 Evas_Coord x, y, w, h;
89 m = evas_map_new(4); 89 if (!m) m = evas_map_new(4);
90 for (i = 0; i < 1; i++) 90 for (i = 0; i < 1; i++)
91 { 91 {
92 w = 640; 92 w = 640;
@@ -101,7 +101,6 @@ static void _loop(double t, int f)
101 evas_object_map_enable_set(o_images[i], 1); 101 evas_object_map_enable_set(o_images[i], 1);
102 evas_object_map_set(o_images[i], m); 102 evas_object_map_set(o_images[i], m);
103 } 103 }
104 evas_map_free(m);
105 FPS_STD(NAME); 104 FPS_STD(NAME);
106} 105}
107 106
diff --git a/src/bin/image_map_3d_1.c b/src/bin/image_map_3d_1.c
index 7b15556..d3b65b8 100644
--- a/src/bin/image_map_3d_1.c
+++ b/src/bin/image_map_3d_1.c
@@ -101,11 +101,11 @@ _cube_pos(Cube *c,
101 Evas_Coord x, Evas_Coord y, Evas_Coord z, 101 Evas_Coord x, Evas_Coord y, Evas_Coord z,
102 double dx, double dy, double dz) 102 double dx, double dy, double dz)
103{ 103{
104 Evas_Map *m; 104 static Evas_Map *m = NULL;
105 int i, j, order[6], sorted; 105 int i, j, order[6], sorted;
106 Evas_Coord mz[6]; 106 Evas_Coord mz[6];
107 107
108 m = evas_map_new(4); 108 if (!m) m = evas_map_new(4);
109 evas_map_smooth_set(m, 0); 109 evas_map_smooth_set(m, 0);
110 110
111 for (i = 0; i < 6; i++) 111 for (i = 0; i < 6; i++)
@@ -162,7 +162,6 @@ _cube_pos(Cube *c,
162 evas_object_raise(c->side[order[0]].o); 162 evas_object_raise(c->side[order[0]].o);
163 for (i = 1; i < 6; i++) 163 for (i = 1; i < 6; i++)
164 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 164 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
165 evas_map_free(m);
166} 165}
167 166
168static void 167static void
diff --git a/src/bin/image_map_3d_2.c b/src/bin/image_map_3d_2.c
index c5fa2b9..9d10462 100644
--- a/src/bin/image_map_3d_2.c
+++ b/src/bin/image_map_3d_2.c
@@ -100,11 +100,11 @@ _cube_pos(Cube *c,
100 Evas_Coord x, Evas_Coord y, Evas_Coord z, 100 Evas_Coord x, Evas_Coord y, Evas_Coord z,
101 double dx, double dy, double dz) 101 double dx, double dy, double dz)
102{ 102{
103 Evas_Map *m; 103 static Evas_Map *m = NULL;
104 int i, j, order[6], sorted; 104 int i, j, order[6], sorted;
105 Evas_Coord mz[6]; 105 Evas_Coord mz[6];
106 106
107 m = evas_map_new(4); 107 if (!m) m = evas_map_new(4);
108 108
109 for (i = 0; i < 6; i++) 109 for (i = 0; i < 6; i++)
110 { 110 {
@@ -160,7 +160,6 @@ _cube_pos(Cube *c,
160 evas_object_raise(c->side[order[0]].o); 160 evas_object_raise(c->side[order[0]].o);
161 for (i = 1; i < 6; i++) 161 for (i = 1; i < 6; i++)
162 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 162 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
163 evas_map_free(m);
164} 163}
165 164
166static void 165static void
diff --git a/src/bin/image_map_3d_3.c b/src/bin/image_map_3d_3.c
index 54c0fc9..09ce38d 100644
--- a/src/bin/image_map_3d_3.c
+++ b/src/bin/image_map_3d_3.c
@@ -101,11 +101,11 @@ _cube_pos(Cube *c,
101 Evas_Coord x, Evas_Coord y, Evas_Coord z, 101 Evas_Coord x, Evas_Coord y, Evas_Coord z,
102 double dx, double dy, double dz) 102 double dx, double dy, double dz)
103{ 103{
104 Evas_Map *m; 104 static Evas_Map *m = NULL;
105 int i, j, order[6], sorted; 105 int i, j, order[6], sorted;
106 Evas_Coord mz[6]; 106 Evas_Coord mz[6];
107 107
108 m = evas_map_new(4); 108 if (!m) m = evas_map_new(4);
109 evas_map_smooth_set(m, 0); 109 evas_map_smooth_set(m, 0);
110 110
111 for (i = 0; i < 6; i++) 111 for (i = 0; i < 6; i++)
@@ -156,7 +156,6 @@ _cube_pos(Cube *c,
156 evas_object_raise(c->side[order[0]].o); 156 evas_object_raise(c->side[order[0]].o);
157 for (i = 1; i < 6; i++) 157 for (i = 1; i < 6; i++)
158 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 158 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
159 evas_map_free(m);
160} 159}
161 160
162static void 161static void
diff --git a/src/bin/image_map_3d_4.c b/src/bin/image_map_3d_4.c
index 0afb349..9f54835 100644
--- a/src/bin/image_map_3d_4.c
+++ b/src/bin/image_map_3d_4.c
@@ -100,11 +100,11 @@ _cube_pos(Cube *c,
100 Evas_Coord x, Evas_Coord y, Evas_Coord z, 100 Evas_Coord x, Evas_Coord y, Evas_Coord z,
101 double dx, double dy, double dz) 101 double dx, double dy, double dz)
102{ 102{
103 Evas_Map *m; 103 static Evas_Map *m = NULL;
104 int i, j, order[6], sorted; 104 int i, j, order[6], sorted;
105 Evas_Coord mz[6]; 105 Evas_Coord mz[6];
106 106
107 m = evas_map_new(4); 107 if (!m) m = evas_map_new(4);
108 108
109 for (i = 0; i < 6; i++) 109 for (i = 0; i < 6; i++)
110 { 110 {
@@ -154,7 +154,6 @@ _cube_pos(Cube *c,
154 evas_object_raise(c->side[order[0]].o); 154 evas_object_raise(c->side[order[0]].o);
155 for (i = 1; i < 6; i++) 155 for (i = 1; i < 6; i++)
156 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 156 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
157 evas_map_free(m);
158} 157}
159 158
160static void 159static void
diff --git a/src/bin/image_map_3d_5.c b/src/bin/image_map_3d_5.c
index b2aabdd..9d5c390 100644
--- a/src/bin/image_map_3d_5.c
+++ b/src/bin/image_map_3d_5.c
@@ -101,11 +101,11 @@ _cube_pos(Cube *c,
101 Evas_Coord x, Evas_Coord y, Evas_Coord z, 101 Evas_Coord x, Evas_Coord y, Evas_Coord z,
102 double dx, double dy, double dz) 102 double dx, double dy, double dz)
103{ 103{
104 Evas_Map *m; 104 static Evas_Map *m = NULL;
105 int i, j, order[6], sorted; 105 int i, j, order[6], sorted;
106 Evas_Coord mz[6]; 106 Evas_Coord mz[6];
107 107
108 m = evas_map_new(4); 108 if (!m) m = evas_map_new(4);
109 evas_map_smooth_set(m, 0); 109 evas_map_smooth_set(m, 0);
110 110
111 for (i = 0; i < 6; i++) 111 for (i = 0; i < 6; i++)
@@ -162,7 +162,6 @@ _cube_pos(Cube *c,
162 evas_object_raise(c->side[order[0]].o); 162 evas_object_raise(c->side[order[0]].o);
163 for (i = 1; i < 6; i++) 163 for (i = 1; i < 6; i++)
164 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 164 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
165 evas_map_free(m);
166} 165}
167 166
168static void 167static void
diff --git a/src/bin/image_map_3d_6.c b/src/bin/image_map_3d_6.c
index 96d1862..74716a2 100644
--- a/src/bin/image_map_3d_6.c
+++ b/src/bin/image_map_3d_6.c
@@ -101,11 +101,11 @@ _cube_pos(Cube *c,
101 Evas_Coord x, Evas_Coord y, Evas_Coord z, 101 Evas_Coord x, Evas_Coord y, Evas_Coord z,
102 double dx, double dy, double dz) 102 double dx, double dy, double dz)
103{ 103{
104 Evas_Map *m; 104 Evas_Map *m = NULL;
105 int i, j, order[6], sorted; 105 int i, j, order[6], sorted;
106 Evas_Coord mz[6]; 106 Evas_Coord mz[6];
107 107
108 m = evas_map_new(4); 108 if (!m) m = evas_map_new(4);
109 evas_map_smooth_set(m, 0); 109 evas_map_smooth_set(m, 0);
110 110
111 for (i = 0; i < 6; i++) 111 for (i = 0; i < 6; i++)
@@ -159,7 +159,6 @@ _cube_pos(Cube *c,
159 evas_object_raise(c->side[order[0]].o); 159 evas_object_raise(c->side[order[0]].o);
160 for (i = 1; i < 6; i++) 160 for (i = 1; i < 6; i++)
161 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o); 161 evas_object_stack_below(c->side[order[i]].o, c->side[order[i - 1]].o);
162 evas_map_free(m);
163} 162}
164 163
165static void 164static void
diff --git a/src/bin/image_map_3d_flow.c b/src/bin/image_map_3d_flow.c
index 55ac295..80c1b0c 100644
--- a/src/bin/image_map_3d_flow.c
+++ b/src/bin/image_map_3d_flow.c
@@ -62,12 +62,12 @@ static void _cleanup(void)
62static void _loop(double t, int f) 62static void _loop(double t, int f)
63{ 63{
64 int i; 64 int i;
65 Evas_Map *m; 65 static Evas_Map *m = NULL;
66 Evas_Coord x, y, xx, yy, w, h, c, z; 66 Evas_Coord x, y, xx, yy, w, h, c, z;
67 int center = 150; 67 int center = 150;
68 double ang, n; 68 double ang, n;
69 69
70 m = evas_map_new(4); 70 if (!m) m = evas_map_new(4);
71 evas_map_smooth_set(m, 0); 71 evas_map_smooth_set(m, 0);
72 72
73 for (i = 0; i < CNUM; i++) 73 for (i = 0; i < CNUM; i++)
@@ -180,7 +180,6 @@ static void _loop(double t, int f)
180 evas_object_map_enable_set(o_reflec[i], 1); 180 evas_object_map_enable_set(o_reflec[i], 1);
181 evas_object_map_set(o_reflec[i], m); 181 evas_object_map_set(o_reflec[i], m);
182 } 182 }
183 evas_map_free(m);
184 183
185 FPS_STD(NAME); 184 FPS_STD(NAME);
186} 185}
diff --git a/src/bin/image_map_color_alpha_nearest_rotate.c b/src/bin/image_map_color_alpha_nearest_rotate.c
index b5566c1..a515c25 100644
--- a/src/bin/image_map_color_alpha_nearest_rotate.c
+++ b/src/bin/image_map_color_alpha_nearest_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -71,7 +71,6 @@ static void _loop(double t, int f)
71 evas_object_map_enable_set(o_images[i], 1); 71 evas_object_map_enable_set(o_images[i], 1);
72 evas_object_map_set(o_images[i], m); 72 evas_object_map_set(o_images[i], m);
73 } 73 }
74 evas_map_free(m);
75 FPS_STD(NAME); 74 FPS_STD(NAME);
76} 75}
77 76
diff --git a/src/bin/image_map_color_alpha_nearest_solid_rotate.c b/src/bin/image_map_color_alpha_nearest_solid_rotate.c
index 2634f79..c8012dd 100644
--- a/src/bin/image_map_color_alpha_nearest_solid_rotate.c
+++ b/src/bin/image_map_color_alpha_nearest_solid_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -71,7 +71,6 @@ static void _loop(double t, int f)
71 evas_object_map_enable_set(o_images[i], 1); 71 evas_object_map_enable_set(o_images[i], 1);
72 evas_object_map_set(o_images[i], m); 72 evas_object_map_set(o_images[i], m);
73 } 73 }
74 evas_map_free(m);
75 FPS_STD(NAME); 74 FPS_STD(NAME);
76} 75}
77 76
diff --git a/src/bin/image_map_color_alpha_rotate.c b/src/bin/image_map_color_alpha_rotate.c
index 5bf479c..9b7511d 100644
--- a/src/bin/image_map_color_alpha_rotate.c
+++ b/src/bin/image_map_color_alpha_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -69,7 +69,6 @@ static void _loop(double t, int f)
69 evas_object_map_enable_set(o_images[i], 1); 69 evas_object_map_enable_set(o_images[i], 1);
70 evas_object_map_set(o_images[i], m); 70 evas_object_map_set(o_images[i], m);
71 } 71 }
72 evas_map_free(m);
73 FPS_STD(NAME); 72 FPS_STD(NAME);
74} 73}
75 74
diff --git a/src/bin/image_map_color_alpha_solid_rotate.c b/src/bin/image_map_color_alpha_solid_rotate.c
index 223d9d7..d748b8d 100644
--- a/src/bin/image_map_color_alpha_solid_rotate.c
+++ b/src/bin/image_map_color_alpha_solid_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -68,7 +68,6 @@ static void _loop(double t, int f)
68 evas_object_map_enable_set(o_images[i], 1); 68 evas_object_map_enable_set(o_images[i], 1);
69 evas_object_map_set(o_images[i], m); 69 evas_object_map_set(o_images[i], m);
70 } 70 }
71 evas_map_free(m);
72 FPS_STD(NAME); 71 FPS_STD(NAME);
73} 72}
74 73
diff --git a/src/bin/image_map_color_nearest_rotate.c b/src/bin/image_map_color_nearest_rotate.c
index 8bc6024..1cfcc1f 100644
--- a/src/bin/image_map_color_nearest_rotate.c
+++ b/src/bin/image_map_color_nearest_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -71,7 +71,6 @@ static void _loop(double t, int f)
71 evas_object_map_enable_set(o_images[i], 1); 71 evas_object_map_enable_set(o_images[i], 1);
72 evas_object_map_set(o_images[i], m); 72 evas_object_map_set(o_images[i], m);
73 } 73 }
74 evas_map_free(m);
75 FPS_STD(NAME); 74 FPS_STD(NAME);
76} 75}
77 76
diff --git a/src/bin/image_map_color_nearest_solid_rotate.c b/src/bin/image_map_color_nearest_solid_rotate.c
index 3a59396..868f59c 100644
--- a/src/bin/image_map_color_nearest_solid_rotate.c
+++ b/src/bin/image_map_color_nearest_solid_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -71,7 +71,6 @@ static void _loop(double t, int f)
71 evas_object_map_enable_set(o_images[i], 1); 71 evas_object_map_enable_set(o_images[i], 1);
72 evas_object_map_set(o_images[i], m); 72 evas_object_map_set(o_images[i], m);
73 } 73 }
74 evas_map_free(m);
75 FPS_STD(NAME); 74 FPS_STD(NAME);
76} 75}
77 76
diff --git a/src/bin/image_map_color_rotate.c b/src/bin/image_map_color_rotate.c
index 9d00172..026e456 100644
--- a/src/bin/image_map_color_rotate.c
+++ b/src/bin/image_map_color_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -69,7 +69,6 @@ static void _loop(double t, int f)
69 evas_object_map_enable_set(o_images[i], 1); 69 evas_object_map_enable_set(o_images[i], 1);
70 evas_object_map_set(o_images[i], m); 70 evas_object_map_set(o_images[i], m);
71 } 71 }
72 evas_map_free(m);
73 FPS_STD(NAME); 72 FPS_STD(NAME);
74} 73}
75 74
diff --git a/src/bin/image_map_color_solid_rotate.c b/src/bin/image_map_color_solid_rotate.c
index ad83259..91e4a3a 100644
--- a/src/bin/image_map_color_solid_rotate.c
+++ b/src/bin/image_map_color_solid_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -69,7 +69,6 @@ static void _loop(double t, int f)
69 evas_object_map_enable_set(o_images[i], 1); 69 evas_object_map_enable_set(o_images[i], 1);
70 evas_object_map_set(o_images[i], m); 70 evas_object_map_set(o_images[i], m);
71 } 71 }
72 evas_map_free(m);
73 FPS_STD(NAME); 72 FPS_STD(NAME);
74} 73}
75 74
diff --git a/src/bin/image_map_nearest_rotate.c b/src/bin/image_map_nearest_rotate.c
index d3ba537..aaa8ff7 100644
--- a/src/bin/image_map_nearest_rotate.c
+++ b/src/bin/image_map_nearest_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -66,7 +66,6 @@ static void _loop(double t, int f)
66 evas_object_map_enable_set(o_images[i], 1); 66 evas_object_map_enable_set(o_images[i], 1);
67 evas_object_map_set(o_images[i], m); 67 evas_object_map_set(o_images[i], m);
68 } 68 }
69 evas_map_free(m);
70 FPS_STD(NAME); 69 FPS_STD(NAME);
71} 70}
72 71
diff --git a/src/bin/image_map_nearest_solid_rotate.c b/src/bin/image_map_nearest_solid_rotate.c
index 1816886..3c2696f 100644
--- a/src/bin/image_map_nearest_solid_rotate.c
+++ b/src/bin/image_map_nearest_solid_rotate.c
@@ -46,9 +46,9 @@ static void _cleanup(void)
46static void _loop(double t, int f) 46static void _loop(double t, int f)
47{ 47{
48 int i; 48 int i;
49 Evas_Map *m; 49 static Evas_Map *m = NULL;
50 Evas_Coord x, y, w, h; 50 Evas_Coord x, y, w, h;
51 m = evas_map_new(4); 51 if (!m) m = evas_map_new(4);
52 evas_map_smooth_set(m, 0); 52 evas_map_smooth_set(m, 0);
53 for (i = 0; i < (OBNUM / 2); i++) 53 for (i = 0; i < (OBNUM / 2); i++)
54 { 54 {
@@ -66,7 +66,6 @@ static void _loop(double t, int f)
66 evas_object_map_enable_set(o_images[i], 1); 66 evas_object_map_enable_set(o_images[i], 1);
67 evas_object_map_set(o_images[i], m); 67 evas_object_map_set(o_images[i], m);
68 } 68 }
69 evas_map_free(m);
70 FPS_STD(NAME); 69 FPS_STD(NAME);
71} 70}
72 71
diff --git a/src/bin/image_map_rotate.c b/src/bin/image_map_rotate.c
index 9089f48..d84f84b 100644
--- a/src/bin/image_map_rotate.c
+++ b/src/bin/image_map_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -64,7 +64,6 @@ static void _loop(double t, int f)
64 evas_object_map_enable_set(o_images[i], 1); 64 evas_object_map_enable_set(o_images[i], 1);
65 evas_object_map_set(o_images[i], m); 65 evas_object_map_set(o_images[i], m);
66 } 66 }
67 evas_map_free(m);
68 FPS_STD(NAME); 67 FPS_STD(NAME);
69} 68}
70 69
diff --git a/src/bin/image_map_solid_rotate.c b/src/bin/image_map_solid_rotate.c
index bdb8630..fc0b3ce 100644
--- a/src/bin/image_map_solid_rotate.c
+++ b/src/bin/image_map_solid_rotate.c
@@ -45,9 +45,9 @@ static void _cleanup(void)
45static void _loop(double t, int f) 45static void _loop(double t, int f)
46{ 46{
47 int i; 47 int i;
48 Evas_Map *m; 48 static Evas_Map *m = NULL;
49 Evas_Coord x, y, w, h; 49 Evas_Coord x, y, w, h;
50 m = evas_map_new(4); 50 if (!m) m = evas_map_new(4);
51 for (i = 0; i < (OBNUM / 2); i++) 51 for (i = 0; i < (OBNUM / 2); i++)
52 { 52 {
53 w = 120; 53 w = 120;
@@ -64,7 +64,6 @@ static void _loop(double t, int f)
64 evas_object_map_enable_set(o_images[i], 1); 64 evas_object_map_enable_set(o_images[i], 1);
65 evas_object_map_set(o_images[i], m); 65 evas_object_map_set(o_images[i], m);
66 } 66 }
67 evas_map_free(m);
68 FPS_STD(NAME); 67 FPS_STD(NAME);
69} 68}
70 69
diff --git a/src/bin/image_mask_10.c b/src/bin/image_mask_10.c
index ab89b9d..721c56e 100644
--- a/src/bin/image_mask_10.c
+++ b/src/bin/image_mask_10.c
@@ -56,22 +56,21 @@ static void _cleanup(void)
56static void _loop(double t, int f) 56static void _loop(double t, int f)
57{ 57{
58 int i; 58 int i;
59 Evas_Map *m; 59 static Evas_Map *m = NULL;
60 Evas_Coord x, y, w, h; 60 Evas_Coord x, y, w, h;
61 if (!m) m = evas_map_new(4);
61 for (i = 0; i < 1; i++) 62 for (i = 0; i < 1; i++)
62 { 63 {
63 w = win_w * 4; 64 w = win_w * 4;
64 h = win_h * 4; 65 h = win_h * 4;
65 x = (win_w / 2) - (w / 2); 66 x = (win_w / 2) - (w / 2);
66 y = (win_h / 2) - (h / 2); 67 y = (win_h / 2) - (h / 2);
67 m = evas_map_new(4);
68 evas_map_util_points_populate_from_geometry(m, 68 evas_map_util_points_populate_from_geometry(m,
69 -win_w, -win_h, 69 -win_w, -win_h,
70 win_w * 4, win_h * 4, 0); 70 win_w * 4, win_h * 4, 0);
71 evas_map_util_rotate(m, f, win_w / 2, win_h / 2); 71 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
72 evas_object_map_enable_set(o_images[i], 1); 72 evas_object_map_enable_set(o_images[i], 1);
73 evas_object_map_set(o_images[i], m); 73 evas_object_map_set(o_images[i], m);
74 evas_map_free(m);
75 } 74 }
76 FPS_STD(NAME); 75 FPS_STD(NAME);
77} 76}
diff --git a/src/bin/image_mask_11.c b/src/bin/image_mask_11.c
index 0b0a67a..8489bc9 100644
--- a/src/bin/image_mask_11.c
+++ b/src/bin/image_mask_11.c
@@ -56,7 +56,7 @@ static void _cleanup(void)
56static void _loop(double t, int f) 56static void _loop(double t, int f)
57{ 57{
58 int i; 58 int i;
59 Evas_Map *m; 59 static Evas_Map *m = NULL;
60 Evas_Coord x, y, w, h; 60 Evas_Coord x, y, w, h;
61 for (i = 0; i < OBNUM; i++) 61 for (i = 0; i < OBNUM; i++)
62 { 62 {
@@ -68,7 +68,7 @@ static void _loop(double t, int f)
68 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); 68 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
69 evas_object_move(o_images[i], x, y); 69 evas_object_move(o_images[i], x, y);
70 } 70 }
71 m = evas_map_new(4); 71 if (!m) m = evas_map_new(4);
72 evas_map_util_points_populate_from_geometry(m, 72 evas_map_util_points_populate_from_geometry(m,
73 (win_w - 720) / 2, 73 (win_w - 720) / 2,
74 (win_h - 420) / 2, 74 (win_h - 420) / 2,
@@ -76,7 +76,6 @@ static void _loop(double t, int f)
76 evas_map_util_rotate(m, f, win_w / 2, win_h / 2); 76 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
77 evas_object_map_enable_set(o_mask, 1); 77 evas_object_map_enable_set(o_mask, 1);
78 evas_object_map_set(o_mask, m); 78 evas_object_map_set(o_mask, m);
79 evas_map_free(m);
80 FPS_STD(NAME); 79 FPS_STD(NAME);
81} 80}
82 81
diff --git a/src/bin/image_mask_9.c b/src/bin/image_mask_9.c
index b602ef7..f39d80e 100644
--- a/src/bin/image_mask_9.c
+++ b/src/bin/image_mask_9.c
@@ -56,7 +56,7 @@ static void _cleanup(void)
56static void _loop(double t, int f) 56static void _loop(double t, int f)
57{ 57{
58 int i; 58 int i;
59 Evas_Map *m; 59 static Evas_Map *m = NULL;
60 Evas_Coord x, y, w, h; 60 Evas_Coord x, y, w, h;
61 for (i = 0; i < 1; i++) 61 for (i = 0; i < 1; i++)
62 { 62 {
@@ -68,7 +68,7 @@ static void _loop(double t, int f)
68 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2); 68 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
69 evas_object_move(o_images[i], x, y); 69 evas_object_move(o_images[i], x, y);
70 } 70 }
71 m = evas_map_new(4); 71 if (!m) m = evas_map_new(4);
72 72
73 evas_map_util_points_populate_from_geometry(m, 73 evas_map_util_points_populate_from_geometry(m,
74 (win_w - 720) / 2, 74 (win_w - 720) / 2,
@@ -77,7 +77,6 @@ static void _loop(double t, int f)
77 evas_map_util_rotate(m, f, win_w / 2, win_h / 2); 77 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
78 evas_object_map_enable_set(o_mask, 1); 78 evas_object_map_enable_set(o_mask, 1);
79 evas_object_map_set(o_mask, m); 79 evas_object_map_set(o_mask, m);
80 evas_map_free(m);
81 FPS_STD(NAME); 80 FPS_STD(NAME);
82} 81}
83 82