[FFmpeg-devel] [PATCH 01/10] zlib decoder
Michael Niedermayer
michaelni
Mon Jul 16 12:00:24 CEST 2007
Hi
On Mon, Jul 16, 2007 at 08:44:57AM +0200, Reimar D?ffinger wrote:
> Hello,
> On Mon, Jul 16, 2007 at 12:25:14AM +0100, M?ns Rullg?rd wrote:
> > Michael Niedermayer <michaelni at gmx.at> writes:
> [...]
> > >> +static void
> > >> +copy_bytes(uint8_t *dst, uint8_t *src, unsigned int len)
> > >> +{
> > >> + while (len--)
> > >> + *dst++ = *src++;
> > >> +}
> > >
> > > i think we have such a copy routine somewhere already, but i dont remember
> > > where
> >
> > Reimar said it looked familiar too. Wherever it is, it's not in a
> > central location. Where would be the appropriate place for a function
> > like this?
>
> It is in libavutil/lzo.c, but it is quite lzo specific since the
> boundary checks are currently in the function, it assumes src and dst
> are in the same memory area and for LZO a output buffer that is padded
> by IIRC 12 additional bytes is necessary to get up to speed.
> And the function is called copy_backptr.
theres also xan.c bytecopy()
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- 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/20070716/30aa59ee/attachment.pgp>
More information about the ffmpeg-devel
mailing list