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

single try_row buffer.
This commit is contained in:
Glenn Randers-Pehrson
2015-02-10 17:02:09 -06:00
parent ba22b208ed
commit 8bc832389a
6 changed files with 177 additions and 144 deletions

View File

@@ -345,13 +345,8 @@ struct png_struct_def
/* This is somewhat excessive, there is no obvious reason on write to
* allocate a buffer for each possible filtered row, only for the one being
* tested and the current best.
*
* TODO: fix this
*/
png_bytep sub_row; /* buffer to save "sub" row when filtering */
png_bytep up_row; /* buffer to save "up" row when filtering */
png_bytep avg_row; /* buffer to save "avg" row when filtering */
png_bytep paeth_row; /* buffer to save "Paeth" row when filtering */
png_bytep try_row; /* buffer to save trial row when filtering */
#endif
/* UNKNOWN CHUNK HANDLING */