[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

@@ -943,8 +943,10 @@ png_write_destroy(png_structrp png_ptr)
#ifdef PNG_WRITE_FILTER_SUPPORTED
png_free(png_ptr, png_ptr->prev_row);
png_free(png_ptr, png_ptr->try_row);
png_free(png_ptr, png_ptr->tst_row);
png_ptr->prev_row = NULL;
png_ptr->try_row = NULL;
png_ptr->tst_row = NULL;
#endif
#ifdef PNG_WRITE_WEIGHTED_FILTER_SUPPORTED