From owner-png-implement@ccrc.wustl.edu Sun Sep 2 05:35:07 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id FAA05492 for ; Sun, 2 Sep 2001 05:35:07 -0500 (CDT) Received: by webshld.ccf.swri.edu; id FAA10959; Sun, 2 Sep 2001 05:32:56 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAzXaWzv; Sun, 2 Sep 01 05:32:56 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f82ARhr28855 for ; Sun, 2 Sep 2001 05:27:43 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f82AX1H16226; Sun, 2 Sep 2001 05:33:01 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail10.sdc1.sfba.home.com (femail10.sdc1.sfba.home.com [24.0.95.106]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f82AWx416221; Sun, 2 Sep 2001 05:33:00 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail10.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010902103258.YLNM557.femail10.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Sun, 2 Sep 2001 03:32:58 -0700 Message-Id: <3.0.6.32.20010902063027.00e321d0@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Sun, 02 Sep 2001 06:30:27 -0400 To: png-implement@ccrc.wustl.edu From: Glenn Randers-Pehrson Subject: libpng-1.2.0 Cc: png-list@ccrc.wustl.edu, png-announce@ccrc.wustl.edu Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Libpng-1.2.0 is available for download from http://libpng.sf.net and from ftp://swrinde.nde.swri.edu/pub/png/src/ This release is source-code compatible with libpng-1.0.12 but is binary incompatible; applications will have to be recompiled to use it. The makefiles will build shared library number 3. If you have applications that were built with libpng.1.0.x shared libraries, you should also keep libpng.so.2 built from libpng-1.0.12 on your system. It adds run-time selection of MMX assembler-coded functions, enables MNG features by default, and enables the user memory function by default, adds checks for invalid bKGD and tRNS values, extends do_invert_mono(), fixes a crash bug in the rpng/rpng2 demo programs, and cleans up various other little things. Please send any followup messages to png-implement. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 2 14:15:40 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id OAA06682 for ; Sun, 2 Sep 2001 14:15:40 -0500 (CDT) Received: by webshld.ccf.swri.edu; id OAA24091; Sun, 2 Sep 2001 14:13:29 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAf8aqdV; Sun, 2 Sep 01 14:13:28 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f82J8Fr07313 for ; Sun, 2 Sep 2001 14:08:15 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f82JFKq23492; Sun, 2 Sep 2001 14:15:20 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f82JFI423488 for ; Sun, 2 Sep 2001 14:15:19 -0500 (CDT) Received: (qmail 26907 invoked from network); 2 Sep 2001 19:15:23 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 2 Sep 2001 19:15:23 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f82JFJm17766 for png-implement@ccrc.wustl.edu; Sun, 2 Sep 2001 12:15:19 -0700 Received: from mailf.telia.com (mailf.telia.com [194.22.194.25]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f82IwT423228 for ; Sun, 2 Sep 2001 13:58:30 -0500 (CDT) Received: from d1o897.telia.com (d1o897.telia.com [213.65.156.241]) by mailf.telia.com (8.11.2/8.11.0) with ESMTP id f82IwHK28609; Sun, 2 Sep 2001 20:58:17 +0200 (CEST) Received: from neo (h175n1fls32o897.telia.com [213.65.157.175]) by d1o897.telia.com (8.10.2/8.10.1) with SMTP id f82Ivh100234; Sun, 2 Sep 2001 20:58:17 +0200 (CEST) Message-ID: <002001c133e1$3dbbf1b0$01a010ac@neo> From: "Anders Rundegren" To: , Subject: libpng 1.2.0 Date: Sun, 2 Sep 2001 20:57:49 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_001D_01C133F1.EC777070" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List This is a multi-part message in MIME format. ------=_NextPart_000_001D_01C133F1.EC777070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit [non-member submission] Hi wonderful PNG people! I searched the web for programming resources and found the wonderful libpng... but from what I can understand this library doesn't support alpha transparency with 256 levels, is this correct? I downloaded the sources and compiled the VisualC++ program and opened the attached PNG (5kB) file with alpha and it displayed the background as white? // Anders ------=_NextPart_000_001D_01C133F1.EC777070 Content-Type: image/png; name="term.png" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="term.png" 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 GQVkA4AAAwDraybUz2NYugAAAABJRU5ErkJggg== ------=_NextPart_000_001D_01C133F1.EC777070-- -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 2 14:33:42 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id OAA06721 for ; Sun, 2 Sep 2001 14:33:42 -0500 (CDT) Received: by webshld.ccf.swri.edu; id OAA24500; Sun, 2 Sep 2001 14:31:31 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAi_ay2V; Sun, 2 Sep 01 14:31:26 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f82JQCr07595 for ; Sun, 2 Sep 2001 14:26:12 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f82JXQx23784; Sun, 2 Sep 2001 14:33:26 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f82JXP423780 for ; Sun, 2 Sep 2001 14:33:25 -0500 (CDT) Received: (qmail 8049 invoked from network); 2 Sep 2001 19:33:29 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 2 Sep 2001 19:33:29 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f82JXQf18047; Sun, 2 Sep 2001 12:33:26 -0700 Date: Sun, 2 Sep 2001 12:33:26 -0700 Message-Id: <200109021933.f82JXQf18047@sonic.net> From: Greg Roelofs To: anders@rundegren.com, png-implement@ccrc.wustl.edu Subject: Re: libpng 1.2.0 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Anders Rundegren (anders@rundegren.com) wrote: > I searched the web for programming resources and found the wonderful > libpng... but from what I can understand this library doesn't support alpha > transparency with 256 levels, is this correct? That is not correct. It supports both 32-bit and 64-bit RGBA, along with "RGBA palettes" of up to 256 entries. pnmtopng uses libpng and can make all three kinds of PNGs. > I downloaded the sources and compiled the VisualC++ program and opened the > attached PNG (5kB) file with alpha and it displayed the background as white? That would be a deficiency of the demo program, which perhaps was not intended to do anything interesting with alpha. (Things in "contrib" are not part of the library; they are bundled extras.) Your image's transparency shows up fine with rpng and rpng2, as well as with my version of XV. -- Greg Roelofs newt@pobox.com http://pobox.com/~newt/ Newtware, PNG Group, Info-ZIP, AlphaWorld Map, Philips Semiconductors, ... -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 2 20:17:04 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id UAA07512 for ; Sun, 2 Sep 2001 20:17:04 -0500 (CDT) Received: by webshld.ccf.swri.edu; id UAA02700; Sun, 2 Sep 2001 20:14:53 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAPyayqf; Sun, 2 Sep 01 20:14:50 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8319cr13216 for ; Sun, 2 Sep 2001 20:09:38 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f831Gep28635; Sun, 2 Sep 2001 20:16:40 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f831GZ428630 for ; Sun, 2 Sep 2001 20:16:35 -0500 (CDT) Received: (qmail 17360 invoked from network); 3 Sep 2001 01:16:41 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 3 Sep 2001 01:16:41 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f831Gc027361 for png-implement@ccrc.wustl.edu; Sun, 2 Sep 2001 18:16:38 -0700 Received: from maild.telia.com (maild.telia.com [194.22.190.101]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f82LaC425638 for ; Sun, 2 Sep 2001 16:36:12 -0500 (CDT) Received: from d1o897.telia.com (d1o897.telia.com [213.65.156.241]) by maild.telia.com (8.11.2/8.11.0) with ESMTP id f82LaGY25616; Sun, 2 Sep 2001 23:36:17 +0200 (CEST) Received: from neo (h175n1fls32o897.telia.com [213.65.157.175]) by d1o897.telia.com (8.10.2/8.10.1) with SMTP id f82LaG102934; Sun, 2 Sep 2001 23:36:16 +0200 (CEST) Message-ID: <001401c133f7$50755510$01a010ac@neo> From: "Anders Rundegren" To: "Greg Roelofs" , References: <200109021933.f82JXQf18047@sonic.net> Subject: Re: libpng 1.2.0 Date: Sun, 2 Sep 2001 23:36:24 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List > > I downloaded the sources and compiled the VisualC++ program and opened the > > attached PNG (5kB) file with alpha and it displayed the background as white? > > That would be a deficiency of the demo program, which perhaps was not > intended to do anything interesting with alpha. (Things in "contrib" > are not part of the library; they are bundled extras.) Your image's > transparency shows up fine with rpng and rpng2, as well as with my > version of XV. This has just been confirmed by me... I've just tried the rpng and rpng2 binaries and they work fine... I'm sorry for not checking this up... I thought the Visual PNG demo program would demonstrate things like this... not your fault though! :) Thanks for a speedy reply and keep up the excellent work! :) // Anders -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 4 09:14:18 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id JAA14467 for ; Tue, 4 Sep 2001 09:14:18 -0500 (CDT) Received: by webshld.ccf.swri.edu; id JAA06922; Tue, 4 Sep 2001 09:12:05 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAABAaiHn; Tue, 4 Sep 01 09:12:04 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f84E6pr04958 for ; Tue, 4 Sep 2001 09:06:51 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f84ECYQ00949; Tue, 4 Sep 2001 09:12:34 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f84ECX400945 for ; Tue, 4 Sep 2001 09:12:33 -0500 (CDT) Received: (qmail 5899 invoked from network); 4 Sep 2001 14:12:30 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 4 Sep 2001 14:12:30 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f84ECNx14031 for png-implement@ccrc.wustl.edu; Tue, 4 Sep 2001 07:12:23 -0700 Received: from highland.isltd.insignia.com (highland.isltd.insignia.com [195.217.222.20]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f84BKs428245 for ; Tue, 4 Sep 2001 06:20:54 -0500 (CDT) Received: from wolf.isltd.insignia.com (wolf.isltd.insignia.com [172.16.1.3]) by highland.isltd.insignia.com (8.11.3/8.11.3/check_local4.2) with ESMTP id f84BKf473682 for ; Tue, 4 Sep 2001 12:20:41 +0100 (BST) Received: from isltd.insignia.com (kona.isltd.insignia.com [172.16.17.136]) by wolf.isltd.insignia.com (8.9.3/8.9.3) with SMTP id MAA23340; Tue, 4 Sep 2001 12:20:40 +0100 (BST) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 4 Sep 2001 12:20 +0100 (BST) From: Matt.Plumtree@insignia.com (Matt Plumtree) Subject: libpng 1.0.12 bugs To: png-implement@ccrc.wustl.edu CC: Matt.Plumtree@insignia.com Message-Id: X-Ameol-Version: 2.52.2000, Windows NT 4.0 build 1381 (Service Pack 6) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List [non-member submission] I have found what I believe to be a few configuration bugs in libpng 1.0.12. Firstly, you cannot enable bKGD support without GAMMA support. This is because the 'background_1' field in the png_struct is conditionally included on the latter, but code in pngrtran.c uses the field without checking for GAMMA support, e.g. line 767. Secondly, working around this problem by removing the conditional aspect of defining background_1 leads to unused formal parameter warnings in pngrtran.c for all the gamma_* parameters in png_do_background(). Thirdly, it isn't possible to enable iTXt support without warnings. If neither PNG_iTXt_SUPPORTED or PNG_READ_iTXt_SUPPORTED are defined, PNG_NO_READ_iTXt will be defined. However, if PNG_NO_READ_iTXt is not defined, PNG_iTXt_SUPPORTED and PNG_READ_iTXt_SUPPORTED are both defined, leading to a redefinition warning if either are defined to enable support. Hope this is of use, -- Matt Plumtree Insignia Solutions -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 4 10:17:57 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id KAA15233 for ; Tue, 4 Sep 2001 10:17:57 -0500 (CDT) Received: by webshld.ccf.swri.edu; id KAA23986; Tue, 4 Sep 2001 10:15:45 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAy8aa2U; Tue, 4 Sep 01 10:15:44 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f84FAVr09303 for ; Tue, 4 Sep 2001 10:10:31 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f84FHkR02754; Tue, 4 Sep 2001 10:17:46 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f84FHj402749 for ; Tue, 4 Sep 2001 10:17:45 -0500 (CDT) Received: (qmail 26964 invoked from network); 4 Sep 2001 15:17:48 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 4 Sep 2001 15:17:48 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f84FHg815779 for png-implement@ccrc.wustl.edu; Tue, 4 Sep 2001 08:17:42 -0700 Received: from highland.isltd.insignia.com (highland.isltd.insignia.com [195.217.222.20]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f84F2q402266 for ; Tue, 4 Sep 2001 10:02:52 -0500 (CDT) Received: from wolf.isltd.insignia.com (wolf.isltd.insignia.com [172.16.1.3]) by highland.isltd.insignia.com (8.11.3/8.11.3/check_local4.2) with ESMTP id f84F2u475829 for ; Tue, 4 Sep 2001 16:02:56 +0100 (BST) Received: from isltd.insignia.com (kona.isltd.insignia.com [172.16.17.136]) by wolf.isltd.insignia.com (8.9.3/8.9.3) with SMTP id QAA29221; Tue, 4 Sep 2001 16:02:56 +0100 (BST) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 4 Sep 2001 16:02 +0100 (BST) From: Matt.Plumtree@insignia.com (Matt Plumtree) Subject: libpng 1.0.12 background colors in palette type files are wrong To: png-implement@ccrc.wustl.edu CC: Matt.Plumtree@insignia.com Message-Id: X-Ameol-Version: 2.52.2000, Windows NT 4.0 build 1381 (Service Pack 6) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List [Non-member submission] The background color for files with color type PNG_COLOR_TYPE_PALETTE is an index. This is looked up in the palette to provide the background color. The palette is filled with 8-bit RGB colors. However, the background color provided by calling png_get_bKGD() should point to 16-bit colors. This means that only the bottom 8-bits of the components are set, and therefore will be way too dark (in fact, probably black in most implementations). The fix is to adjust the 8-bit values to 16-bit ones in png_handle_bKGD() in pngrutil.c for color type PNG_COLOR_TYPE_PALETTE, possibly by duplicating the 8-bit components into the top and bottom bytes of the 16-bit components. -- Matt Plumtree Insignia Solutions -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 4 10:39:13 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id KAA15441 for ; Tue, 4 Sep 2001 10:39:13 -0500 (CDT) Received: by webshld.ccf.swri.edu; id KAA29161; Tue, 4 Sep 2001 10:37:00 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAACxaG84; Tue, 4 Sep 01 10:37:00 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f84FVkr10744 for ; Tue, 4 Sep 2001 10:31:46 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f84FcxL03289; Tue, 4 Sep 2001 10:38:59 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail8.sdc1.sfba.home.com (femail8.sdc1.sfba.home.com [24.0.95.88]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f84Fcw403284 for ; Tue, 4 Sep 2001 10:38:58 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail8.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010904153902.OSEG10796.femail8.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Tue, 4 Sep 2001 08:39:02 -0700 Message-Id: <3.0.6.32.20010904113632.00e3f680@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 04 Sep 2001 11:36:32 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: libpng 1.0.12 bugs Cc: png-implement@ccrc.wustl.edu, Matt.Plumtree@insignia.com In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 12:20 PM 9/4/01 +0100, Matt Plumtree wrote: >[non-member submission] > >I have found what I believe to be a few configuration bugs in libpng 1.0.12. > >Firstly, you cannot enable bKGD support without GAMMA support. This is >because the 'background_1' field in the png_struct is conditionally included >on the latter, but code in pngrtran.c uses the field without checking for >GAMMA support, e.g. line 767. Isn't that line inside an #if defined(PNG_READ_GAMMA_SUPPORTED) block beginning at line 748? However, background_1 is assigned at line 746 which is outside the block. The remedy seems to be to remove the condition (lines 1044 and 1046) from png.h, as you suggest below. >Secondly, working around this problem by removing the conditional aspect of >defining background_1 leads to unused formal parameter warnings in >pngrtran.c for all the gamma_* parameters in png_do_background(). Right, the gamma_* paramters need to be conditionally compiled on PNG_READ_GAMMA_SUPPORTED in the function definition and function call in pngrtran.c and the prototype in png.h. >Thirdly, it isn't possible to enable iTXt support without warnings. If >neither PNG_iTXt_SUPPORTED or PNG_READ_iTXt_SUPPORTED are defined, >PNG_NO_READ_iTXt will be defined. However, if PNG_NO_READ_iTXt is not >defined, PNG_iTXt_SUPPORTED and PNG_READ_iTXt_SUPPORTED are both defined, >leading to a redefinition warning if either are defined to enable support. Thanks. Actually it *is* possible, by defining both PNG_NO_iTXt_SUPPORTED (which has no effect outside of pngconf.h) and PNG_iTXt_SUPPORTED, but that's a bit weird, so I'll fix it. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 4 12:02:23 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id MAA16157 for ; Tue, 4 Sep 2001 12:02:23 -0500 (CDT) Received: by webshld.ccf.swri.edu; id MAA18661; Tue, 4 Sep 2001 12:00:10 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAmWaGCK; Tue, 4 Sep 01 12:00:10 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f84Gsur15767 for ; Tue, 4 Sep 2001 11:54:57 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f84H25g05701; Tue, 4 Sep 2001 12:02:05 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail19.sdc1.sfba.home.com (femail19.sdc1.sfba.home.com [24.0.95.128]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f84H24405697 for ; Tue, 4 Sep 2001 12:02:05 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail19.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010904170209.ZUOV6174.femail19.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Tue, 4 Sep 2001 10:02:09 -0700 Message-Id: <3.0.6.32.20010904125939.00e6b460@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 04 Sep 2001 12:59:39 -0400 To: Matt.Plumtree@insignia.com From: Glenn Randers-Pehrson Subject: Re: libpng 1.0.12 bugs Cc: png-implement@ccrc.wustl.edu In-Reply-To: References: <3.0.6.32.20010904113632.00e3f680@netmail.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 05:18 PM 9/4/01 +0100, you wrote: >On Tue, 04 Sep 2001 11:36:32 -0400, glennrp@home.com (Glenn Randers-Pehrson) >wrote: >> Thanks. Actually it *is* possible, by defining both PNG_NO_iTXt_SUPPORTED >> (which has no effect outside of pngconf.h) and PNG_iTXt_SUPPORTED, but >> that's a bit weird, so I'll fix it. > >Hmm, I can't find PNG_NO_iTXt_SUPPORTED anywhere in the distribution except >in the 'CHANGES' file. Sorry, I should have said PNG_NO_READ_iTXt_SUPPORTED and PNG_NO_WRITE_iTXt_SUPPORTED (and so should the CHANGES file). Anyhow, I'll fix pngconf.h to avoid redefining the PNG_READ_iTXt_SUPPORTED and PNG_WRITE_iTXt_SUPPORTED macros if they are already defined. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Thu Sep 6 12:50:39 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id MAA07674 for ; Thu, 6 Sep 2001 12:50:39 -0500 (CDT) Received: by webshld.ccf.swri.edu; id MAA15417; Thu, 6 Sep 2001 12:48:25 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAp1aahE; Thu, 6 Sep 01 12:48:24 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f86HhA425958 for ; Thu, 6 Sep 2001 12:43:10 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f86HnG902772; Thu, 6 Sep 2001 12:49:16 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mail.san.yahoo.com (mail.san.yahoo.com [209.132.1.30]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f86HnA402762 for ; Thu, 6 Sep 2001 12:49:10 -0500 (CDT) Received: from indus.ecliptic (24.67.95.214) by mail.san.yahoo.com (5.5.041.1) id 3B90055D001673B5 for png-implement@ccrc.wustl.edu; Thu, 6 Sep 2001 10:47:39 -0700 Message-Id: <3.0.3.32.20010906114951.007146e4@mail.schaik.com> X-Sender: willemschaik@mail.schaik.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) Date: Thu, 06 Sep 2001 11:49:51 -0600 To: PNG Implementation List From: Willem van Schaik Subject: Re: libpng 1.2.0 In-Reply-To: <001401c133f7$50755510$01a010ac@neo> References: <200109021933.f82JXQf18047@sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Hi Anders, VisualPng's intention was to get developers started with the use of libpng in a Visual C++ environment. It's purpose was definitely not to demonstrate all the functionality of libpng. For a demo of alpha handling, have a look at AlphaMix (www.schaik.com/png/alphamix.html), which I developed using VisualPng as a starting point. JDI :-), Willem At 23:36 02-09-2001 +0200, you wrote: >> > I downloaded the sources and compiled the VisualC++ program and opened >the >> > attached PNG (5kB) file with alpha and it displayed the background as >white? >> >> That would be a deficiency of the demo program, which perhaps was not >> intended to do anything interesting with alpha. (Things in "contrib" >> are not part of the library; they are bundled extras.) Your image's >> transparency shows up fine with rpng and rpng2, as well as with my >> version of XV. > >This has just been confirmed by me... I've just tried the rpng and rpng2 >binaries and they work fine... I'm sorry for not checking this up... I >thought the Visual PNG demo program would demonstrate things like this... >not your fault though! :) > >Thanks for a speedy reply and keep up the excellent work! :) > >// Anders > > > >-- >Send the message body "help" to png-implement-request@ccrc.wustl.edu > -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 9 04:20:19 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id EAA23407 for ; Sun, 9 Sep 2001 04:20:19 -0500 (CDT) Received: by webshld.ccf.swri.edu; id EAA25145; Sun, 9 Sep 2001 04:18:02 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAE7aahX; Sun, 9 Sep 01 04:18:02 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f899Ce429696 for ; Sun, 9 Sep 2001 04:12:40 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f899JbN00319; Sun, 9 Sep 2001 04:19:37 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f899JY400315 for ; Sun, 9 Sep 2001 04:19:34 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id CAA03819 for ; Sun, 9 Sep 2001 02:23:21 -0700 Message-Id: <200109090923.CAA03819@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: "LIST: PNG Implement" Subject: Hi, new prog and bug... X-Mailer: Pronto v2.2.5 On linux/mysql Date: 09 Sep 2001 02:23:06 PDT Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Hi this is my first post on the list. I'm developing an image viewer to use libpng along with Imlib (but using libpng directly to get more features). I noticed a bug in libpng 2.1.0.12 when using `progressive loading' for an interlaced image. It seems that every other line of the image is `shifted' one pixel. To compare I ran GIMP and saved one image as PNG interlaced and another as PNG w/o interlacing. The non-interlaced one loaded fine, without any of said shifting. But the interlaced one had one pixel shift per every other line. If you'd like to have more info or the source module that I'm writing to use libpng, please let me know. -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 9 13:32:55 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id NAA24434 for ; Sun, 9 Sep 2001 13:32:55 -0500 (CDT) Received: by webshld.ccf.swri.edu; id NAA09443; Sun, 9 Sep 2001 13:30:38 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAQDaqCs; Sun, 9 Sep 01 13:30:37 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f89IPL410090 for ; Sun, 9 Sep 2001 13:25:21 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f89IWbg04824; Sun, 9 Sep 2001 13:32:37 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from kauha.saunalahti.fi (kauha.saunalahti.fi [195.197.53.227]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f89IWa404820 for ; Sun, 9 Sep 2001 13:32:36 -0500 (CDT) Received: from ALPHA (Tronic'sautomatedstupidbot@tronic2.pp.sci.fi [195.74.7.210]) by kauha.saunalahti.fi (8.10.1/8.10.1) with ESMTP id f89IWlC18523 for ; Sun, 9 Sep 2001 21:32:48 +0300 (EEST) Date: Sun, 9 Sep 2001 21:32:31 +0300 From: =?ISO-8859-1?B?TGFzc2UgS+Rya2vkaW5lbiAvIFRyb25pYw==?= X-Mailer: The Bat! (v1.51) Personal X-Priority: 3 (Normal) Message-ID: <73102827626.20010909213231@sci.fi> To: "LIST: PNG Implement" Subject: Optimizing PNGs In-Reply-To: <200109090923.CAA03819@localhost.localdomain> References: <200109090923.CAA03819@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Hi! As you probably already know, PNGs need to be optimized with external utilities to make them as small as possible. The problem is that using 2 or 3 different commandline-utilities for each image is a bit problematic for computer programmer, but almost impossible for Joe Avarage, the normal user. This must be fixed. What needs to be done: -Combining pngrewrite, pngcrush and pngquant into one program. -Make it sort most popular (most used) colors first, since that, for some reason, makes PNGs smaller. -Optimize it a bit (speed is always important). -Releasing that as few versions: * Command-line (for us programmers:) * GUI-program (Windown/Linux at least) * Library (to be used by image-editors/converters) GUI-version should give preview of the image (useful when reducing colors or converting between alpha/index-transparency). Library would be just like GUI-version, but (optionally?) without GUI (so that program's own GUI can be used). Command-line version must support wildcards and default to "make as small as possible, without reducing colors, replacing original files". I could take some parts of that project, but unfortunately not in next 3-4 weeks. It would be better if someone else could start or possibly even finish the project before that. Anyone willing to help there? --- Anyone with time to spare? Then check out my PNG-page at http://snull.cjb.net/?pics I'd like to hear comments about it. ----------------------------------------------------- Lasse Kärkkäinen aka Tronic http://snull.cjb.net ----------------------------------------------------- -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 9 17:01:00 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA24885 for ; Sun, 9 Sep 2001 17:00:59 -0500 (CDT) Received: by webshld.ccf.swri.edu; id QAA15306; Sun, 9 Sep 2001 16:58:42 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAoBai5D; Sun, 9 Sep 01 16:58:42 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f89LrO414082 for ; Sun, 9 Sep 2001 16:53:25 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f89M0LA06517; Sun, 9 Sep 2001 17:00:21 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f89M0I406512 for ; Sun, 9 Sep 2001 17:00:19 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA07108 for ; Sun, 9 Sep 2001 15:04:56 -0700 Message-Id: <200109092204.PAA07108@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: "LIST: PNG Implement" Subject: Question about png_progressive_combine_row() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 09 Sep 2001 15:04:42 PDT Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List The documentation and example for png_progressive_combine_row() was a bit vauge to me. What is the ```old_row'''? Is it the corresponding row from the previous pass? Does this mean I need to allocate a separate segment of memory to hold the entire PNG image in the same format and pass the corresponding previous row to png_progressive_combine_row()? The documentation said that the row and pass number is not really needed so this really got me confused. -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 07:31:41 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id HAA27348 for ; Mon, 10 Sep 2001 07:31:41 -0500 (CDT) Received: by webshld.ccf.swri.edu; id HAA07356; Mon, 10 Sep 2001 07:29:23 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAePayxo; Mon, 10 Sep 01 07:29:23 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8ACO7704359 for ; Mon, 10 Sep 2001 07:24:07 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8ACULI13785; Mon, 10 Sep 2001 07:30:21 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail1.sdc1.sfba.home.com (femail1.sdc1.sfba.home.com [24.0.95.81]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8ACUK413780 for ; Mon, 10 Sep 2001 07:30:20 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail1.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010910123023.EDAY18761.femail1.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Mon, 10 Sep 2001 05:30:23 -0700 Message-Id: <3.0.6.32.20010910082749.00e6a540@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 10 Sep 2001 08:27:49 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: Hi, new prog and bug... Cc: "LIST: PNG Implement" In-Reply-To: <200109090923.CAA03819@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 02:23 AM 9/9/01 PDT, Tara M wrote: > >It seems that every other line of the image is `shifted' one >pixel. To compare I ran GIMP and saved one image as PNG >interlaced and another as PNG w/o interlacing. > >The non-interlaced one loaded fine, without any of said >shifting. But the interlaced one had one pixel shift per >every other line. Do you observe the same shifting if you display the image with rpng2 (in the contrib/gregbook directory of libpng)? Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 07:40:06 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id HAA27381 for ; Mon, 10 Sep 2001 07:40:06 -0500 (CDT) Received: by webshld.ccf.swri.edu; id HAA09122; Mon, 10 Sep 2001 07:37:48 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA23ai0r; Mon, 10 Sep 01 07:37:48 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8ACWW705151 for ; Mon, 10 Sep 2001 07:32:32 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8ACe0913865; Mon, 10 Sep 2001 07:40:00 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail19.sdc1.sfba.home.com (femail19.sdc1.sfba.home.com [24.0.95.128]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8ACdx413861 for ; Mon, 10 Sep 2001 07:39:59 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail19.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010910124001.DYWZ10649.femail19.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Mon, 10 Sep 2001 05:40:01 -0700 Message-Id: <3.0.6.32.20010910083728.00e6c410@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 10 Sep 2001 08:37:28 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: Question about png_progressive_combine_row() Cc: "LIST: PNG Implement" In-Reply-To: <200109092204.PAA07108@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 03:04 PM 9/9/01 PDT, Tara M wrote: >What is the ```old_row'''? Is it the corresponding row >from the previous pass? Yes. Pixels that haven't been received yet might be undefined, depending on whether you've chosen the "sparkle" or "rectangle" effect. >Does this mean I need to allocate >a separate segment of memory to hold the entire PNG image >in the same format and pass the corresponding previous >row to png_progressive_combine_row()? Yes (actually you can get away with storing only the even-numbered rows, and only allocating storage for the odd-numbered rows during the final pass [the first pass transmits even-numbered rows 0, 8, 16...]) Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 17:10:58 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA06845 for ; Mon, 10 Sep 2001 17:10:58 -0500 (CDT) Received: by webshld.ccf.swri.edu; id RAA07771; Mon, 10 Sep 2001 17:08:40 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAGlaqlp; Mon, 10 Sep 01 17:08:40 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8AM3No09445 for ; Mon, 10 Sep 2001 17:03:23 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8AMAXq26473; Mon, 10 Sep 2001 17:10:33 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8AMAV426468 for ; Mon, 10 Sep 2001 17:10:31 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA11380 for ; Mon, 10 Sep 2001 15:16:35 -0700 Message-Id: <200109102216.PAA11380@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: Hi, new prog and bug... X-Mailer: Pronto v2.2.5 On linux/mysql Date: 10 Sep 2001 15:05:31 PDT In-Reply-To: <3.0.6.32.20010910082749.00e6a540@netmail.home.com> References: <3.0.6.32.20010910082749.00e6a540@netmail.home.com> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Mon, 10 Sep 2001 08:27:49 -0400, Glenn Randers-Pehrson said: > >It seems that every other line of the image is `shifted' one > >pixel. To compare I ran GIMP and saved one image as PNG > >interlaced and another as PNG w/o interlacing. > > > >The non-interlaced one loaded fine, without any of said > >shifting. But the interlaced one had one pixel shift per > >every other line. > > Do you observe the same shifting if you display the image with > rpng2 (in the contrib/gregbook directory of libpng)? I don't have a rpng2, but there is a rpng2-x is that the same one? I compiled it and tried it, it dosen't seem to exhibit the behavour but it dosen't seem to follow the progressive loading style given in example.c The one I dirivied the code from was the one from example.c -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 17:11:01 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA06853 for ; Mon, 10 Sep 2001 17:11:01 -0500 (CDT) Received: by webshld.ccf.swri.edu; id RAA07776; Mon, 10 Sep 2001 17:08:43 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAzXaWlp; Mon, 10 Sep 01 17:08:42 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8AM3Po09451 for ; Mon, 10 Sep 2001 17:03:25 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8AMAV826467; Mon, 10 Sep 2001 17:10:31 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8AMAS426461 for ; Mon, 10 Sep 2001 17:10:29 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA11370 for ; Mon, 10 Sep 2001 15:16:32 -0700 Message-Id: <200109102216.PAA11370@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: Question about png_progressive_combine_row() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 10 Sep 2001 15:11:55 PDT In-Reply-To: <3.0.6.32.20010910083728.00e6c410@netmail.home.com> References: <3.0.6.32.20010910083728.00e6c410@netmail.home.com> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Mon, 10 Sep 2001 08:37:28 -0400, Glenn Randers-Pehrson said: > At 03:04 PM 9/9/01 PDT, Tara M wrote: > >What is the ```old_row'''? Is it the corresponding row > >from the previous pass? > > Yes. Pixels that haven't been received yet might be undefined, depending > on whether you've chosen the "sparkle" or "rectangle" effect. Can you show me how to choose sparkle or rectangle effect? It wasn't obvious in the example.c source. > >Does this mean I need to allocate > >a separate segment of memory to hold the entire PNG image > >in the same format and pass the corresponding previous > >row to png_progressive_combine_row()? > > Yes (actually you can get away with storing only the even-numbered > rows, and only allocating storage for the odd-numbered rows during > the final pass [the first pass transmits even-numbered rows 0, 8, 16...]) Is there a reason for this design? Wouldn't it be incredibly memory demanding to have two buffers to load one image? I'd need one buffer just to hold the data comming from libpng and another to be in the correct format that my application needs it to be. Here is how I am loading it. I just allocate one buffer in RGBA format with multiple rows (enough rows to holds the entire image). In the row callback, whenever a new row comes in (even if its one already loaded) its data gets translated and coppied to my RGBA buffer. Would this cause a shifting or sparkling behavour? It seems to cover what png_progressive_combine_row() does or am I missing something? Again this only happens for interlaced images. -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 17:44:18 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA07057 for ; Mon, 10 Sep 2001 17:44:18 -0500 (CDT) Received: by webshld.ccf.swri.edu; id RAA11682; Mon, 10 Sep 2001 17:42:00 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA9yai0w; Mon, 10 Sep 01 17:41:59 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8AMago10813 for ; Mon, 10 Sep 2001 17:36:42 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8AMi6k27205; Mon, 10 Sep 2001 17:44:06 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail18.sdc1.sfba.home.com (femail18.sdc1.sfba.home.com [24.0.95.145]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8AMi5427200 for ; Mon, 10 Sep 2001 17:44:05 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail18.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010910224411.UXBH21343.femail18.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com> for ; Mon, 10 Sep 2001 15:44:11 -0700 Message-Id: <3.0.6.32.20010910184138.00e6c100@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 10 Sep 2001 18:41:38 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: Hi, new prog and bug... In-Reply-To: <200109102216.PAA11380@localhost.localdomain> References: <3.0.6.32.20010910082749.00e6a540@netmail.home.com> <3.0.6.32.20010910082749.00e6a540@netmail.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 03:05 PM 9/10/01 PDT, Tara M wrote: > >I don't have a rpng2, but there is a rpng2-x is that the same one? Yes, that's what I meant. There's rpng2-x for X and rpng2-win for Windoze; I was referring to both generically. >I compiled it and tried it, it dosen't seem to exhibit the behavour >but it dosen't seem to follow the progressive loading style >given in example.c rpng2-(x,win) is more likely to be correct, since it has actually been built and tested, while example.c has not. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 17:51:38 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA07096 for ; Mon, 10 Sep 2001 17:51:38 -0500 (CDT) Received: by webshld.ccf.swri.edu; id RAA12226; Mon, 10 Sep 2001 17:49:20 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAiYai4x; Mon, 10 Sep 01 17:49:19 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8AMi2o11012 for ; Mon, 10 Sep 2001 17:44:02 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8AMpSW27353; Mon, 10 Sep 2001 17:51:28 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail13.sdc1.sfba.home.com (femail13.sdc1.sfba.home.com [24.0.95.140]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8AMpR427349 for ; Mon, 10 Sep 2001 17:51:27 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail13.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010910225128.UCZS17121.femail13.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com> for ; Mon, 10 Sep 2001 15:51:28 -0700 Message-Id: <3.0.6.32.20010910184855.00e6c180@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 10 Sep 2001 18:48:55 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: Question about png_progressive_combine_row() In-Reply-To: <200109102216.PAA11370@localhost.localdomain> References: <3.0.6.32.20010910083728.00e6c410@netmail.home.com> <3.0.6.32.20010910083728.00e6c410@netmail.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 03:11 PM 9/10/01 PDT, Tara M wrote: > >On Mon, 10 Sep 2001 08:37:28 -0400, Glenn Randers-Pehrson said: > >Can you show me how to choose sparkle or rectangle effect? >It wasn't obvious in the example.c source. Notice the position of the NULL in the parameter list. Incidentally there's a better-looking method, fill by linear interpolation, which unfortunately isn't in libpng so you have to do it in the application. If you have PNG: The Definitive Guide, look on page 13 for a comparison of these three methods plus the GIF interlacing method. It'd be a nice little coding project for someone to implement it in libpng. #;-) Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 18:31:58 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id SAA07286 for ; Mon, 10 Sep 2001 18:31:57 -0500 (CDT) Received: by webshld.ccf.swri.edu; id SAA15180; Mon, 10 Sep 2001 18:29:39 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAcHayPD; Mon, 10 Sep 01 18:29:39 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8ANOMo12498 for ; Mon, 10 Sep 2001 18:24:22 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8ANVfd28059; Mon, 10 Sep 2001 18:31:41 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from web13907.mail.yahoo.com (web13907.mail.yahoo.com [216.136.175.70]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f8ANVe428054 for ; Mon, 10 Sep 2001 18:31:40 -0500 (CDT) Message-ID: <20010910233147.54237.qmail@web13907.mail.yahoo.com> Received: from [65.33.98.177] by web13907.mail.yahoo.com via HTTP; Mon, 10 Sep 2001 16:31:47 PDT Date: Mon, 10 Sep 2001 16:31:47 -0700 (PDT) From: Rich Franzen Subject: Re: Optimizing PNGs To: PNG Implementation List In-Reply-To: <73102827626.20010909213231@sci.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List > Anyone with time to spare? Then check out my PNG-page at > http://snull.cjb.net/?pics > > I'd like to hear comments about it. > > ----------------------------------------------------- > Lasse Kärkkäinen aka Tronic http://snull.cjb.net > ----------------------------------------------------- Tronic, I viewed your page and like it. You might add some advice letting people know that sometimes 4-bit PNG is the way to go. Some images (what I call business graphics) with 16 or less colors compress very well with PNG, usually much smaller than a JPEG equivalent. You did a good job of illustrating potential problems with JPEG and GIF. BMP should not ever be considered for web use, though -- Netscape does not support it. BMP files are huge -- using them on web sites is a disservice even for those with browsers that display them. In your browser chart, you probably should mention Netscape 6.1, which is no longer distributed as "pre-release". I believe it is built from Mozilla 0.9.2, but I am not sure about that. (Your binary transparancy example only shows transparancy in the grey area at top. I am not sure whether this is right or wrong. For Mozilla 0.9.2 you say it would be "not transparant", and for Mozilla 0.9.4 you say it would be "perfect".) -- Rich --- http://rocq.home.att.net/sihImages.html __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 19:34:08 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id TAA07621 for ; Mon, 10 Sep 2001 19:34:08 -0500 (CDT) Received: by webshld.ccf.swri.edu; id TAA19102; Mon, 10 Sep 2001 19:31:49 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAgkaOtL; Mon, 10 Sep 01 19:31:49 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B0QWo14543 for ; Mon, 10 Sep 2001 19:26:32 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B0WRl29226; Mon, 10 Sep 2001 19:32:27 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B0WP429221 for ; Mon, 10 Sep 2001 19:32:25 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id RAA11841 for ; Mon, 10 Sep 2001 17:38:33 -0700 Message-Id: <200109110038.RAA11841@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: Hi, new prog and bug... X-Mailer: Pronto v2.2.5 On linux/mysql Date: 10 Sep 2001 17:35:41 PDT In-Reply-To: <3.0.6.32.20010910184138.00e6c100@netmail.home.com> References: <3.0.6.32.20010910082749.00e6a540@netmail.home.com><3.0.6.32.20010910082749.00e6a540@netmail.home.com> <3.0.6.32.20010910184138.00e6c100@netmail.home.com> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Mon, 10 Sep 2001 18:41:38 -0400, Glenn Randers-Pehrson said: > rpng2-(x,win) is more likely to be correct, since it has actually > been built and tested, while example.c has not. I think I understand the problem now, thankfully its not on libpng's side. The problem is an issue with example.c's explaination about combining the rows in progressive reading mode. It was ambiguous about what the `old_row' was, I wasn't able to figure out if it ment the row last loaded or the corresponding row that was previously loaded. It also didn't hint that the application needs a buffer that matches the libpng's data format. I've been reading that segment of code comment for the past three days and finally figured it out. I would have word it as follows: /* In this function you will recieve a pointer to new row data from libpng called new_row that is to replace a corresponding row (of the same data format) in a buffer allocated by your application. The new row data pointer new_row may be NULL, indicating there is no new data to be replaced (in cases of interlace loading). If new_row is not NULL then you need to call png_progressive_combine_row() to replace the corresponding row as shown below: */ /* Check if row_num is in bounds. */ if((row_num >= 0) && (row_num < height)) { /* Get pointer to corresponding row in our * PNG read buffer. */ png_bytep old_row = ((png_bytep *)our_data)[row_num]; /* If both rows are allocated then copy the new row * data to the corresponding row data. */ if((old_row != NULL) && (new_row != NULL)) png_progressive_combine_row( png_ptr, old_row, new_row ); } -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Mon Sep 10 22:54:25 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id WAA08280 for ; Mon, 10 Sep 2001 22:54:25 -0500 (CDT) Received: by webshld.ccf.swri.edu; id WAA29606; Mon, 10 Sep 2001 22:52:06 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAm8aq05; Mon, 10 Sep 01 22:52:06 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B3kmo20006 for ; Mon, 10 Sep 2001 22:46:48 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B3s2Y02672; Mon, 10 Sep 2001 22:54:02 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f8B3s1402668 for ; Mon, 10 Sep 2001 22:54:01 -0500 (CDT) Received: (qmail 24035 invoked from network); 11 Sep 2001 03:54:07 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 11 Sep 2001 03:54:07 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f8B3roR23626 for png-implement@ccrc.wustl.edu; Mon, 10 Sep 2001 20:53:50 -0700 Received: from cmm.is.tohoku.ac.jp (sepa-gw.cmm.is.tohoku.ac.jp [130.34.53.13]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B3Lq402063 for ; Mon, 10 Sep 2001 22:21:53 -0500 (CDT) Received: from sugi (sugi [172.20.0.10]) by cmm.is.tohoku.ac.jp (8.8.7/3.6W-98100706) with SMTP id MAA15271 for ; Tue, 11 Sep 2001 12:09:37 +0900 Message-Id: <200109110309.MAA15271@cmm.is.tohoku.ac.jp> Date: Tue, 11 Sep 2001 12:16:51 +0900 (JST) From: Katsuhisa Shibata Subject: core dump in make test on Solaris for x86 To: png-implement@ccrc.wustl.edu MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: AgCitJZSe2kFzSz/kn9qRw== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 i86pc i386 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List [Non-member submission] Dear sir: I built libpng 1.2.0 under following environment Solaris 8 for x86 Sun WorkShop Compiler C 5.0 makefile: makefile.std but, make test failed as follows $ make test ./pngtest Testing libpng version 1.2.0 with zlib version 1.1.3 libpng version 1.2.0 - September 1, 2001 Copyright (c) 1998-2001 Glenn Randers-Pehrson Copyright (c) 1996, 1997 Andreas Dilger Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. library (10200): libpng version 1.2.0 - September 1, 2001 (header) pngtest (10200): libpng version 1.2.0 - September 1, 2001 (header) sizeof(png_struct)=572, sizeof(png_info)=288 *** Signal 11 - core dumped make: Fatal error: Command failed for target `test' In following environment, it passed. Solaris 6 for SPARC Sun WorkShop Compiler C 4.2 Thank you. -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 00:39:43 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id AAA08863 for ; Tue, 11 Sep 2001 00:39:43 -0500 (CDT) Received: by webshld.ccf.swri.edu; id AAA04654; Tue, 11 Sep 2001 00:37:24 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAiGaOfj; Tue, 11 Sep 01 00:37:24 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B5W8o22477 for ; Tue, 11 Sep 2001 00:32:08 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B5dW004220; Tue, 11 Sep 2001 00:39:32 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailout00.sul.t-online.de (mailout00.sul.t-online.com [194.25.134.16]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B5dV404216 for ; Tue, 11 Sep 2001 00:39:31 -0500 (CDT) Received: from fwd02.sul.t-online.de by mailout00.sul.t-online.de with smtp id 15ggGh-00035k-05; Tue, 11 Sep 2001 07:39:31 +0200 Received: from p3EE1CBF7.dip.t-dialin.net (027122869-0001@[62.225.203.247]) by fwd02.sul.t-online.com with smtp id 15ggGU-0rLUG0C; Tue, 11 Sep 2001 07:39:18 +0200 Date: 11 Sep 2001 7:38:36 +0100 From: Andreas_Kleinert@t-online.de (Andreas R. Kleinert) Subject: PNG support in IE 6.0 To: png-implement@ccrc.wustl.edu Message-ID: <652.654T1808T4584290info@ar-kleinert.de> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: THOR 2.6a (Amiga;TCP/IP) X-Sender: 027122869-0001@t-dialin.net Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List According to c't magazine (www.heise.de) issue #19 (page 192) IE 6.0 still can't display transparent PNGs correctly. Is this right? There's some other comment on PNG in a different context (same issue) that sounds slightly annoying and incorrect - but here, it was a dedicated browser test between NS 6.1, IE 6.0, Konqueror and Opera 5.12. So, I'd assume, they tested in detail... PNG is 6 (six!) years old now! -- Andreas_Kleinert@t-online.de | http://www.ar-kleinert.de | Freelance Consultant & Writer | Software Engineering | *** PerSuaSiVe SoftWorX *** | x86 Win/Linux, 68k/PPC Amiga and more | -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 03:53:00 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id DAA09682 for ; Tue, 11 Sep 2001 03:52:59 -0500 (CDT) Received: by webshld.ccf.swri.edu; id DAA13058; Tue, 11 Sep 2001 03:50:31 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAQgaiGz; Tue, 11 Sep 01 03:50:30 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B8jEo26903 for ; Tue, 11 Sep 2001 03:45:14 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B8qWL07149; Tue, 11 Sep 2001 03:52:32 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B8qD407141 for ; Tue, 11 Sep 2001 03:52:19 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id BAA01501 for ; Tue, 11 Sep 2001 01:55:14 -0700 Message-Id: <200109110855.BAA01501@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: "LIST: PNG Implement" Subject: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 11 Sep 2001 01:55:01 PDT Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List The documentation is rather ambiguous about calling setjmp(). Is setjmp() only need to be called once in a function before the first PNG read or write call? Or called just before any PNG read or write call? -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 04:34:21 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id EAA09788 for ; Tue, 11 Sep 2001 04:34:21 -0500 (CDT) Received: by webshld.ccf.swri.edu; id EAA14526; Tue, 11 Sep 2001 04:32:02 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAyEaGxC; Tue, 11 Sep 01 04:32:02 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B9Qjo27682 for ; Tue, 11 Sep 2001 04:26:45 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B9YFa07723; Tue, 11 Sep 2001 04:34:15 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (bas14-209.idf.club-internet.fr [213.44.254.209]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B9YD407718 for ; Tue, 11 Sep 2001 04:34:13 -0500 (CDT) Received: from trolltech.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.2/8.11.2) with ESMTP id f8B9aOt01989 for ; Tue, 11 Sep 2001 11:36:24 +0200 Message-ID: <3B9DDB18.EC526FE2@trolltech.com> Date: Tue, 11 Sep 2001 11:36:24 +0200 From: Dimitri Papadopoulos X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-12smp i686) X-Accept-Language: en MIME-Version: 1.0 To: PNG Implementation List Subject: Re: core dump in make test on Solaris for x86 References: <200109110309.MAA15271@cmm.is.tohoku.ac.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Hi, > I built libpng 1.2.0 under following environment > > Solaris 8 for x86 > Sun WorkShop Compiler C 5.0 I've built libpng 1.2.0 with Sun WorkShop Compiler C 5.0 on Solaris 7 and 8 for SPARC without problems. I suggest you patch the compiler if it's not patched yet, as the original release was quite buggy: http://access1.sun.com/forte/workshop5-patches.html Dimitri -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 04:34:21 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id EAA09790 for ; Tue, 11 Sep 2001 04:34:21 -0500 (CDT) Received: by webshld.ccf.swri.edu; id EAA14529; Tue, 11 Sep 2001 04:32:02 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA6EaOxC; Tue, 11 Sep 01 04:32:02 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8B9Qjo27681 for ; Tue, 11 Sep 2001 04:26:45 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8B9Y9E07715; Tue, 11 Sep 2001 04:34:09 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailout06.sul.t-online.de (mailout06.sul.t-online.com [194.25.134.19]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8B9Y8407711 for ; Tue, 11 Sep 2001 04:34:08 -0500 (CDT) Received: from fwd05.sul.t-online.de by mailout06.sul.t-online.de with smtp id 15gjvm-0000oo-05; Tue, 11 Sep 2001 11:34:10 +0200 Received: from p3E9E16DA.dip.t-dialin.net (027122869-0001@[62.158.22.218]) by fwd05.sul.t-online.com with smtp id 15gjvV-18dMtkC; Tue, 11 Sep 2001 11:33:53 +0200 Date: 11 Sep 2001 11:33:13 +0100 From: Andreas_Kleinert@t-online.de (Andreas R. Kleinert) Subject: Re: When to call setjmp() To: "PNG Implementation List" In-Reply-To: <200109110855.BAA01501@localhost.localdomain> Message-ID: <547.654T673T6932735info@ar-kleinert.de> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: THOR 2.6a (Amiga;TCP/IP) X-Sender: 027122869-0001@t-dialin.net Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List >The documentation is rather ambiguous about calling setjmp(). >Is setjmp() only need to be called once in a function before >the first PNG read or write call? Or called just before any >PNG read or write call? That depends on whether you want to jump to different places - or to the same exit point, in case of an error. -- Andreas_Kleinert@t-online.de | http://www.ar-kleinert.de | Freelance Consultant & Writer | Software Engineering | *** PerSuaSiVe SoftWorX *** | x86 Win/Linux, 68k/PPC Amiga and more | -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 13:48:48 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id NAA13274 for ; Tue, 11 Sep 2001 13:48:42 -0500 (CDT) Received: by webshld.ccf.swri.edu; id NAA18919; Tue, 11 Sep 2001 13:46:24 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAkXay8K; Tue, 11 Sep 01 13:46:23 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8BIf5o18363 for ; Tue, 11 Sep 2001 13:41:05 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8BIhQG19370; Tue, 11 Sep 2001 13:43:26 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from kauha.saunalahti.fi (kauha.saunalahti.fi [195.197.53.227]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8BIhO419365 for ; Tue, 11 Sep 2001 13:43:25 -0500 (CDT) Received: from ALPHA (tronic2.pp.sci.fi [195.74.7.210]) by kauha.saunalahti.fi (8.10.1/8.10.1) with ESMTP id f8BIh4C17075 for ; Tue, 11 Sep 2001 21:43:08 +0300 (EEST) Date: Tue, 11 Sep 2001 21:42:53 +0300 From: =?ISO-8859-1?B?TGFzc2UgS+Rya2vkaW5lbiAvIFRyb25pYw==?= X-Mailer: The Bat! (v1.51) Personal X-Priority: 3 (Normal) Message-ID: <9581093895.20010911214253@sci.fi> To: PNG Implementation List Subject: Re: PNG support in IE 6.0 In-Reply-To: <652.654T1808T4584290info@ar-kleinert.de> References: <652.654T1808T4584290info@ar-kleinert.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List ARK> According to c't magazine (www.heise.de) issue #19 (page 192) ARK> IE 6.0 still can't display transparent PNGs correctly. True. IE doesn't support alpha-transparency. Opera has problems too. Check out these sites: http://solidhardware.com/sn/?pics http://entropymine.com/jason/testbed/pngtrans/ ----------------------------------------------------- Lasse Kärkkäinen aka Tronic http://snull.cjb.net ----------------------------------------------------- -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 14:52:16 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id OAA13776 for ; Tue, 11 Sep 2001 14:52:10 -0500 (CDT) Received: by webshld.ccf.swri.edu; id OAA29449; Tue, 11 Sep 2001 14:49:51 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAPHaOG5; Tue, 11 Sep 01 14:49:51 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8BJiXo20888 for ; Tue, 11 Sep 2001 14:44:33 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8BJm6b21018; Tue, 11 Sep 2001 14:48:06 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from chef.ecs.soton.ac.uk (chef.ecs.soton.ac.uk [152.78.65.102]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8BJm4421014 for ; Tue, 11 Sep 2001 14:48:05 -0500 (CDT) Received: (from njl98r@localhost) by chef.ecs.soton.ac.uk (8.11.2/8.8.7) id f8BJmAs01004 for png-implement@ccrc.wustl.edu; Tue, 11 Sep 2001 20:48:10 +0100 Date: Tue, 11 Sep 2001 20:48:10 +0100 From: Nick Lamb To: PNG Implementation List Subject: Re: PNG support in IE 6.0 Message-ID: <20010911204809.A754@ecs.soton.ac.uk> Mail-Followup-To: PNG Implementation List References: <652.654T1808T4584290info@ar-kleinert.de> <9581093895.20010911214253@sci.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <9581093895.20010911214253@sci.fi>; from tronic2@sci.fi on Tue, Sep 11, 2001 at 09:42:53PM +0300 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Tue, Sep 11, 2001 at 09:42:53PM +0300, Lasse K?rkk?inen / Tronic wrote: > ARK> According to c't magazine (www.heise.de) issue #19 (page 192) > ARK> IE 6.0 still can't display transparent PNGs correctly. > > True. IE doesn't support alpha-transparency. Opera has problems too. Konqueror (on KDE/Unix, and presumably Konq embedded on other systems) supports only 1-bit transparency throughout, in speaking with the programmers I found that they believed full 8-bit alpha to have too great a performance effect to be acceptable in X11, which IMHO is still not a good reason to sacrifice visual fidelity. Nick. -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 16:33:08 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id QAA14610 for ; Tue, 11 Sep 2001 16:33:03 -0500 (CDT) Received: by webshld.ccf.swri.edu; id QAA15995; Tue, 11 Sep 2001 16:30:44 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAkiaqoF; Tue, 11 Sep 01 16:30:43 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8BLPRo25415 for ; Tue, 11 Sep 2001 16:25:27 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8BLSwP23569; Tue, 11 Sep 2001 16:28:58 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8BLSt423564 for ; Tue, 11 Sep 2001 16:28:55 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id OAA02668 for ; Tue, 11 Sep 2001 14:32:20 -0700 Message-Id: <200109112132.OAA02668@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 11 Sep 2001 14:30:24 PDT In-Reply-To: <547.654T673T6932735info@ar-kleinert.de> References: <547.654T673T6932735info@ar-kleinert.de> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On 11 Sep 2001 11:33:13 +0100, Andreas R. Kleinert said: > >Is setjmp() only need to be called once in a function before > >the first PNG read or write call? Or called just before any > >PNG read or write call? > > That depends on whether you want to jump to different > places - or to the same exit point, in case of an error. I'm confused, is there any documentation regarding what setjmp() is? Meaning the details about it. I'm familiar with C but this is the first time in 6 years that I've encountered something like this. -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 18:42:01 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id SAA15810 for ; Tue, 11 Sep 2001 18:41:53 -0500 (CDT) Received: by webshld.ccf.swri.edu; id SAA28244; Tue, 11 Sep 2001 18:39:34 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAWFayk3; Tue, 11 Sep 01 18:39:34 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8BNYHo28708 for ; Tue, 11 Sep 2001 18:34:17 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8BNbk726027; Tue, 11 Sep 2001 18:37:46 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from kauha.saunalahti.fi (kauha.saunalahti.fi [195.197.53.227]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8BNbi426023 for ; Tue, 11 Sep 2001 18:37:44 -0500 (CDT) Received: from ALPHA (tronic2.pp.sci.fi [195.74.7.210]) by kauha.saunalahti.fi (8.10.1/8.10.1) with ESMTP id f8BNbvC15325 for ; Wed, 12 Sep 2001 02:37:58 +0300 (EEST) Date: Wed, 12 Sep 2001 02:37:46 +0300 From: =?ISO-8859-1?B?TGFzc2UgS+Rya2vkaW5lbiAvIFRyb25pYw==?= X-Mailer: The Bat! (v1.51) Personal X-Priority: 3 (Normal) Message-ID: <4398788912.20010912023746@sci.fi> To: PNG Implementation List Subject: Re[2]: PNG support in IE 6.0 In-Reply-To: <20010911204809.A754@ecs.soton.ac.uk> References: <652.654T1808T4584290info@ar-kleinert.de> <9581093895.20010911214253@sci.fi> <20010911204809.A754@ecs.soton.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List NL> Konqueror (on KDE/Unix, and presumably Konq embedded on other systems) NL> supports only 1-bit transparency throughout, in speaking with the programmers NL> I found that they believed full 8-bit alpha to have too great a performance NL> effect to be acceptable in X11, which IMHO is still not a good reason to NL> sacrifice visual fidelity. True. But actually, who cares? Their browser is so buggy/limited that it can't be used anyway (at least the version I have is). <- that's just my personal opinion, don't take it too seriously. Anyway, I could e-mail them, suggesting full alpha -support. In addition to that my testing indicated that it doesn't support progressive loading with PNG; it loads the image completely before displaying anything. Can anyone else confirm that with latest version? Could you give me their e-mail or direct web-address? Btw, you'll probably also want to report the PNG-bug in Opera - they do know about it, but looks like that not enough people have reported it and because of that it is not in their priority to fix it. http://bugs.opera.com/bugreport.cgi After alpha works in most browsers other than IE, M$ might get some pressure to fix it there too :) ----------------------------------------------------- Lasse Kärkkäinen aka Tronic http://snull.cjb.net ----------------------------------------------------- -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Tue Sep 11 22:06:56 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id WAA16407 for ; Tue, 11 Sep 2001 22:06:51 -0500 (CDT) Received: by webshld.ccf.swri.edu; id WAA06476; Tue, 11 Sep 2001 22:04:32 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAB0ayPm; Tue, 11 Sep 01 22:04:31 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8C2xEo02637 for ; Tue, 11 Sep 2001 21:59:14 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8C34PO29028; Tue, 11 Sep 2001 22:04:25 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail14.sdc1.sfba.home.com (femail14.sdc1.sfba.home.com [24.0.95.141]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8C34N429024 for ; Tue, 11 Sep 2001 22:04:23 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail14.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010912030432.HAIQ15922.femail14.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Tue, 11 Sep 2001 20:04:32 -0700 Message-Id: <3.0.6.32.20010911230156.00e75100@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Tue, 11 Sep 2001 23:01:56 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: core dump in make test on Solaris for x86 Cc: Katsuhisa Shibata In-Reply-To: <200109110309.MAA15271@cmm.is.tohoku.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 12:16 PM 9/11/01 +0900, you wrote: >[Non-member submission] > >Dear sir: > >I built libpng 1.2.0 under following environment > >Solaris 8 for x86 >Sun WorkShop Compiler C 5.0 >makefile: makefile.std > >but, make test failed Would you try makefile.solaris instead? Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Wed Sep 12 09:08:21 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id JAA18975 for ; Wed, 12 Sep 2001 09:08:16 -0500 (CDT) Received: by webshld.ccf.swri.edu; id JAA15494; Wed, 12 Sep 2001 09:05:56 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAxtaOqE; Wed, 12 Sep 01 09:05:55 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8CE0bo18206 for ; Wed, 12 Sep 2001 09:00:37 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8CE6Pe08661; Wed, 12 Sep 2001 09:06:25 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f8CE6O408656 for ; Wed, 12 Sep 2001 09:06:24 -0500 (CDT) Received: (qmail 12654 invoked from network); 12 Sep 2001 14:06:25 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 12 Sep 2001 14:06:25 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f8CE66J02340 for png-implement@ccrc.wustl.edu; Wed, 12 Sep 2001 07:06:06 -0700 Received: from cmm.is.tohoku.ac.jp (sepa-gw.cmm.is.tohoku.ac.jp [130.34.53.13]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8C45I429992 for ; Tue, 11 Sep 2001 23:05:26 -0500 (CDT) Received: from sugi (sugi [172.20.0.10]) by cmm.is.tohoku.ac.jp (8.8.7/3.6W-98100706) with SMTP id MAA15826 for ; Wed, 12 Sep 2001 12:52:57 +0900 Message-Id: <200109120352.MAA15826@cmm.is.tohoku.ac.jp> Date: Wed, 12 Sep 2001 13:00:12 +0900 (JST) From: Katsuhisa Shibata Subject: Re: core dump in make test on Solaris for x86 To: png-implement@ccrc.wustl.edu MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: 6PxewRLMAi0OvTs7LIL+BA== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.4 SunOS 5.8 i86pc i386 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List [non-member submission] > Would you try makefile.solaris > instead? Sorry, I haven't installed gcc. Instead, I tried changing optimization level. level 1-5, and no optimization option : failed. -g : passed. It seems that the cause is the optimization bug of our compiler. It is the first experience for me. Thank you. Katsuhisa SHIBATA -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Thu Sep 13 12:45:59 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id MAA29733 for ; Thu, 13 Sep 2001 12:45:59 -0500 (CDT) Received: by webshld.ccf.swri.edu; id MAA17193; Thu, 13 Sep 2001 12:43:38 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA0jaaLH; Thu, 13 Sep 01 12:43:38 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8DHcKS19667 for ; Thu, 13 Sep 2001 12:38:20 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8DHiKX12230; Thu, 13 Sep 2001 12:44:20 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail8.sdc1.sfba.home.com (femail8.sdc1.sfba.home.com [24.0.95.88]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8DHiJ412226 for ; Thu, 13 Sep 2001 12:44:19 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail8.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010913174417.IQOB9104.femail8.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com>; Thu, 13 Sep 2001 10:44:17 -0700 Message-Id: <3.0.6.32.20010913134143.00e7c690@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Thu, 13 Sep 2001 13:41:43 -0400 To: Frank Thommen From: Glenn Randers-Pehrson Subject: Re: libpng 1.2.0: masses of output to stderr Cc: png-implement@ccrc.wustl.edu In-Reply-To: <200109131713.TAA09800@algonquin.inf.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 07:13 PM 9/13/01 +0200, Frank Thommen wrote: >hello, > >libpng 1.2.0 writes a huge mass of messages to stderr when using it, like: > >... >in png_write_row (row 285, pass 1) > in png_write_finish_row Somehow you've defined PNG_DEBUG, either with #define or with -D on your compile directive. Don't do that. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 09:31:01 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id JAA07953 for ; Fri, 14 Sep 2001 09:31:00 -0500 (CDT) Received: by webshld.ccf.swri.edu; id JAA06081; Fri, 14 Sep 2001 09:28:39 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAWFay3l; Fri, 14 Sep 01 09:28:38 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8EENJ905773 for ; Fri, 14 Sep 2001 09:23:20 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8EEURj05117; Fri, 14 Sep 2001 09:30:27 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from marine.sonic.net (marine.sonic.net [208.201.224.37]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with SMTP id f8EEUQ405112 for ; Fri, 14 Sep 2001 09:30:26 -0500 (CDT) Received: (qmail 16520 invoked from network); 14 Sep 2001 14:30:27 -0000 Received: from bolt.sonic.net (HELO sonic.net) (208.201.224.36) by marine.sonic.net with SMTP; 14 Sep 2001 14:30:27 -0000 Received: (from roelofs@localhost) by sonic.net (8.11.6/8.7.3) id f8EEU4m01887 for png-implement@ccrc.wustl.edu; Fri, 14 Sep 2001 07:30:04 -0700 Received: from core.inf.ethz.ch (core.inf.ethz.ch [129.132.178.196]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8DHDQ411288 for ; Thu, 13 Sep 2001 12:13:26 -0500 (CDT) Received: from algonquin.inf.ethz.ch (thommen@algonquin.inf.ethz.ch [129.132.10.25]) by core.inf.ethz.ch (8.9.3/8.9.3) with ESMTP id TAA12574; Thu, 13 Sep 2001 19:13:22 +0200 (MET DST) Received: from localhost (thommen@localhost) by algonquin.inf.ethz.ch (8.8.8/8.8.8) with ESMTP id TAA09800; Thu, 13 Sep 2001 19:13:22 +0200 (MET DST) Message-Id: <200109131713.TAA09800@algonquin.inf.ethz.ch> X-Mailer: exmh version 2.0.2 2/24/98 To: png-implement@ccrc.wustl.edu, randeg@alum.rpi.edu Subject: libpng 1.2.0: masses of output to stderr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 13 Sep 2001 19:13:22 +0200 From: Frank Thommen Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List [non-member submission] hello, libpng 1.2.0 writes a huge mass of messages to stderr when using it, like: ... in png_write_row (row 285, pass 1) in png_write_finish_row in png_write_row (row 286, pass 1) in png_write_finish_row in png_write_row (row 287, pass 1) in png_write_finish_row in png_write_row (row 288, pass 1) row_info->color_type = 3 row_info->width = 400 row_info->channels = 1 row_info->bit_depth = 8 row_info->pixel_depth = 8 row_info->rowbytes = 400 in png_do_write_interlace in png_do_write_transformations in png_do_pack in png_write_find_filter in png_write_filtered_row ... is there a way to eliminate these messages by a different installation method than the default one documented in the README file? thank you very much in advance frank thommen -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 16:02:09 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id QAA12095 for ; Fri, 14 Sep 2001 16:02:09 -0500 (CDT) Received: by webshld.ccf.swri.edu; id PAA01060; Fri, 14 Sep 2001 15:59:47 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA7jaaec; Fri, 14 Sep 01 15:59:47 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8EKsR926066 for ; Fri, 14 Sep 2001 15:54:27 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8EL0sJ13896; Fri, 14 Sep 2001 16:00:54 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8EL0q413888 for ; Fri, 14 Sep 2001 16:00:52 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id OAA03239 for ; Fri, 14 Sep 2001 14:04:09 -0700 Message-Id: <200109142104.OAA03239@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: "LIST: PNG Implement" Subject: New PNG prog, Image Viewer X-Mailer: Pronto v2.2.5 On linux/mysql Date: 14 Sep 2001 13:53:58 PDT Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Hi we have a new program (for Linux/UNIX) that uses libpng and Imlib (uses libpng directly though). It supports reading of all PNG formats (palette, rgb, grey, etc)... Also has blending and background color support. Would like those famliar with PNG and have many exotic PNG files to try it out: http://wolfpack.twu.net/utilities.html See if it supports PNG nicly. -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 18:12:18 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id SAA13082 for ; Fri, 14 Sep 2001 18:12:18 -0500 (CDT) Received: by webshld.ccf.swri.edu; id SAA18149; Fri, 14 Sep 2001 18:09:56 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAABNaGCJ; Fri, 14 Sep 01 18:09:56 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8EN4a901126 for ; Fri, 14 Sep 2001 18:04:36 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8ENBhY15108; Fri, 14 Sep 2001 18:11:43 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail10.sdc1.sfba.home.com (femail10.sdc1.sfba.home.com [24.0.95.106]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8ENBg415104 for ; Fri, 14 Sep 2001 18:11:42 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail10.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010914231148.XCWO2633.femail10.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com> for ; Fri, 14 Sep 2001 16:11:48 -0700 Message-Id: <3.0.6.32.20010914190913.00eb9ea0@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 14 Sep 2001 19:09:13 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: When to call setjmp() In-Reply-To: <200109112132.OAA02668@localhost.localdomain> References: <547.654T673T6932735info@ar-kleinert.de> <547.654T673T6932735info@ar-kleinert.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 02:30 PM 9/11/01 PDT, Tara M wrote: >I'm confused, is there any documentation regarding what >setjmp() is? Meaning the details about it. On UNIX systems, "man setjmp" will give you more details than you want. You might consider using cexcept.h instead, which hides the setjmp/longjmp mechanism behind C++ like "Try" and "Catch" calls. See http://cexcept.sf.net and also the program in libpng's "contrib/visupng" directory. Pngcrush, http://pmt.sf.net/pngcrush also uses cexcept.h. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 18:40:07 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id SAA13148 for ; Fri, 14 Sep 2001 18:40:07 -0500 (CDT) Received: by webshld.ccf.swri.edu; id SAA19932; Fri, 14 Sep 2001 18:37:45 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAA5jay7M; Fri, 14 Sep 01 18:37:45 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8ENWR901904 for ; Fri, 14 Sep 2001 18:32:27 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8ENdtC15232; Fri, 14 Sep 2001 18:39:55 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mail.san.yahoo.com (mail.san.yahoo.com [209.132.1.30]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8ENds415228 for ; Fri, 14 Sep 2001 18:39:54 -0500 (CDT) Received: from libra.ecliptic (24.67.95.214) by mail.san.yahoo.com (5.5.041.1) id 3BA11DEB00055617; Fri, 14 Sep 2001 16:38:36 -0700 Message-Id: <3.0.3.32.20010914173950.00699a80@mail.schaik.com> X-Sender: willemschaik@mail.schaik.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (32) Date: Fri, 14 Sep 2001 17:39:50 -0600 To: PNG Implementation List From: Willem van Schaik Subject: Re: New PNG prog, Image Viewer Cc: "Tara M" In-Reply-To: <200109142104.OAA03239@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List Tara, For many different (exotic) types of PNG formats, have a look at PngSuite, the official (mmm, what is "official" in this bunch :-) PNG testset (www.schaik.com/pngsuite). You will find 150-200 different test images. Willem At 13:53 14-09-01 PDT, you wrote: >Hi we have a new program (for Linux/UNIX) that uses libpng >and Imlib (uses libpng directly though). > >It supports reading of all PNG formats (palette, rgb, grey, etc)... >Also has blending and background color support. > >Would like those famliar with PNG and have many exotic PNG files >to try it out: http://wolfpack.twu.net/utilities.html >See if it supports PNG nicly. > > >-- >-- >Sincerely, ,"-_ \|/ >-Capt. Taura M. , O=__ --X-- >.__ ,_JNMNNEO=_ /|\ >OMNOUMmnne. {OMMNNNEEEEOO=_ >UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. >UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ >OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. >EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . >NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . > http://furry.ao.net/~learfox/ > > > >-- >Send the message body "help" to png-implement-request@ccrc.wustl.edu > v a n S c h a i k ------------------------------------------------------------------------ mailto:willem@schaik.com http://www.schaik.com/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 19:31:29 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id TAA13380 for ; Fri, 14 Sep 2001 19:31:29 -0500 (CDT) Received: by webshld.ccf.swri.edu; id TAA23094; Fri, 14 Sep 2001 19:29:07 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAhNaygT; Fri, 14 Sep 01 19:29:07 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8F0Nn903208 for ; Fri, 14 Sep 2001 19:23:49 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8F0VBD15544; Fri, 14 Sep 2001 19:31:11 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8F0V9415540 for ; Fri, 14 Sep 2001 19:31:09 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id RAA04384 for ; Fri, 14 Sep 2001 17:34:34 -0700 Message-Id: <200109150034.RAA04384@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 14 Sep 2001 17:34:05 PDT In-Reply-To: <3.0.6.32.20010914190913.00eb9ea0@netmail.home.com> References: <547.654T673T6932735info@ar-kleinert.de><547.654T673T6932735info@ar-kleinert.de> <3.0.6.32.20010914190913.00eb9ea0@netmail.home.com> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Fri, 14 Sep 2001 19:09:13 -0400, Glenn Randers-Pehrson said: > At 02:30 PM 9/11/01 PDT, Tara M wrote: > >I'm confused, is there any documentation regarding what > >setjmp() is? Meaning the details about it. > > On UNIX systems, "man setjmp" will give you more details than > you want. Hmmm, would it be safe to say for now that I only need to place setjmp() (for reading) before png_set_progressive_read_fn()? and png_process_data()? And for writing, setjmp() goes before png_init_io()? Would that be safe? -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Fri Sep 14 20:02:20 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id UAA13445 for ; Fri, 14 Sep 2001 20:02:20 -0500 (CDT) Received: by webshld.ccf.swri.edu; id TAA24865; Fri, 14 Sep 2001 19:59:58 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAwFaaKW; Fri, 14 Sep 01 19:59:58 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8F0se904136 for ; Fri, 14 Sep 2001 19:54:40 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8F126l15680; Fri, 14 Sep 2001 20:02:06 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from femail13.sdc1.sfba.home.com (femail13.sdc1.sfba.home.com [24.0.95.140]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8F125415676 for ; Fri, 14 Sep 2001 20:02:05 -0500 (CDT) Received: from cc170083-a.abdn1.md.home.com ([24.7.161.22]) by femail13.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20010915010212.PUV17121.femail13.sdc1.sfba.home.com@cc170083-a.abdn1.md.home.com> for ; Fri, 14 Sep 2001 18:02:12 -0700 Message-Id: <3.0.6.32.20010914205938.00e85b20@netmail.home.com> X-Sender: glennrp@netmail.home.com X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Fri, 14 Sep 2001 20:59:38 -0400 To: PNG Implementation List From: Glenn Randers-Pehrson Subject: Re: When to call setjmp() In-Reply-To: <200109150034.RAA04384@localhost.localdomain> References: <3.0.6.32.20010914190913.00eb9ea0@netmail.home.com> <547.654T673T6932735info@ar-kleinert.de> <547.654T673T6932735info@ar-kleinert.de> <3.0.6.32.20010914190913.00eb9ea0@netmail.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List At 05:34 PM 9/14/01 PDT, you wrote: >Hmmm, would it be safe to say for now that I only need to >place setjmp() (for reading) before >png_set_progressive_read_fn()? and png_process_data()? > >And for writing, setjmp() goes before png_init_io()? > >Would that be safe? That sounds OK. It has to come after you have created your png struct, but before calling anything that might result in a png_error() call. Glenn -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sat Sep 15 02:49:54 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id CAA24268 for ; Sat, 15 Sep 2001 02:49:53 -0500 (CDT) Received: by webshld.ccf.swri.edu; id CAA10921; Sat, 15 Sep 2001 02:47:31 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAiHaavv; Sat, 15 Sep 01 02:47:31 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8F7gC909962 for ; Sat, 15 Sep 2001 02:42:12 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8F7nU517765; Sat, 15 Sep 2001 02:49:30 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8F7nS417761 for ; Sat, 15 Sep 2001 02:49:28 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id AAA06968 for ; Sat, 15 Sep 2001 00:53:13 -0700 Message-Id: <200109150753.AAA06968@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: "LIST: PNG Implement" Subject: 16 bit PNG files (was Re: New PNG prog) X-Mailer: Pronto v2.2.5 On linux/mysql Date: 15 Sep 2001 00:52:38 PDT In-Reply-To: <3.0.3.32.20010914173950.00699a80@mail.schaik.com> References: <3.0.3.32.20010914173950.00699a80@mail.schaik.com> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Fri, 14 Sep 2001 17:39:50 -0600, Willem van Schaik said: > For many different (exotic) types of PNG formats, have a look at PngSuite, > the official (mmm, what is "official" in this bunch :-) PNG testset > (www.schaik.com/pngsuite). You will find 150-200 different test images. > > Willem Thank you Willem, I've tested all the images on the page and so far the only ones with trouble are the 16 bit ones. In particular: http://schaik.com/pngsuite/basn2c16.png http://schaik.com/pngsuite/basn6a16.png These have 16 bit RGB color and for some reason the loaded data seems to be messed up (alpha values seem to be near 0 everywhere) so I'd like to confirm some PNG transformations: In my loading routine I have: png_set_strip_16(png_ptr); Will have any affect? also do I need to swap the bytes? For 16 bit files? -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sat Sep 15 04:27:11 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id EAA24562 for ; Sat, 15 Sep 2001 04:27:11 -0500 (CDT) Received: by webshld.ccf.swri.edu; id EAA13525; Sat, 15 Sep 2001 04:24:49 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAgMaGAA; Sat, 15 Sep 01 04:24:48 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8F9JT910872 for ; Sat, 15 Sep 2001 04:19:29 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8F9Qxn18179; Sat, 15 Sep 2001 04:26:59 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailgate5.cinetic.de (mailgate5.cinetic.de [217.72.192.165]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8F9Qw418175 for ; Sat, 15 Sep 2001 04:26:58 -0500 (CDT) Received: from smtp.web.de (smtp01.dlan.cinetic.de [172.20.0.189]) by mailgate5.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id f8F9Qrx32510 for ; Sat, 15 Sep 2001 11:26:54 +0200 Received: from buddha by smtp.web.de with smtp (freemail 4.2.2.3 #18) id m15iBiu-007oiJC; Sat, 15 Sep 2001 11:26 +0200 From: "Matthias Benkmann" To: PNG Implementation List Date: Sat, 15 Sep 2001 11:25:42 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: When to call setjmp() Message-ID: <3BA33AB6.14808.34C7F2@localhost> In-reply-to: <3.0.6.32.20010914205938.00e85b20@netmail.home.com> References: <200109150034.RAA04384@localhost.localdomain> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On 14 Sep 2001, at 20:59, Glenn Randers-Pehrson wrote: > At 05:34 PM 9/14/01 PDT, you wrote: > > >Hmmm, would it be safe to say for now that I only need to > >place setjmp() (for reading) before > >png_set_progressive_read_fn()? and png_process_data()? > > > >And for writing, setjmp() goes before png_init_io()? > > > >Would that be safe? > > That sounds OK. It has to come after you have created your png struct, but > before calling anything that might result in a png_error() call. Whether it is safe also depends on what you do in your setjmp()!=0 block and the whole structure of your program. 2 rules of thumb for setjmp()/longjmp() novices: - after longjmp(), i.e. when your setjmp()!=0 part is executed, regard ALL automatic variables as garbage with random values - returning from the function that called setjmp() invalidates the jump target, so do not build something like this f1() { if (setjmp(...)!=0) { .... } } main() { f1(); png_function_that_could_longjmp() } In reality the rules are more relaxed but it takes arcane knowledge of system internals and the actual implementation of setjmp()/longjmp() to get it right and even people who believe they have that knowledge often get it wrong. If you follow the above rules you are at least somewhat safe, but there is still much that can go wrong. Maybe I should add a 3rd rule: - do not longjmp() (here: call a png function that could do it) from a nesting level that is deeper than where you called setjmp(), i.e. do not do this f1() { png_function_that_may_longjmp() } main() { if (setjmp(...)!=0) { } f1() } Avoiding this construction helps you prevent resource leaks. So the safest way to use setjmp() is probably like this int f1() { /*static because we want to access in setjmp()!=0 part*/ static type resource1=unused_marker; static type resource2=unused_marker; if (setjmp(...)!=0) { if (resource1!=unused_marker) free resource1; if (resource2!=unused_marker) free resource2; return -1; /*exit from f1 with error code*/ } allocate resource1; png stuff that may longjmp() allocate resource2; png stuf that may longjmp() } Do this for every function that calls png functions that may longjmp() and you should be reasonably safe from surprises but be aware that as long as a single instance of setjmp() is in your code you are *never* 100% safe from surprises. The biggest problem is that any errors you make do not surface until something really goes wrong, so chances are you will not find the bug during testing but will rather receive reports of mysterious segmentation/general protection faults later from your users. In fact if you get reports of segfault/GPF you may count yourself lucky. setjmp()/longjmp() related errors can be a lot more subtle and mysterious. And they are almost impossible to track down. The price of setjmp() is eternal vigilance ;-) MSB ---- God is real, unless declared integer. -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sat Sep 15 19:19:24 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id TAA26412 for ; Sat, 15 Sep 2001 19:19:24 -0500 (CDT) Received: by webshld.ccf.swri.edu; id TAA12571; Sat, 15 Sep 2001 19:17:01 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAMha4Iy; Sat, 15 Sep 01 19:17:01 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8G0Bg920989 for ; Sat, 15 Sep 2001 19:11:42 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8G0I3G22168; Sat, 15 Sep 2001 19:18:03 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (120.dialup.44.uia.net [66.146.44.120]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8G0I0422164 for ; Sat, 15 Sep 2001 19:18:01 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id RAA09717 for ; Sat, 15 Sep 2001 17:22:53 -0700 Message-Id: <200109160022.RAA09717@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 15 Sep 2001 17:22:37 PDT In-Reply-To: <3BA33AB6.14808.34C7F2@localhost> References: <200109150034.RAA04384@localhost.localdomain> <3BA33AB6.14808.34C7F2@localhost> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Sat, 15 Sep 2001 11:25:42 +0200, Matthias Benkmann said: > Do this for every function that calls png functions that may longjmp() and > you should be reasonably safe from surprises but be aware that as long as > a single instance of setjmp() is in your code you are *never* 100% safe > >from surprises. > The biggest problem is that any errors you make do not surface until > something really goes wrong, so chances are you will not find the bug > during testing but will rather receive reports of mysterious > segmentation/general protection faults later from your users. In fact if > you get reports of segfault/GPF you may count yourself lucky. > setjmp()/longjmp() related errors can be a lot more subtle and mysterious. > And they are almost impossible to track down. Thank you very much Matthias! That's been very helpful, I rearranged some of the calls in my PNG loading and reading routines. I'm still reviewing what you said but I think I have a much better picture of what setjmp() involves now. Not sure why libpng wants to use that but it does, hope there are no bugs!! ;) -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 05:23:43 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id FAA28233 for ; Sun, 16 Sep 2001 05:23:42 -0500 (CDT) Received: by webshld.ccf.swri.edu; id FAA28983; Sun, 16 Sep 2001 05:21:13 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAZFaWM4; Sun, 16 Sep 01 05:21:12 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GAFq926557 for ; Sun, 16 Sep 2001 05:15:52 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GAN2j24959; Sun, 16 Sep 2001 05:23:02 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GAMx424955 for ; Sun, 16 Sep 2001 05:22:59 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id DAA00713 for ; Sun, 16 Sep 2001 03:25:41 -0700 Message-Id: <200109161025.DAA00713@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 16 Sep 2001 03:25:28 PDT In-Reply-To: <3BA33AB6.14808.34C7F2@localhost> References: <200109150034.RAA04384@localhost.localdomain> <3BA33AB6.14808.34C7F2@localhost> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List I noticed that in some of the examples, ie contrib/gregbook/readpng2.c There are contents within the setjmp() != 0 block, they won't get messed up because ______ ? Here's what I'm talking about: if (setjmp(mainprog_ptr->jmpbuf)) { png_destroy_read_struct(&png_ptr, &info_ptr, NULL); mainprog_ptr->png_ptr = NULL; mainprog_ptr->info_ptr = NULL; return 2; } Since png_ptr and info_ptr are declared in the same function as setjmp() I was just concearned if there were any issues? So would it be safe to: png_structp png_ptr = NULL; png_infop info_ptr = NULL; mystruct cb_data = (mystruct *)malloc(sizeof(mystruct)); /* Set up PNG read stuff here. */ if(setjmp(...)) { png_destroy_read_struct(&png_ptr, &info_ptr, NULL); free_cb_data(cb_data); return(-1); } /* Normal stuff goes here. */ png_destroy_read_struct(&png_ptr, &info_ptr, NULL); free_cb_data(cb_data); return(0); } -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 06:22:58 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id GAA28399 for ; Sun, 16 Sep 2001 06:22:50 -0500 (CDT) Received: by webshld.ccf.swri.edu; id GAA00470; Sun, 16 Sep 2001 06:20:29 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAZPaO6a; Sun, 16 Sep 01 06:20:28 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GBF7926964 for ; Sun, 16 Sep 2001 06:15:08 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GBMfs25187; Sun, 16 Sep 2001 06:22:41 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailgate5.cinetic.de (mailgate5.cinetic.de [217.72.192.165]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GBMd425183 for ; Sun, 16 Sep 2001 06:22:39 -0500 (CDT) Received: from smtp.web.de (smtp01.dlan.cinetic.de [172.20.0.189]) by mailgate5.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id f8GBMPx03865 for ; Sun, 16 Sep 2001 13:22:33 +0200 Received: from buddha by smtp.web.de with smtp (freemail 4.2.2.3 #18) id m15ia0G-007ohGC; Sun, 16 Sep 2001 13:22 +0200 From: "Matthias Benkmann" To: PNG Implementation List Date: Sun, 16 Sep 2001 13:21:13 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: When to call setjmp() Message-ID: <3BA4A749.17421.19C097@localhost> In-reply-to: <200109161025.DAA00713@localhost.localdomain> References: <3BA33AB6.14808.34C7F2@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On 16 Sep 2001, at 3:25, Tara M wrote: > > I noticed that in some of the examples, ie > contrib/gregbook/readpng2.c > > There are contents within the setjmp() != 0 block, they won't > get messed up because ______ ? > > Here's what I'm talking about: > > if (setjmp(mainprog_ptr->jmpbuf)) { > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > mainprog_ptr->png_ptr = NULL; > mainprog_ptr->info_ptr = NULL; > return 2; > } > > Since png_ptr and info_ptr are declared in the same function > as setjmp() I was just concearned if there were any issues? Good question. You have a good eye and the right attitude. But there is no issue here because png_ptr and info_ptr get their values before the call to setjmp() and do not change their values after setjmp(). As I said, the rules I gave were merely rules of thumb to be on the safe side. > So would it be safe to: > > png_structp png_ptr = NULL; > png_infop info_ptr = NULL; > mystruct cb_data = (mystruct *)malloc(sizeof(mystruct)); > > > /* Set up PNG read stuff here. */ > > if(setjmp(...)) > { > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > free_cb_data(cb_data); > return(-1); > } > > /* Normal stuff goes here. */ > > > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > free_cb_data(cb_data); > > return(0); > } This is safe as long as your "Normal stuff" does not change the values of png_ptr, info_ptr or cb_data. MSB ---- Democracy is when the people has the right to make the wrong choices. -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 06:26:02 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id GAA28409 for ; Sun, 16 Sep 2001 06:25:57 -0500 (CDT) Received: by webshld.ccf.swri.edu; id GAA00525; Sun, 16 Sep 2001 06:23:36 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAgzaGbb; Sun, 16 Sep 01 06:23:35 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GBIF926985 for ; Sun, 16 Sep 2001 06:18:15 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GBPlU25205; Sun, 16 Sep 2001 06:25:47 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailgate5.cinetic.de (mailgate5.cinetic.de [217.72.192.165]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GBPk425201 for ; Sun, 16 Sep 2001 06:25:46 -0500 (CDT) Received: from smtp.web.de (smtp01.dlan.cinetic.de [172.20.0.189]) by mailgate5.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id f8GBPmx09738 for ; Sun, 16 Sep 2001 13:25:48 +0200 Received: from buddha by smtp.web.de with smtp (freemail 4.2.2.3 #18) id m15ia3X-007opGC; Sun, 16 Sep 2001 13:25 +0200 From: "Matthias Benkmann" To: PNG Implementation List Date: Sun, 16 Sep 2001 13:24:36 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: When to call setjmp() Message-ID: <3BA4A814.15767.1CD7BE@localhost> In-reply-to: <200109160022.RAA09717@localhost.localdomain> References: <3BA33AB6.14808.34C7F2@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On 15 Sep 2001, at 17:22, Tara M wrote: > > On Sat, 15 Sep 2001 11:25:42 +0200, Matthias Benkmann said: > > > Do this for every function that calls png functions that may longjmp() > > and you should be reasonably safe from surprises but be aware that as > > long as a single instance of setjmp() is in your code you are *never* > > 100% safe > > >from surprises. > Not sure why libpng wants to use that but it does, hope > there are no bugs!! ;) This is a valid question. Other libraries such as the C library itself rely on error codes. I guess the idea was that with setjmp() you avoid repeating stuff like if (png_call()<0) { png_destroy... return } over and over again. But of course good old goto would work just as well if (png_call()<0) goto handle_png_error; If you create macros for every png_call that automatically create this code you would be able to just write { /*... */ xpng_call1(); xpng_call2(); handle_png_error: /* stuff*/ } A solution that IMHO is very elegant and has the added benefit that the compiler will output an error whenever you use an xpng_call() function and forget handle_png_error. I certainly think that libpng should support an alternate error handling mechanism based on something like -1/png_errno. MSB ---- The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment. -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 16:30:40 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id QAA29566 for ; Sun, 16 Sep 2001 16:30:33 -0500 (CDT) Received: by webshld.ccf.swri.edu; id QAA22786; Sun, 16 Sep 2001 16:28:11 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAASRaiGS; Sun, 16 Sep 01 16:28:11 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GLMn905131 for ; Sun, 16 Sep 2001 16:22:49 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GLThM28013; Sun, 16 Sep 2001 16:29:43 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GLTe428009 for ; Sun, 16 Sep 2001 16:29:40 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id OAA04099 for ; Sun, 16 Sep 2001 14:32:59 -0700 Message-Id: <200109162132.OAA04099@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 16 Sep 2001 14:32:48 PDT In-Reply-To: <3BA4A749.17421.19C097@localhost> References: <3BA33AB6.14808.34C7F2@localhost> <3BA4A749.17421.19C097@localhost> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Sun, 16 Sep 2001 13:21:13 +0200, Matthias Benkmann said: > > So would it be safe to: > > > > png_structp png_ptr = NULL; > > png_infop info_ptr = NULL; > > mystruct cb_data = (mystruct *)malloc(sizeof(mystruct)); > > > > > > /* Set up PNG read stuff here. */ > > > > if(setjmp(...)) > > { > > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > > free_cb_data(cb_data); > > return(-1); > > } > > > > /* Normal stuff goes here. */ > > > > > > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > > free_cb_data(cb_data); > > > > return(0); > > } > > > This is safe as long as your "Normal stuff" does not change the values of > png_ptr, info_ptr or cb_data. I see, since cb_data is a structure, would it be safe to change the members of that structure within the /* Normal stuff */ segment (keeping `re-entry' in mind)? -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 16:37:50 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id QAA29593 for ; Sun, 16 Sep 2001 16:37:45 -0500 (CDT) Received: by webshld.ccf.swri.edu; id QAA23166; Sun, 16 Sep 2001 16:35:23 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAAkaOpT; Sun, 16 Sep 01 16:35:23 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GLU1905303 for ; Sun, 16 Sep 2001 16:30:01 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GLbZx28056; Sun, 16 Sep 2001 16:37:35 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from mailgate5.cinetic.de (mailgate5.cinetic.de [217.72.192.165]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GLbX428051 for ; Sun, 16 Sep 2001 16:37:34 -0500 (CDT) Received: from smtp.web.de (smtp01.dlan.cinetic.de [172.20.0.189]) by mailgate5.cinetic.de (8.11.2/8.11.2/SuSE Linux 8.11.0-0.4) with SMTP id f8GLbZx30370 for ; Sun, 16 Sep 2001 23:37:35 +0200 Received: from buddha by smtp.web.de with smtp (freemail 4.2.2.3 #18) id m15ijba-007owjC; Sun, 16 Sep 2001 23:37 +0200 From: "Matthias Benkmann" To: PNG Implementation List Date: Sun, 16 Sep 2001 23:36:22 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: When to call setjmp() Message-ID: <3BA53776.19466.4F96D5@localhost> In-reply-to: <200109162132.OAA04099@localhost.localdomain> References: <3BA4A749.17421.19C097@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On 16 Sep 2001, at 14:32, Tara M wrote: > > On Sun, 16 Sep 2001 13:21:13 +0200, Matthias Benkmann said: > > > > So would it be safe to: > > > > > > png_structp png_ptr = NULL; > > > png_infop info_ptr = NULL; > > > mystruct cb_data = (mystruct *)malloc(sizeof(mystruct)); > > > > > > > > > /* Set up PNG read stuff here. */ > > > > > > if(setjmp(...)) > > > { > > > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > > > free_cb_data(cb_data); > > > return(-1); > > > } > > > > > > /* Normal stuff goes here. */ > > > > > > > > > png_destroy_read_struct(&png_ptr, &info_ptr, NULL); > > > free_cb_data(cb_data); > > > > > > return(0); > > > } > > > > > > This is safe as long as your "Normal stuff" does not change the values > > of png_ptr, info_ptr or cb_data. > > I see, since cb_data is a structure, cb_data is not a structure. It is a pointer to a structure. Well, it should be if you malloc memory for it. You did forget the "*" in your example source code, though. >would it be safe to > change the members of that structure within the > /* Normal stuff */ segment (keeping `re-entry' in mind)? Yes, that is safe because those members have dynamic storage (malloc'ed) rather than automatic. setjmp() and longjmp() trouble only affects variables with automatic storage duration. static and dynamic variables are not affected. MSB ---- Vacuum cleaners suck! -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Sun Sep 16 17:20:13 2001 Received: from webshld.ccf.swri.edu (webshld.ccf.swri.edu [129.162.252.34]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id RAA29683 for ; Sun, 16 Sep 2001 17:20:08 -0500 (CDT) Received: by webshld.ccf.swri.edu; id RAA24285; Sun, 16 Sep 2001 17:17:46 -0500 (CDT) Received: from mailhub.ccf.swri.edu(129.162.1.33) by webshld.webshld.ccf.swri.edu via csmap (V4.1) id srcAAAJfaaBV; Sun, 16 Sep 01 17:17:46 -0500 Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8GMCO905700 for ; Sun, 16 Sep 2001 17:12:24 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8GMJt428251; Sun, 16 Sep 2001 17:19:55 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from localhost.localdomain (5993learfox.015.popsite.net [64.24.188.239]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8GMJr428247 for ; Sun, 16 Sep 2001 17:19:53 -0500 (CDT) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id PAA04554 for ; Sun, 16 Sep 2001 15:23:14 -0700 Message-Id: <200109162223.PAA04554@localhost.localdomain> Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit Mime-Version: 1.0 From: "Tara M" To: PNG Implementation List Subject: Re: When to call setjmp() X-Mailer: Pronto v2.2.5 On linux/mysql Date: 16 Sep 2001 15:23:00 PDT In-Reply-To: <3BA53776.19466.4F96D5@localhost> References: <3BA4A749.17421.19C097@localhost> <3BA53776.19466.4F96D5@localhost> Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List On Sun, 16 Sep 2001 23:36:22 +0200, Matthias Benkmann said: > > > > mystruct cb_data = (mystruct *)malloc(sizeof(mystruct)); > > cb_data is not a structure. It is a pointer to a structure. Well, it > should be if you malloc memory for it. You did forget the "*" in your > example source code, though. Oops, I'm sorry I ment to say it was a structure: mystruct *cb_data = (mystruct *)malloc(sizeof(mystruct)); > Yes, that is safe because those members have dynamic storage (malloc'ed) > rather than automatic. setjmp() and longjmp() trouble only affects > variables with automatic storage duration. static and dynamic variables > are not affected. I see now, thanks a bunch for your detailed explaination. I really appreciate that. :) -- -- Sincerely, ,"-_ \|/ -Capt. Taura M. , O=__ --X-- .__ ,_JNMNNEO=_ /|\ OMNOUMmnne. {OMMNNNEEEEOO=_ UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,.. UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._ OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'. EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " . NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ . http://furry.ao.net/~learfox/ -- Send the message body "help" to png-implement-request@ccrc.wustl.edu From owner-png-implement@ccrc.wustl.edu Wed Sep 26 22:05:43 2001 Received: from viruswall.ccf.swri.edu (viruswall252.ccf.swri.edu [129.162.252.36]) by swrinde.nde.swri.edu (8.9.3/8.9.3) with ESMTP id WAA24954 for ; Wed, 26 Sep 2001 22:05:13 -0500 (CDT) Received: from mailhub.ccf.swri.edu (localhost [127.0.0.1]) by viruswall.ccf.swri.edu (8.10.2+Sun/8.10.2) with ESMTP id f8R36Ii06016 for ; Wed, 26 Sep 2001 22:06:18 -0500 (CDT) Received: from ccrc.wustl.edu (dns.ccrc.wustl.edu [128.252.169.100]) by mailhub.ccf.swri.edu (8.11.2/8.11.2) with ESMTP id f8R2vE200686 for ; Wed, 26 Sep 2001 21:57:14 -0500 (CDT) Received: (from majordom@localhost) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) id f8QB7B419231; Wed, 26 Sep 2001 06:07:11 -0500 (CDT) X-Authentication-Warning: ccrc.wustl.edu: majordom set sender to owner-png-implement@ccrc.wustl.edu using -f Received: from morbus.picsel.com ([212.137.21.218]) by ccrc.wustl.edu (8.10.2+Sun/8.10.2) with ESMTP id f8QB79v19225 for ; Wed, 26 Sep 2001 06:07:09 -0500 (CDT) Received: by morbus.picsel.com (Postfix, from userid 1001) id 2D43585BD; Wed, 26 Sep 2001 12:07:11 +0100 (BST) Received: from angel.picsel.com (angel.picsel.com [195.171.216.1]) by morbus.picsel.com (Postfix) with ESMTP id 370EE37EEC for ; Wed, 26 Sep 2001 12:07:10 +0100 (BST) Received: from daffy.picsel.com.picsel.com (daffy.picsel.com [195.171.216.91]) by angel.picsel.com (Postfix) with ESMTP id C03F397B8C for ; Wed, 26 Sep 2001 12:07:04 +0100 (BST) To: png-implement@ccrc.wustl.edu Subject: A couple of questions From: Graham Borland Date: 26 Sep 2001 12:07:04 +0100 Message-ID: <86pu8egqhz.fsf@daffy.picsel.com> Lines: 40 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS snapshot-20010714 Sender: owner-png-implement@ccrc.wustl.edu Precedence: bulk Reply-To: PNG Implementation List This is a quiet list. :-) I have a couple of questions about using libpng-1.2.0 to progressively decode images. My first question is: the callback functions registered with png_set_progressive_read_fn() - how should I indicate failure in one of these? For example, in my info_callback function, I want to read image size. If png_get_IHDR() returns 0, something has gone wrong, and I need to trap this error. Should I just call longjmp() myself? Here's my second question. I want to set transformations so that I only ever have to deal with 8-bit triplets (RGB) or quads (RGBA) where appropriate. The documentation says I should use png_set_expand() for this. This seems to be a magical function which somehow knows exactly what I want, since it doesn't take any parameters. The example code given in the manual is: if (color_type == PNG_COLOR_TYPE_PALETTE && bit_depth <= 8) png_set_expand(png_ptr); if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) png_set_expand(png_ptr); if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) png_set_expand(png_ptr); Since I think I want all of these transformations, do I need to call png_set_expand() three times (does it do something different each successive time?) or just once? Thanks for any help... -- Graham Borland Picsel Technologies Ltd graham@picsel.com Glasgow, Scotland -- Send the message body "help" to png-implement-request@ccrc.wustl.edu