Use FB for intergal images for OMV1/2

This commit is contained in:
iabdalkader 2015-05-01 04:56:41 +03:00
parent 74cba716b7
commit 76c96cab61

View File

@ -11,17 +11,13 @@
#include <arm_math.h> #include <arm_math.h>
#include "imlib.h" #include "imlib.h"
#include "xalloc.h" #include "xalloc.h"
#include "framebuffer.h"
void imlib_integral_image_alloc(struct integral_image *i_img, int w, int h) void imlib_integral_image_alloc(struct integral_image *i_img, int w, int h)
{ {
i_img->w = w; i_img->w = w;
i_img->h = h; i_img->h = h;
#ifdef OPENMV2
i_img->data = xalloc(w*h*sizeof(*i_img->data));
#else
#include "framebuffer.h"
i_img->data = (uint32_t*) (fb->pixels+(fb->w * fb->h)); i_img->data = (uint32_t*) (fb->pixels+(fb->w * fb->h));
#endif
} }
void imlib_integral_image(struct image *src, struct integral_image *sum) void imlib_integral_image(struct image *src, struct integral_image *sum)