summaryrefslogtreecommitdiff
path: root/pngstruct.h
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-05-30 11:54:45 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-05-30 11:54:45 -0500
commite6877671f1b4f4f382f211720c9b648eb9b86c50 (patch)
treebd0a843a8c30a356d132a4604344b9b32df906d1 /pngstruct.h
parent9fbdce8fb5a227b18e392e1603be0214a29fc569 (diff)
downloadlibpng-e6877671f1b4f4f382f211720c9b648eb9b86c50.tar.gz
[libpng16] Backported filter selection code from libpng-1.7.0beta51, to combine
sub_row, up_row, avg_row, and paeth_row into try_row and tst_row.
Diffstat (limited to 'pngstruct.h')
-rw-r--r--pngstruct.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/pngstruct.h b/pngstruct.h
index 8420d0997..4d34ac05b 100644
--- a/pngstruct.h
+++ b/pngstruct.h
@@ -219,16 +219,18 @@ struct png_struct_def
png_uint_32 row_number; /* current row in interlace pass */
png_uint_32 chunk_name; /* PNG_CHUNK() id of current chunk */
png_bytep prev_row; /* buffer to save previous (unfiltered) row.
- * This is a pointer into big_prev_row
+ * While reading this is a pointer into
+ * big_prev_row; while writing it is separately
+ * allocated if needed.
*/
png_bytep row_buf; /* buffer to save current (unfiltered) row.
- * This is a pointer into big_row_buf
+ * While reading, this is a pointer into
+ * big_row_buf; while writing it is separately
+ * allocated.
*/
-#ifdef PNG_WRITE_SUPPORTED
- 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 */
+#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
png_size_t info_rowbytes; /* Added in 1.5.4: cache of updated row bytes */