Game Development Community

Ok here is the question...

by David Dougher · in General Discussion · 04/24/2006 (9:01 am) · 2 replies

OK the last one was my tired eyes, but I think this one might have been somebody else's fingers in a hurry.

This is from bitmapPNG.cpp around line 361. Notice the fifth parameter. Is this supposed to be PNG_FILTER_PATH ?

const U32 pngFilters[] = { PNG_FILTER_NONE,
PNG_FILTER_SUB,
PNG_FILTER_UP,
PNG_FILTER_AVG,
PNG_FILTER_PAETH,
PNG_ALL_FILTERS };

About the author

Owner - Pariah Games, Adjunct Professor - Bristol Community College, Mentor - Game Design - Met School Newport, Mentor - Game Design - Met School Providence


#1
04/24/2006 (9:15 am)
Nope, I believe it's right.

http://www.w3.org/TR/PNG-Filters.html
Quote:The Paeth filter computes a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. This technique is due to Alan W. Paeth
#2
04/24/2006 (1:20 pm)
See. You learn something new every day... Excellent!