summaryrefslogtreecommitdiff
path: root/pngstruct.h
diff options
context:
space:
mode:
authorRichard Townsend <Richard.Townsend@arm.com>2018-01-25 19:03:04 +0000
committerCosmin Truta <ctruta@gmail.com>2018-09-04 00:04:58 -0400
commit7734cda20cf1236aef60f3bbd2267c97bbb40869 (patch)
tree46bd39573775cfbec419527dcd3573e0bbfcf0e1 /pngstruct.h
parent2fc5ddff180f20ab8f7c689dc7a9562521c2f427 (diff)
Optimize png_do_expand_palette for ARM
ARM-specific optimization processes 8 or 4 pixels at once. Improves performance by around 10-22% on a recent ARM Chromebook.
Diffstat (limited to 'pngstruct.h')
-rw-r--r--pngstruct.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/pngstruct.h b/pngstruct.h
index d57603177..94a6d041f 100644
--- a/pngstruct.h
+++ b/pngstruct.h
@@ -228,6 +228,10 @@ struct png_struct_def
* big_row_buf; while writing it is separately
* allocated.
*/
+#ifdef PNG_READ_EXPAND_SUPPORTED
+ /* Buffer to accelerate palette transformations. */
+ png_bytep riffled_palette;
+#endif
#ifdef PNG_WRITE_FILTER_SUPPORTED
png_bytep try_row; /* buffer to save trial row when filtering */
png_bytep tst_row; /* buffer to save best trial row when filtering */