mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix FB_PIXELS()
* Return fb->pixels+fb->bpp when JPEG is enabled.
This commit is contained in:
parent
db667c061f
commit
0904f0bb6b
@ -24,6 +24,6 @@ static struct framebuffer {
|
||||
#define FB_JPEG_OFFS_SIZE (1*1024)
|
||||
|
||||
// Use this macro to get a pointer to the free SRAM area located after the framebuffer.
|
||||
// If JPEG is enabled, this macro returns (framebuffer->pixels + fb_width * fb_height).
|
||||
#define FB_PIXELS() ((fb->bpp > 2)? (fb->pixels+fb->w*fb->h) : (fb->pixels+fb->w*fb->h+FB_JPEG_OFFS_SIZE))
|
||||
// If JPEG is enabled, this macro returns pixels + the JPEG image size (usually stored in bpp).
|
||||
#define FB_PIXELS() ((fb->bpp > 2)? (fb->pixels+fb->bpp) : (fb->pixels+fb->w*fb->h+FB_JPEG_OFFS_SIZE))
|
||||
#endif /* __FRAMEBUFFER_H__ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user