Merge pull request #970 from openmv/fb_pixels

Make sure FB pixels is always aligned.
This commit is contained in:
Ibrahim Abd Elkader 2020-11-14 20:50:19 +02:00 committed by GitHub
commit 52ed1f6586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,7 @@
#include <stdint.h>
#include "imlib.h"
#include "mutex.h"
#include "common.h"
typedef struct framebuffer {
int32_t x,y;
@ -21,7 +22,7 @@ typedef struct framebuffer {
int32_t bpp;
int32_t streaming_enabled;
// NOTE: This buffer must be aligned on a 16 byte boundary
uint8_t pixels[];
OMV_ATTR_ALIGNED(uint8_t pixels[], 16);
} framebuffer_t;
extern framebuffer_t *framebuffer;