From ffe01aef80c5eddd650d037a80df76ca4932d135 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 10 Jan 2017 10:39:07 +0100 Subject: Adding GDISP_IMAGE_PNG_FILE_BUFFER_SIZE configuration option --- src/gdisp/gdisp_options.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/gdisp/gdisp_options.h') diff --git a/src/gdisp/gdisp_options.h b/src/gdisp/gdisp_options.h index ec043769..32429cde 100644 --- a/src/gdisp/gdisp_options.h +++ b/src/gdisp/gdisp_options.h @@ -390,7 +390,7 @@ #endif /** * @brief The BMP blit buffer size. - * @details Defaults to TRUE + * @details Defaults to 32 * @note Bigger is faster but requires more RAM. * @note This must be greater than 40 bytes and 32 pixels as we read our headers into this space as well. */ @@ -520,12 +520,21 @@ #endif /** * @brief The PNG blit buffer size in pixels. - * @details Defaults to TRUE + * @details Defaults to 32 * @note Bigger is faster but requires more RAM. */ #ifndef GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE #define GDISP_IMAGE_PNG_BLIT_BUFFER_SIZE 32 #endif + /** + * @brief The PNG input file buffer size in bytes. + * @details Defaults to 8 + * @note Bigger is faster but requires more RAM. + * @note Must be >= 8 + */ + #ifndef GDISP_IMAGE_PNG_FILE_BUFFER_SIZE + #define GDISP_IMAGE_PNG_FILE_BUFFER_SIZE 8 + #endif /** * @} * -- cgit v1.2.3