🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.api.opengl
Article #111

Re: OT: Looking for image file format that can handle 16b its per channel

#111
From: Oliver Kreylos
Date: Thu, 30 Dec 1999 00:00
31 lines
2064 bytes
Paul Richards wrote:
> 
> Victor Wagner wrote:
> >
> > Paul Richards <pauldoo@dunvegan1.demon.co.uk> wrote:
> > : Hi,
> > : Does anyone know of a simple image file format that I can use that can
> > : handle 16bits per channel?  In effect producing 48bit colour images?  I
> > : mean simple in that it'll be easy for me to write the input/output
> > : routines for in C++.
> >
> > ppm
> 
> PPM can't do 16bits per channel or 16bit greyscale which is what I'm
> looking for.

I think it can. The ASCII ppm format is rather flexible. AFAIK, you can
have arbitrarily large values per channel per pixel, you just should
give the maximal used value in the "maxValue" field.

The binary ppm format, on the other hand, supports only 8 bit values per
channel per pixel.

But since ASCII ppm is a horribly bloated format, I still suggest using
PNG. (ppm is *much* easier to read or write, though...)

  Oliver

-- 
Email: kreylos@cs.ucdavis.edu
WWW:   http://graphics.cs.ucdavis.edu/~okreylos
Technical Details
Message-ID: <386BA020.705BACC8@cs.ucdavis.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38693B3A.758C6CD5@dunvegan1.demon.co.uk> <84cb24$f2f$1@wagner.wagner.home> <386B576B.6C41C3D6@dunvegan1.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1036bc,ebc9e295d1a238b
X-Google-Attributes: gid1036bc,public
X-Google-Thread: 10c696,ebc9e295d1a238b
X-Google-Attributes: gid10c696,public
X-Google-Thread: 109fba,ebc9e295d1a238b
X-Google-Attributes: gid109fba,public
X-Google-Thread: f65bb,ebc9e295d1a238b
X-Google-Attributes: gidf65bb,public
X-Google-Thread: 10d8ad,ebc9e295d1a238b
X-Google-Attributes: gid10d8ad,public
From: Oliver Kreylos <kreylos@cs.ucdavis.edu>
Subject: Re: OT:  Looking for image file format that can handle 16b its per  channel
Date: 1999/12/30
Message-ID: <386BA020.705BACC8@cs.ucdavis.edu>
X-Deja-AN: 566576962
Content-Transfer-Encoding: 7bit
References: <38693B3A.758C6CD5@dunvegan1.demon.co.uk> <84cb24$f2f$1@wagner.wagner.home> <386B576B.6C41C3D6@dunvegan1.demon.co.uk>
Organization: University of California, Davis
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: comp.graphics.api.opengl,comp.lang.c++,comp.os.linux.development.apps,demon.tech.pc,uk.comp.os.linux