Using "long" pos, len, and r to point into a char*
array looks suspicious:
in png-pixels.c
void pixels()
{
unsigned long len;
unsigned long pos;
long r;
len = png.len;
pos = 0;
for (;;) {
r = write(1, png.pixels + pos, len);
[...]
I suppose "len" is 1 in your example with 8-bit
(1-byte) scanlines.
I didn't find in your code where you unpack the 8-bit pixels
into
8 one-bit samples for printing, nor where you print the
pixel
values.
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
png-mng-implement mailing list
png-mng-implement lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/png-m
ng-implement
|