MESSAGE
DATE | 2016-11-17 |
FROM | Ruben Safir
|
SUBJECT | Subject: [Learn] Fwd: [Hangout-NYLXS] Fwd: PNG Coding
|
From learn-bounces-at-nylxs.com Thu Nov 17 08:06:26 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 866F9161313; Thu, 17 Nov 2016 08:06:26 -0500 (EST) X-Original-To: learn-at-nylxs.com Delivered-To: learn-at-nylxs.com Received: from [10.0.0.62] (flatbush.mrbrklyn.com [10.0.0.62]) by mrbrklyn.com (Postfix) with ESMTP id 8FD25160020 for ; Thu, 17 Nov 2016 08:06:23 -0500 (EST) References: <10110183-970d-a938-0320-bd27965f4969-at-mrbrklyn.com> To: learn-at-nylxs.com From: Ruben Safir X-Forwarded-Message-Id: <10110183-970d-a938-0320-bd27965f4969-at-mrbrklyn.com> Message-ID: <294751e8-b658-f99b-2faf-a007e98a345e-at-mrbrklyn.com> Date: Thu, 17 Nov 2016 08:06:23 -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: <10110183-970d-a938-0320-bd27965f4969-at-mrbrklyn.com> Content-Type: multipart/mixed; boundary="------------7105E2F4C5CB55D7A02E13B8" Subject: [Learn] Fwd: [Hangout-NYLXS] 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. --------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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.
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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.
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 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.
--------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8 Content-Type: text/plain; charset=UTF-8; name="Attached Message Part" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Attached Message Part"
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaGFuZ291 dCBtYWlsaW5nIGxpc3QKaGFuZ291dEBueWx4cy5jb20KaHR0cDovL3d3dy5ueWx4cy5jb20v Cg== --------------7105E2F4C5CB55D7A02E13B8 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
--------------7105E2F4C5CB55D7A02E13B8--
|
|