]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commit
Add support for grayscale images with arbitrary maxvals.
authorivo <ivo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 10 Apr 2007 09:15:54 +0000 (09:15 +0000)
committerivo <ivo@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 10 Apr 2007 09:15:54 +0000 (09:15 +0000)
commit3a35a2b257a34d7424b274e50b9166b8f3bf1579
tree1efb06df96a8df6a8b3c33252f37753eff3a4cbb
parent4dfb7dbe5323b191dcae0892a4bfd89ce0625b17
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.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8704 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavcodec/pnm.c