MESSAGE
DATE | 2016-11-15 |
FROM | ruben safir
|
SUBJECT | Subject: [Learn] Fwd: PNG Coding
|
From learn-bounces-at-nylxs.com Wed Nov 16 02:11:32 2016 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: from www.mrbrklyn.com (www.mrbrklyn.com [96.57.23.82]) by mrbrklyn.com (Postfix) with ESMTP id E445C161314; Wed, 16 Nov 2016 02:11:31 -0500 (EST) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from mail-qt0-f177.google.com (mail-qt0-f177.google.com [209.85.216.177]) by mrbrklyn.com (Postfix) with ESMTP id 05EF1160E77 for ; Wed, 16 Nov 2016 02:11:28 -0500 (EST) Received: by mail-qt0-f177.google.com with SMTP id p16so90997113qta.0 for ; Tue, 15 Nov 2016 23:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=my.liu.edu; s=google; h=from:references:subject:to:message-id:date:user-agent:mime-version :in-reply-to; bh=Hv7oxTv82/KCcJ8uHi7g/ppAzEbZWjvXW94gdrNK/Oc=; b=alkDUdAhPa/LBx4+JK5CPczqC+VeKcwEHpo6YnqfQXgyBiY+15RDYIOhipuIXLzrJ4 qEyCiP1ua/oSAwQ+5QW/iqtMGaDfW96qw7behb0nwuSnrWaJHEhGrUOi3FulDVwTYi7C i6gZLCQyZefAiknVs15iGV8TNJ7T1maNmKjbU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:subject:to:message-id:date :user-agent:mime-version:in-reply-to; bh=Hv7oxTv82/KCcJ8uHi7g/ppAzEbZWjvXW94gdrNK/Oc=; b=NNY5IKI4Kq0IKRWVx+nhFiQkHXa9ZuB9chsobQKCuGtnlaFwc3n+YBZoNkPEglJDna aHZ6K6NRtPpXLqiRiPcAzxaQxqOQlYIEBMZzHi1MO8LgasbkjaQ92hUutdV5R4hLBRcq Fm84Y2Ko/mWHIGCOD/bEv+nQpXDadaFw/8yTXPG6rY3IP7TT1D8PZVN37v2T+qgJPuuu NEWiicJqaQxJIedYzW1tEqi5A84AYu2J5HBEVBzOyYRjKeb/K0OqukGk77NbHo05HOdB KPO+JTPycq7MyV753XPd+7S91fkFYrzePJ5xk6sbojw9ZkZpBkgWBpODHH7nUEt5KNce tHUw== X-Gm-Message-State: AKaTC034wLSNWkAe6JzGzGTEhcp2oG692WjV/aUV3sEO/ushSp++f87HRtj3Caz/thyelqrR X-Received: by 10.237.33.69 with SMTP id 63mr480089qtc.182.1479267291828; Tue, 15 Nov 2016 19:34:51 -0800 (PST) Received: from [10.0.0.62] (www.mrbrklyn.com. [96.57.23.82]) by smtp.googlemail.com with ESMTPSA id i19sm16736174qte.8.2016.11.15.19.34.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 19:34:51 -0800 (PST) From: ruben safir X-Google-Original-From: ruben safir References: To: Hangout , learn-at-nylxs.com X-Forwarded-Message-Id: Message-ID: <10110183-970d-a938-0320-bd27965f4969-at-mrbrklyn.com> Date: Tue, 15 Nov 2016 22:34:50 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------5C50B9097BCAE3BB4D6766C3" Subject: [Learn] Fwd: PNG Coding X-BeenThere: learn-at-nylxs.com X-Mailman-Version: 2.1.17 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: learn-bounces-at-nylxs.com Sender: "Learn"
This is a multi-part message in MIME format. --------------5C50B9097BCAE3BB4D6766C3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit
I found a nice small implementation to try to understand for PNG coding that is not reliant on libpng
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="PNG Coding.eml"
Path: reader2.panix.com!panix!not-for-mail From: ruben safir Newsgroups: comp.lang.c++ Subject: PNG Coding Date: Tue, 15 Nov 2016 14:46:12 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: reader2.panix.com 1479239173 799 96.57.23.82 (15 Nov 2016 19:46:13 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Tue, 15 Nov 2016 19:46:13 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 Xref: panix comp.lang.c++:1125211
Does anyone know of any sample code for reading PNG files that doesn't include using libpng.... just straight direct access.
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Alf P. Steinbach" Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Tue, 15 Nov 2016 20:46:31 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Nov 2016 19:48:30 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66a35d8944b940887cb01d644785e9a7"; logging-data="15967"; mail-complaints-to="abuse-at-eternal-september.org"; posting-account="U2FsdGVkX19wehQUHRFPxeuJKJZfd7C6" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:BsuUVgFlpuGLRNLG/iPK9ZrLKEM= Xref: panix comp.lang.c++:1125213
On 15.11.2016 20:46, ruben safir wrote: > Does anyone know of any sample code for reading PNG files that doesn't > include using libpng.... just straight direct access. >
Find the specification, code it up?
Cheers!,
- Alf
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
X-Received: by 10.237.56.100 with SMTP id j91mr3912091qte.85.1479239914139; Tue, 15 Nov 2016 11:58:34 -0800 (PST) MIME-Version: 1.0 Path: reader2.panix.com!panix!bloom-beacon.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!ottix-news.ottix.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!n6no1520534qtd.0!news-out.google.com!j8ni170qtc.0!nntp.google.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post02.iad.highwinds-media.com!fx43.iad.POSTED!not-for-mail X-Newsreader: xrn 9.03-beta-14-64bit Sender: scott-at-dragon.sl.home (Scott Lurndal) From: scott-at-slp53.sl.home (Scott Lurndal) Reply-To: slp53-at-pacbell.net Subject: Re: PNG Coding Newsgroups: comp.lang.c++ References: Message-ID: X-Complaints-To: abuse-at-usenetserver.com NNTP-Posting-Date: Tue, 15 Nov 2016 19:58:33 UTC Organization: UsenetServer - www.usenetserver.com Date: Tue, 15 Nov 2016 19:58:33 GMT X-Received-Bytes: 870 X-Received-Body-CRC: 1350053030 X-Original-Bytes: 888 Xref: panix comp.lang.c++:1125214
ruben safir writes: >Does anyone know of any sample code for reading PNG files that doesn't >include using libpng.... just straight direct access.
libpng, being open source, would seem to be the best starting point for someone who wishes to code the same functionality.
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!not-for-mail From: Popping mad Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Tue, 15 Nov 2016 20:53:48 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader2.panix.com 1479243228 20608 96.57.23.82 (15 Nov 2016 20:53:48 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Tue, 15 Nov 2016 20:53:48 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) Xref: panix comp.lang.c++:1125221
On Tue, 15 Nov 2016 19:58:33 +0000, Scott Lurndal wrote:
> libpng, being open source, would seem to be the best starting point for > someone who wishes to code the same functionality.
maybe, but its complex and I think it is broken. At some point they decided to fix a long standing bug that has rended most of my early png files useless. And the programs design to fix them don't work, so I want to excavate the problem myself. I'm not looking to create a huge library, just to look at the files at this point under the hood, perferably in a single file program
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!bloom-beacon.mit.edu!bloom-beacon.mit.edu!168.235.88.217.MISMATCH!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!news.unit0.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Christian Gollwitzer Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Tue, 15 Nov 2016 21:31:16 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Nov 2016 20:30:44 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="51d7aeec13b882737f14464947424b36"; logging-data="26890"; mail-complaints-to="abuse-at-eternal-september.org"; posting-account="U2FsdGVkX19QrSnabeBoVUbPFv6L9P2Y7e0ZAhbFlGU=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:wGihzW7HmC6DHA3kNRv6xqfpizA= Xref: panix comp.lang.c++:1125218
Am 15.11.16 um 20:46 schrieb ruben safir: > Does anyone know of any sample code for reading PNG files that doesn't > include using libpng.... just straight direct access. >
Sean Barret has very impressive (compact) C code to write PNG files in stb_image_write.h:
https://github.com/nothings/stb
I have not checked if this does reading of PNGs, too; however he has a ite here on github which lists similar libraries, and this refers to
http://lodev.org/lodepng/
Christian
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!not-for-mail From: Popping mad Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Tue, 15 Nov 2016 20:50:01 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader2.panix.com 1479243001 20608 96.57.23.82 (15 Nov 2016 20:50:01 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Tue, 15 Nov 2016 20:50:01 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) Xref: panix comp.lang.c++:1125219
On Tue, 15 Nov 2016 21:31:16 +0100, Christian Gollwitzer wrote:
> https://github.com/nothings/stb
too complex. I'm just looking for PNG access
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Christian Gollwitzer Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Wed, 16 Nov 2016 00:15:06 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 15 Nov 2016 23:14:35 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="7782ea6a012648151f9f6bbf0fa69cf9"; logging-data="3661"; mail-complaints-to="abuse-at-eternal-september.org"; posting-account="U2FsdGVkX1//qJ1lmrXdP8aMKCeFaf3eIBTC9RSqRg0=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:Xknpt0m4D7i0PHjt+NfhxBT/Y1c= Xref: panix comp.lang.c++:1125227
Am 15.11.16 um 21:50 schrieb Popping mad: > On Tue, 15 Nov 2016 21:31:16 +0100, Christian Gollwitzer wrote: > >> https://github.com/nothings/stb > > too complex. I'm just looking for PNG access > Are you sure you read my reply?
https://github.com/lvandeve/lodepng
this is a 2-file solution to read/write PNG. There is an even smaller version for reading only: http://lodev.org/lodepng/picopng.cpp
Considering the complexity of the task (decoding PNG), it is extremely impressive to stuff that into these small files.
Christian
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!not-for-mail From: Popping mad Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Wed, 16 Nov 2016 03:32:01 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader2.panix.com 1479267121 20608 96.57.23.82 (16 Nov 2016 03:32:01 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Wed, 16 Nov 2016 03:32:01 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) Xref: panix comp.lang.c++:1125240
On Wed, 16 Nov 2016 00:15:06 +0100, Christian Gollwitzer wrote:
> https://github.com/lvandeve/lodepng
ah, that is good. Thank you.
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: message/rfc822; name="Re: PNG Coding.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Re: PNG Coding.eml"
Path: reader2.panix.com!panix!not-for-mail From: Popping mad Newsgroups: comp.lang.c++ Subject: Re: PNG Coding Date: Tue, 15 Nov 2016 20:50:23 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: <282a6737-54b1-4f7e-b932-d07b4ff9fd0b-at-googlegroups.com> NNTP-Posting-Host: www.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader2.panix.com 1479243023 20608 96.57.23.82 (15 Nov 2016 20:50:23 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Tue, 15 Nov 2016 20:50:23 +0000 (UTC) User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT b8fc14e git.gnome.org/git/pan2) Xref: panix comp.lang.c++:1125220
On Tue, 15 Nov 2016 12:06:12 -0800, Rick C. Hodgin wrote:
> On Windows
/dev/null
--------------5C50B9097BCAE3BB4D6766C3 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Learn mailing list Learn-at-nylxs.com http://lists.mrbrklyn.com/mailman/listinfo/learn
--------------5C50B9097BCAE3BB4D6766C3--
|
|