mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #970 from openmv/fb_pixels
Make sure FB pixels is always aligned.
This commit is contained in:
commit
52ed1f6586
@ -13,6 +13,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "imlib.h"
|
#include "imlib.h"
|
||||||
#include "mutex.h"
|
#include "mutex.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
typedef struct framebuffer {
|
typedef struct framebuffer {
|
||||||
int32_t x,y;
|
int32_t x,y;
|
||||||
@ -21,7 +22,7 @@ typedef struct framebuffer {
|
|||||||
int32_t bpp;
|
int32_t bpp;
|
||||||
int32_t streaming_enabled;
|
int32_t streaming_enabled;
|
||||||
// NOTE: This buffer must be aligned on a 16 byte boundary
|
// NOTE: This buffer must be aligned on a 16 byte boundary
|
||||||
uint8_t pixels[];
|
OMV_ATTR_ALIGNED(uint8_t pixels[], 16);
|
||||||
} framebuffer_t;
|
} framebuffer_t;
|
||||||
|
|
||||||
extern framebuffer_t *framebuffer;
|
extern framebuffer_t *framebuffer;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user