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

Michael Niedermayer michaelni
Mon Apr 9 13:17:33 CEST 2007


On Mon, Apr 09, 2007 at 01:00:45PM +0200, Ivo wrote:
> Hi,
> 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?

its not hard to export a single integer but this was not what i suggested

what i suggested was to do the convertion instead of the memcpy()
not after the memcpy()!

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070409/9fa7b52a/attachment.pgp>

More information about the ffmpeg-devel mailing list