summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-17 16:54:20 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-17 16:54:20 -0700
commitf8b38f6c24802fb895615c0fef14994f8083629e (patch)
treea74ac63c6e9666833e44eaf1d1a549c9d709631e
parentf9834c142cdb8c7b829d75751706a732c16bdbaa (diff)
migrate to new broken data_get/set api.
-rw-r--r--src/bin/image_data_argb.c18
-rw-r--r--src/bin/image_data_argb_alpha.c19
-rw-r--r--src/bin/image_data_ycbcr601pl.c31
-rw-r--r--src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c18
-rw-r--r--src/bin/image_data_ycbcr601pl_map_solid_rotate.c18
-rw-r--r--src/bin/image_data_ycbcr601pl_wide_stride.c98
6 files changed, 105 insertions, 97 deletions
diff --git a/src/bin/image_data_argb.c b/src/bin/image_data_argb.c
index 9d1bca5..25666fc 100644
--- a/src/bin/image_data_argb.c
+++ b/src/bin/image_data_argb.c
@@ -22,18 +22,21 @@ static void _setup(void)
22{ 22{
23 int i; 23 int i;
24 Evas_Object *o; 24 Evas_Object *o;
25 void *pixels;
26
27 pixels = malloc(sizeof (int) * 640 * 480);
25 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
26 { 29 {
27 o = eo_add(EVAS_IMAGE_CLASS, evas); 30 o = eo_add(EVAS_IMAGE_CLASS, evas);
28 o_images[i] = o; 31 o_images[i] = o;
29 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 32 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
30 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); 33 efl_gfx_buffer_alpha_set(o, 0);
31 efl_gfx_view_size_set(o, 640, 480);
32 evas_obj_image_alpha_set(o, 0);
33 efl_gfx_fill_set(o, 0, 0, 640, 480); 34 efl_gfx_fill_set(o, 0, 0, 640, 480);
34 efl_gfx_size_set(o, 640, 480); 35 efl_gfx_size_set(o, 640, 480);
35 efl_gfx_visible_set(o, EINA_TRUE); 36 efl_gfx_visible_set(o, EINA_TRUE);
37 efl_gfx_buffer_copy_set(o_images[i], pixels, 640, 480, 640 * sizeof (int), EFL_GFX_COLORSPACE_ARGB8888);
36 } 38 }
39 free(pixels);
37 done = 0; 40 done = 0;
38} 41}
39 42
@@ -60,8 +63,7 @@ static void _loop(double t, int f)
60 efl_gfx_position_set(o_images[i], x, y); 63 efl_gfx_position_set(o_images[i], x, y);
61 efl_gfx_size_set(o_images[i], w, h); 64 efl_gfx_size_set(o_images[i], w, h);
62 efl_gfx_fill_set(o_images[i], 0, 0, w, h); 65 efl_gfx_fill_set(o_images[i], 0, 0, w, h);
63 data = evas_obj_image_data_get(o_images[i], 1); 66 data = efl_gfx_buffer_get(o_images[i], 1, &w, &h, &st, NULL);
64 st = evas_obj_image_stride_get(o_images[i]);
65 st = st >> 2; 67 st = st >> 2;
66 p = data; 68 p = data;
67 for (y = 0; y < h; y++) 69 for (y = 0; y < h; y++)
@@ -73,8 +75,8 @@ static void _loop(double t, int f)
73 } 75 }
74 p += (st - w); 76 p += (st - w);
75 } 77 }
76 evas_obj_image_data_set(o_images[i], data); 78 efl_gfx_buffer_set(o_images[i], data, w, h, st << 2, EFL_GFX_COLORSPACE_ARGB8888);
77 evas_obj_image_data_update_add(o_images[i], 0, 0, w, h); 79 efl_gfx_buffer_update_add(o_images[i], 0, 0, w, h);
78 } 80 }
79 FPS_STD(NAME); 81 FPS_STD(NAME);
80} 82}
diff --git a/src/bin/image_data_argb_alpha.c b/src/bin/image_data_argb_alpha.c
index 714e092..6eb8662 100644
--- a/src/bin/image_data_argb_alpha.c
+++ b/src/bin/image_data_argb_alpha.c
@@ -22,18 +22,21 @@ static void _setup(void)
22{ 22{
23 int i; 23 int i;
24 Evas_Object *o; 24 Evas_Object *o;
25 void *pixels;
26
27 pixels = malloc(sizeof (int) * 640 * 480);
25 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
26 { 29 {
27 o = eo_add(EVAS_IMAGE_CLASS, evas); 30 o = eo_add(EVAS_IMAGE_CLASS, evas);
28 o_images[i] = o; 31 o_images[i] = o;
29 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 32 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
30 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_ARGB8888); 33 efl_gfx_buffer_alpha_set(o, 1);
31 efl_gfx_view_size_set(o, 640, 480);
32 evas_obj_image_alpha_set(o, 1);
33 efl_gfx_fill_set(o, 0, 0, 640, 480); 34 efl_gfx_fill_set(o, 0, 0, 640, 480);
34 efl_gfx_size_set(o, 640, 480); 35 efl_gfx_size_set(o, 640, 480);
35 efl_gfx_visible_set(o, EINA_TRUE); 36 efl_gfx_visible_set(o, EINA_TRUE);
37 efl_gfx_buffer_copy_set(o_images[i], pixels, 640, 480, 640 * sizeof (int), EFL_GFX_COLORSPACE_ARGB8888);
36 } 38 }
39 free(pixels);
37 done = 0; 40 done = 0;
38} 41}
39 42
@@ -53,6 +56,7 @@ static void _loop(double t, int f)
53 { 56 {
54 unsigned int *data, *p; 57 unsigned int *data, *p;
55 int a, r, g, b; 58 int a, r, g, b;
59
56 w = 640; 60 w = 640;
57 h = 480; 61 h = 480;
58 x = (win_w / 2) - (w / 2); 62 x = (win_w / 2) - (w / 2);
@@ -60,8 +64,7 @@ static void _loop(double t, int f)
60 efl_gfx_position_set(o_images[i], x, y); 64 efl_gfx_position_set(o_images[i], x, y);
61 efl_gfx_size_set(o_images[i], w, h); 65 efl_gfx_size_set(o_images[i], w, h);
62 efl_gfx_fill_set(o_images[i], 0, 0, w, h); 66 efl_gfx_fill_set(o_images[i], 0, 0, w, h);
63 data = evas_obj_image_data_get(o_images[i], 1); 67 data = efl_gfx_buffer_get(o_images[i], 1, &w, &h, &st, NULL);
64 st = evas_obj_image_stride_get(o_images[i]);
65 st = st >> 2; 68 st = st >> 2;
66 p = data; 69 p = data;
67 for (y = 0; y < h; y++) 70 for (y = 0; y < h; y++)
@@ -84,8 +87,8 @@ static void _loop(double t, int f)
84 } 87 }
85 p += (st - w); 88 p += (st - w);
86 } 89 }
87 evas_obj_image_data_set(o_images[i], data); 90 efl_gfx_buffer_set(o_images[i], data, w, h, st << 2, EFL_GFX_COLORSPACE_ARGB8888);
88 evas_obj_image_data_update_add(o_images[i], 0, 0, w, h); 91 efl_gfx_buffer_update_add(o_images[i], 0, 0, w, h);
89 } 92 }
90 FPS_STD(NAME); 93 FPS_STD(NAME);
91} 94}
diff --git a/src/bin/image_data_ycbcr601pl.c b/src/bin/image_data_ycbcr601pl.c
index 42a20a5..f28ef97 100644
--- a/src/bin/image_data_ycbcr601pl.c
+++ b/src/bin/image_data_ycbcr601pl.c
@@ -23,19 +23,20 @@ static void _setup(void)
23{ 23{
24 int i, y; 24 int i, y;
25 FILE *f; 25 FILE *f;
26 unsigned char **data, **lp; 26 unsigned char *data, **lp;
27 Evas_Object *o; 27 Evas_Object *o;
28 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
29 { 29 {
30 unsigned int length;
31
30 o = eo_add(EVAS_IMAGE_CLASS, evas); 32 o = eo_add(EVAS_IMAGE_CLASS, evas);
31 o_images[i] = o; 33 o_images[i] = o;
32 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 34 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
33 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); 35 efl_gfx_buffer_alpha_set(o, 0);
34 efl_gfx_view_size_set(o, 640, 480);
35 evas_obj_image_alpha_set(o, 0);
36 efl_gfx_fill_set(o, 0, 0, 640, 480); 36 efl_gfx_fill_set(o, 0, 0, 640, 480);
37 efl_gfx_size_set(o, 640, 480); 37 efl_gfx_size_set(o, 640, 480);
38 efl_gfx_visible_set(o, EINA_TRUE); 38 efl_gfx_visible_set(o, EINA_TRUE);
39 data = malloc(sizeof (void*) * (480 + 240 + 240));
39 yp = malloc(640 * 480); 40 yp = malloc(640 * 480);
40 up = malloc(320 * 240); 41 up = malloc(320 * 240);
41 vp = malloc(320 * 240); 42 vp = malloc(320 * 240);
@@ -47,8 +48,8 @@ static void _setup(void)
47 fread(vp, 320 * 240, 1, f); 48 fread(vp, 320 * 240, 1, f);
48 fclose(f); 49 fclose(f);
49 } 50 }
50 data = evas_object_image_data_get(o_images[i], 1); 51 lp = (unsigned char**) data;
51 lp = data; 52
52 for (y = 0; y < 480; y++) 53 for (y = 0; y < 480; y++)
53 { 54 {
54 *lp = yp + (y * 640); 55 *lp = yp + (y * 640);
@@ -64,7 +65,12 @@ static void _setup(void)
64 *lp = vp + (y * 320); 65 *lp = vp + (y * 320);
65 lp++; 66 lp++;
66 } 67 }
67 evas_obj_image_data_set(o_images[i], data); 68 efl_gfx_buffer_copy_set(o_images[i], data, 640, 480, 640 * sizeof (int), EVAS_COLORSPACE_YCBCR422P601_PL);
69 free(data);
70 // Not a real copy in fact...
71 /* free(yp); */
72 /* free(up); */
73 /* free(vp); */
68 } 74 }
69 done = 0; 75 done = 0;
70} 76}
@@ -74,9 +80,10 @@ static void _cleanup(void)
74{ 80{
75 int i; 81 int i;
76 for (i = 0; i < 1; i++) eo_del(o_images[i]); 82 for (i = 0; i < 1; i++) eo_del(o_images[i]);
77 free(yp); 83 // FIXME: the object is not destroyed anymore so we can't free the data
78 free(up); 84 /* free(yp); */
79 free(vp); 85 /* free(up); */
86 /* free(vp); */
80} 87}
81 88
82/* loop - do things */ 89/* loop - do things */
@@ -93,7 +100,7 @@ static void _loop(double t, int f)
93 efl_gfx_position_set(o_images[i], x, y); 100 efl_gfx_position_set(o_images[i], x, y);
94 efl_gfx_size_set(o_images[i], w, h); 101 efl_gfx_size_set(o_images[i], w, h);
95 efl_gfx_fill_set(o_images[i], 0, 0, w, h); 102 efl_gfx_fill_set(o_images[i], 0, 0, w, h);
96 evas_obj_image_data_update_add(o_images[i], 0, 0, 640, 480); 103 efl_gfx_buffer_update_add(o_images[i], 0, 0, 640, 480);
97 } 104 }
98 FPS_STD(NAME); 105 FPS_STD(NAME);
99} 106}
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 bc9840c..e132e77 100644
--- a/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
+++ b/src/bin/image_data_ycbcr601pl_map_nearest_solid_rotate.c
@@ -27,16 +27,17 @@ static void _setup(void)
27 Evas_Object *o; 27 Evas_Object *o;
28 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
29 { 29 {
30 unsigned int length;
31
30 o = eo_add(EVAS_IMAGE_CLASS, evas); 32 o = eo_add(EVAS_IMAGE_CLASS, evas);
31 o_images[i] = o; 33 o_images[i] = o;
32 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 34 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
33 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); 35 efl_gfx_buffer_alpha_set(o, 0);
34 efl_gfx_view_size_set(o, 640, 480);
35 evas_obj_image_alpha_set(o, 0);
36 efl_gfx_fill_set(o, 0, 0, 640, 480); 36 efl_gfx_fill_set(o, 0, 0, 640, 480);
37 efl_gfx_size_set(o, 640, 480); 37 efl_gfx_size_set(o, 640, 480);
38 efl_image_smooth_scale_set(o, 0); 38 efl_image_smooth_scale_set(o, 0);
39 efl_gfx_visible_set(o, EINA_TRUE); 39 efl_gfx_visible_set(o, EINA_TRUE);
40 data = malloc(sizeof (void*) * (480 + 240 + 240));
40 yp = malloc(640 * 480); 41 yp = malloc(640 * 480);
41 up = malloc(320 * 240); 42 up = malloc(320 * 240);
42 vp = malloc(320 * 240); 43 vp = malloc(320 * 240);
@@ -48,7 +49,6 @@ static void _setup(void)
48 fread(vp, 320 * 240, 1, f); 49 fread(vp, 320 * 240, 1, f);
49 fclose(f); 50 fclose(f);
50 } 51 }
51 data = evas_object_image_data_get(o_images[i], 1);
52 lp = data; 52 lp = data;
53 for (y = 0; y < 480; y++) 53 for (y = 0; y < 480; y++)
54 { 54 {
@@ -65,7 +65,7 @@ static void _setup(void)
65 *lp = vp + (y * 320); 65 *lp = vp + (y * 320);
66 lp++; 66 lp++;
67 } 67 }
68 evas_obj_image_data_set(o_images[i], data); 68 efl_gfx_buffer_set(o_images[i], data, 640, 480, 640 * sizeof (int), EVAS_COLORSPACE_YCBCR422P601_PL);
69 } 69 }
70 done = 0; 70 done = 0;
71} 71}
@@ -75,9 +75,9 @@ static void _cleanup(void)
75{ 75{
76 int i; 76 int i;
77 for (i = 0; i < 1; i++) eo_del(o_images[i]); 77 for (i = 0; i < 1; i++) eo_del(o_images[i]);
78 free(yp); 78 /* free(yp); */
79 free(up); 79 /* free(up); */
80 free(vp); 80 /* free(vp); */
81} 81}
82 82
83/* loop - do things */ 83/* loop - do things */
diff --git a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
index c6e60bc..28dd6c8 100644
--- a/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
+++ b/src/bin/image_data_ycbcr601pl_map_solid_rotate.c
@@ -27,15 +27,16 @@ static void _setup(void)
27 Evas_Object *o; 27 Evas_Object *o;
28 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
29 { 29 {
30 unsigned int length;
31
30 o = eo_add(EVAS_IMAGE_CLASS, evas); 32 o = eo_add(EVAS_IMAGE_CLASS, evas);
31 o_images[i] = o; 33 o_images[i] = o;
32 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 34 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
33 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); 35 efl_gfx_buffer_alpha_set(o, 0);
34 efl_gfx_view_size_set(o, 640, 480);
35 evas_obj_image_alpha_set(o, 0);
36 efl_gfx_fill_set(o, 0, 0, 640, 480); 36 efl_gfx_fill_set(o, 0, 0, 640, 480);
37 efl_gfx_size_set(o, 640, 480); 37 efl_gfx_size_set(o, 640, 480);
38 efl_gfx_visible_set(o, EINA_TRUE); 38 efl_gfx_visible_set(o, EINA_TRUE);
39 data = malloc(sizeof (void*) * (480 + 240 + 240));
39 yp = malloc(640 * 480); 40 yp = malloc(640 * 480);
40 up = malloc(320 * 240); 41 up = malloc(320 * 240);
41 vp = malloc(320 * 240); 42 vp = malloc(320 * 240);
@@ -47,7 +48,6 @@ static void _setup(void)
47 fread(vp, 320 * 240, 1, f); 48 fread(vp, 320 * 240, 1, f);
48 fclose(f); 49 fclose(f);
49 } 50 }
50 data = evas_object_image_data_get(o_images[i], 1);
51 lp = data; 51 lp = data;
52 for (y = 0; y < 480; y++) 52 for (y = 0; y < 480; y++)
53 { 53 {
@@ -64,7 +64,7 @@ static void _setup(void)
64 *lp = vp + (y * 320); 64 *lp = vp + (y * 320);
65 lp++; 65 lp++;
66 } 66 }
67 evas_obj_image_data_set(o_images[i], data); 67 efl_gfx_buffer_set(o_images[i], data, 640, 480, 640 * sizeof (int), EVAS_COLORSPACE_YCBCR422P601_PL);
68 } 68 }
69 done = 0; 69 done = 0;
70} 70}
@@ -74,9 +74,9 @@ static void _cleanup(void)
74{ 74{
75 int i; 75 int i;
76 for (i = 0; i < 1; i++) eo_del(o_images[i]); 76 for (i = 0; i < 1; i++) eo_del(o_images[i]);
77 free(yp); 77 /* free(yp); */
78 free(up); 78 /* free(up); */
79 free(vp); 79 /* free(vp); */
80} 80}
81 81
82/* loop - do things */ 82/* loop - do things */
diff --git a/src/bin/image_data_ycbcr601pl_wide_stride.c b/src/bin/image_data_ycbcr601pl_wide_stride.c
index f6690b9..4599260 100644
--- a/src/bin/image_data_ycbcr601pl_wide_stride.c
+++ b/src/bin/image_data_ycbcr601pl_wide_stride.c
@@ -27,15 +27,16 @@ static void _setup(void)
27 Evas_Object *o; 27 Evas_Object *o;
28 for (i = 0; i < 1; i++) 28 for (i = 0; i < 1; i++)
29 { 29 {
30 unsigned int length;
31
30 o = eo_add(EVAS_IMAGE_CLASS, evas); 32 o = eo_add(EVAS_IMAGE_CLASS, evas);
31 o_images[i] = o; 33 o_images[i] = o;
32 evas_obj_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC); 34 efl_image_content_hint_set(o, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
33 evas_obj_image_colorspace_set(o, EVAS_COLORSPACE_YCBCR422P601_PL); 35 efl_gfx_buffer_alpha_set(o, 0);
34 efl_gfx_view_size_set(o, 320, 480);
35 evas_obj_image_alpha_set(o, 0);
36 efl_gfx_fill_set(o, 0, 0, 640, 480); 36 efl_gfx_fill_set(o, 0, 0, 640, 480);
37 efl_gfx_size_set(o, 640, 480); 37 efl_gfx_size_set(o, 640, 480);
38 efl_gfx_visible_set(o, EINA_TRUE); 38 efl_gfx_visible_set(o, EINA_TRUE);
39 data = malloc(sizeof (unsigned char*) * (480 + 240 + 240));
39 yp = malloc(640 * 480); 40 yp = malloc(640 * 480);
40 up = malloc(320 * 240); 41 up = malloc(320 * 240);
41 vp = malloc(320 * 240); 42 vp = malloc(320 * 240);
@@ -47,28 +48,24 @@ static void _setup(void)
47 fread(vp, 320 * 240, 1, f); 48 fread(vp, 320 * 240, 1, f);
48 fclose(f); 49 fclose(f);
49 } 50 }
50 data = evas_object_image_data_get(o_images[i], 1); 51 lp = data;
51 if (data) 52 for (y = 0; y < 480; y++)
53 {
54 *lp = yp + (y * 640);
55 lp++;
56 }
57 for (y = 0; y < 240; y++)
52 { 58 {
53 lp = data; 59 *lp = up + (y * 320);
54 for (y = 0; y < 480; y++) 60 lp++;
55 {
56 *lp = yp + (y * 640);
57 lp++;
58 }
59 for (y = 0; y < 240; y++)
60 {
61 *lp = up + (y * 320);
62 lp++;
63 }
64 for (y = 0; y < 240; y++)
65 {
66 *lp = vp + (y * 320);
67 lp++;
68 }
69 evas_obj_image_data_set(o_images[i], data);
70 evas_obj_image_data_update_add(o_images[i], 0, 0, 320, 480);
71 } 61 }
62 for (y = 0; y < 240; y++)
63 {
64 *lp = vp + (y * 320);
65 lp++;
66 }
67 efl_gfx_buffer_set(o_images[i], data, 640, 480, 640 * sizeof (int), EVAS_COLORSPACE_YCBCR422P601_PL);
68 efl_gfx_buffer_update_add(o_images[i], 0, 0, 320, 480);
72 } 69 }
73 done = 0; 70 done = 0;
74} 71}
@@ -78,9 +75,9 @@ static void _cleanup(void)
78{ 75{
79 int i; 76 int i;
80 for (i = 0; i < 1; i++) eo_del(o_images[i]); 77 for (i = 0; i < 1; i++) eo_del(o_images[i]);
81 free(yp); 78 /* free(yp); */
82 free(up); 79 /* free(up); */
83 free(vp); 80 /* free(vp); */
84} 81}
85 82
86/* loop - do things */ 83/* loop - do things */
@@ -90,7 +87,8 @@ static void _loop(double t, int f)
90 Evas_Coord x, y, w, h; 87 Evas_Coord x, y, w, h;
91 for (i = 0; i < 1; i++) 88 for (i = 0; i < 1; i++)
92 { 89 {
93 unsigned char **data, **lp; 90 unsigned char **data, **lp;
91 int stride;
94 92
95 w = 640; 93 w = 640;
96 h = 480; 94 h = 480;
@@ -106,29 +104,27 @@ static void _loop(double t, int f)
106 104
107 w &= ~0x1; 105 w &= ~0x1;
108 106
109 efl_gfx_view_size_set(o_images[i], w, 480); 107 data = malloc(sizeof (void*) * (480 + 240 + 240));
110 data = evas_object_image_data_get(o_images[i], 1); 108 lp = data;
111 if (data) 109 for (y = 0; y < 480; y++)
112 { 110 {
113 lp = data; 111 *lp = yp + (y * 640);
114 for (y = 0; y < 480; y++) 112 lp++;
115 { 113 }
116 *lp = yp + (y * 640); 114 for (y = 0; y < 240; y++)
117 lp++; 115 {
118 } 116 *lp = up + (y * 320);
119 for (y = 0; y < 240; y++) 117 lp++;
120 { 118 }
121 *lp = up + (y * 320); 119 for (y = 0; y < 240; y++)
122 lp++; 120 {
123 } 121 *lp = vp + (y * 320);
124 for (y = 0; y < 240; y++) 122 lp++;
125 { 123 }
126 *lp = vp + (y * 320); 124
127 lp++; 125 efl_gfx_buffer_copy_set(o_images[i], data, w, 480, w * sizeof (int), EVAS_COLORSPACE_YCBCR422P601_PL);
128 } 126 efl_gfx_buffer_update_add(o_images[i], 0, 0, w, 480);
129 evas_obj_image_data_set(o_images[i], data); 127 free(data);
130 evas_obj_image_data_update_add(o_images[i], 0, 0, w, 480);
131 }
132 } 128 }
133 FPS_STD(NAME); 129 FPS_STD(NAME);
134} 130}