diff options
author | Joel Bodenmann <joel@embedded.pro> | 2017-01-10 10:43:01 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@embedded.pro> | 2017-01-10 10:43:01 +0100 |
commit | d3fb6b2cb9cf353630374ceeb7d6c550a3a942d9 (patch) | |
tree | 6171770f38b5789b91e3392fbaf8e22bcd21694d /src/gdisp/gdisp_options.h | |
parent | ffe01aef80c5eddd650d037a80df76ca4932d135 (diff) | |
download | uGFX-d3fb6b2cb9cf353630374ceeb7d6c550a3a942d9.tar.gz uGFX-d3fb6b2cb9cf353630374ceeb7d6c550a3a942d9.tar.bz2 uGFX-d3fb6b2cb9cf353630374ceeb7d6c550a3a942d9.zip |
Adding GDISP_IMAGE_PNG_Z_BUFFER_SIZE configuration option
Diffstat (limited to 'src/gdisp/gdisp_options.h')
-rw-r--r-- | src/gdisp/gdisp_options.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gdisp/gdisp_options.h b/src/gdisp/gdisp_options.h index 32429cde..0b250cd9 100644 --- a/src/gdisp/gdisp_options.h +++ b/src/gdisp/gdisp_options.h @@ -535,6 +535,16 @@ #ifndef GDISP_IMAGE_PNG_FILE_BUFFER_SIZE #define GDISP_IMAGE_PNG_FILE_BUFFER_SIZE 8 #endif + /** + * @brief The PNG inflate decompression buffer size in bytes. + * @details Defaults to 32768 + * @note Bigger is faster but requires more RAM. + * @note Must be >= 32768 due to the PNG 32K sliding window. + * @note More efficient code is generated if this value is a power of 2. + */ + #ifndef GDISP_IMAGE_PNG_Z_BUFFER_SIZE + #define GDISP_IMAGE_PNG_Z_BUFFER_SIZE 32768 + #endif /** * @} * |