Add support for grayscale images with arbitrary maxvals.
authorIvo van Poorten <ivop@euronet.nl>
Tue, 10 Apr 2007 09:15:54 +0000 (09:15 +0000)
committerIvo van Poorten <ivop@euronet.nl>
Tue, 10 Apr 2007 09:15:54 +0000 (09:15 +0000)
commit201df5a19f3c8773b0da06627dfc51c46a5d40cb
treed43df23955541459cd4577f3bffb0980950ed4ad
parente457023a95e449ac2c80a49256f0611d5a8fffff
Add support for grayscale images with arbitrary maxvals.

The image data is rescaled to the nearest pix_fmt it will fit in (gray8 or
gray16). Conversion is done inside the codec in order to avoid the need
for 14 (or 65534) new pix_fmt's.

Originally committed as revision 8704 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/pnm.c