[libpng17] Combined sub_row, up_row, avg_row, and paeth_row buffers into a

single try_row buffer and in cases where two or more of those are
being tested, a second tst_row buffer.  This improves CPU speed
over that achieved by libpng-1.7.0beta49.
This commit is contained in:
Glenn Randers-Pehrson
2015-02-15 12:44:16 -06:00
parent 7e56f5858d
commit f1e4acb5b1
5 changed files with 110 additions and 83 deletions

View File

@@ -341,8 +341,9 @@ struct png_struct_def
size_t big_row_buf_size; /* Actual size of both */
#endif
#ifdef PNG_WRITE_SUPPORTED
png_bytep try_row; /* buffer to save trial row when filtering */
#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 */
#endif
/* UNKNOWN CHUNK HANDLING */