[Ffmpeg-devel] [PATCH/RFC] 1-7 and 9-15 bits per pixel PGM files

Ivo ivop
Mon Apr 9 13:00:45 CEST 2007


On Monday 09 April 2007 12:19, Michael Niedermayer wrote:
> after closer inspection this performs a senseless 2nd pass over the data,
> this is completely unacceptable, doing convertion during an existing
> copy of the data is ok if convertion cannot be avoided without bloating
> the pix_fmts, adding an extra pass for convertion is NOT ok as this
> convertion can be done equally fast outside the codec

I don't see how because outside the codec maxval isn't known anymore. How 
can this be done without adding extra pix_fmt's?

The attached patch fixes loading of depth>8 pgm files. The image will be 
dark though if depth!=16.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: maxval.patch
Type: text/x-diff
Size: 515 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070409/df22643e/attachment.patch>

More information about the ffmpeg-devel mailing list