Adding GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE configuration option
This commit is contained in:
parent
1cfcd71145
commit
ff8aa09949
4 changed files with 11 additions and 6 deletions
|
@ -10,6 +10,7 @@ FIX: Ensure valid thread stack sizes on platforms where it matters
|
||||||
FEATURE: Add support for a GFILE user provided file system
|
FEATURE: Add support for a GFILE user provided file system
|
||||||
FEATURE: Add gwinListItemSetText() to replace text in a GWIN list item
|
FEATURE: Add gwinListItemSetText() to replace text in a GWIN list item
|
||||||
FEATURE: Added GDISP_IMAGE_BMP_BLIT_BUFFER_SIZE configuration option
|
FEATURE: Added GDISP_IMAGE_BMP_BLIT_BUFFER_SIZE configuration option
|
||||||
|
FEATURE: Added GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE configuration option
|
||||||
|
|
||||||
|
|
||||||
*** Release 2.7 ***
|
*** Release 2.7 ***
|
||||||
|
|
|
@ -136,6 +136,7 @@
|
||||||
// #define GDISP_NEED_IMAGE_PNG_RGB_16 TRUE
|
// #define GDISP_NEED_IMAGE_PNG_RGB_16 TRUE
|
||||||
// #define GDISP_NEED_IMAGE_PNG_RGBALPHA_8 TRUE
|
// #define GDISP_NEED_IMAGE_PNG_RGBALPHA_8 TRUE
|
||||||
// #define GDISP_NEED_IMAGE_PNG_RGBALPHA_16 TRUE
|
// #define GDISP_NEED_IMAGE_PNG_RGBALPHA_16 TRUE
|
||||||
|
// #define GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE 32
|
||||||
// #define GDISP_NEED_IMAGE_ACCOUNTING FALSE
|
// #define GDISP_NEED_IMAGE_ACCOUNTING FALSE
|
||||||
|
|
||||||
//#define GDISP_NEED_PIXMAP FALSE
|
//#define GDISP_NEED_PIXMAP FALSE
|
||||||
|
|
|
@ -11,11 +11,6 @@
|
||||||
|
|
||||||
#include "gdisp_image_support.h"
|
#include "gdisp_image_support.h"
|
||||||
|
|
||||||
/**
|
|
||||||
* How big a pixel array to allocate for blitting the image to the display (in pixels)
|
|
||||||
* Bigger is faster but uses more RAM.
|
|
||||||
*/
|
|
||||||
#define PNG_BLIT_BUFFER_SIZE 32
|
|
||||||
/**
|
/**
|
||||||
* How big a byte array to use for input file buffer
|
* How big a byte array to use for input file buffer
|
||||||
* Bigger is faster but uses more RAM.
|
* Bigger is faster but uses more RAM.
|
||||||
|
@ -89,7 +84,7 @@ typedef struct PNG_output {
|
||||||
coord_t sx, sy;
|
coord_t sx, sy;
|
||||||
coord_t ix, iy;
|
coord_t ix, iy;
|
||||||
unsigned cnt;
|
unsigned cnt;
|
||||||
pixel_t buf[PNG_BLIT_BUFFER_SIZE];
|
pixel_t buf[GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE];
|
||||||
} PNG_output;
|
} PNG_output;
|
||||||
|
|
||||||
// Handle the PNG scan line filter
|
// Handle the PNG scan line filter
|
||||||
|
|
|
@ -518,6 +518,14 @@
|
||||||
#ifndef GDISP_NEED_IMAGE_PNG_RGBALPHA_16
|
#ifndef GDISP_NEED_IMAGE_PNG_RGBALPHA_16
|
||||||
#define GDISP_NEED_IMAGE_PNG_RGBALPHA_16 TRUE
|
#define GDISP_NEED_IMAGE_PNG_RGBALPHA_16 TRUE
|
||||||
#endif
|
#endif
|
||||||
|
/**
|
||||||
|
* @brief The PNG blit buffer size in pixels.
|
||||||
|
* @details Defaults to TRUE
|
||||||
|
* @note Bigger is faster but requires more RAM.
|
||||||
|
*/
|
||||||
|
#ifndef GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE
|
||||||
|
#define GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE 32
|
||||||
|
#endif
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue