54 lines
1006 B
C++
54 lines
1006 B
C++
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#include "Eo.h"
|
|
#include "Evas.h"
|
|
|
|
#include "Eo.hh"
|
|
#include "Eina.hh"
|
|
#include "Evas.hh"
|
|
|
|
#include "main.h"
|
|
|
|
#define EXPEDITE_CXX_TEST_IMPL
|
|
#include <image_blend_many_smooth_same_scaled_capi.h>
|
|
|
|
#define MANYNUM 8192
|
|
|
|
/* standard var */
|
|
static int done = 0;
|
|
/* private data */
|
|
static efl::eina::list<evas::image> images;
|
|
|
|
/* setup */
|
|
static void _setup(void)
|
|
{
|
|
int i, w, h, n;
|
|
Evas_Object *o;
|
|
for (i = 0; i < MANYNUM; i++)
|
|
{
|
|
o = eo_add(EVAS_IMAGE_CLASS, G_evas);
|
|
images[i] = o;
|
|
n = rnd() % 100;
|
|
w = 3 + ((n * (60 - 3)) / 100);
|
|
h = 4 + ((n * (80 - 4)) / 100);
|
|
eo_do(o,
|
|
efl_file_set(build_path("logo.png"), NULL),
|
|
efl_image_smooth_scale_set(1),
|
|
evas_obj_size_set(w, h),
|
|
evas_obj_image_fill_set(0, 0, w, h),
|
|
evas_obj_visibility_set(EINA_TRUE));
|
|
}
|
|
done = 0;
|
|
}
|
|
|
|
|
|
extern "C" static void _key(char *key)
|
|
{
|
|
KEY_STD;
|
|
}
|
|
|