Mercurial > mplayer.hg
comparison libmpcodecs/vd_mpng.c @ 23457:a124f3abc1ec
Replace implicit use of fast_memcpy via macro by explicit use to allow
for future optimization.
author | reimar |
---|---|
date | Tue, 05 Jun 2007 14:27:54 +0000 |
parents | fa99b3d31d13 |
children | 0f1b5b68af32 |
comparison
equal
deleted
inserted
replaced
23456:1582297cc3d2 | 23457:a124f3abc1ec |
---|---|
56 | 56 |
57 static void pngReadFN( png_structp pngstr,png_bytep buffer,png_size_t size ) | 57 static void pngReadFN( png_structp pngstr,png_bytep buffer,png_size_t size ) |
58 { | 58 { |
59 char * p = pngstr->io_ptr; | 59 char * p = pngstr->io_ptr; |
60 if(size>pngLength-pngPointer && pngLength>=pngPointer) size=pngLength-pngPointer; | 60 if(size>pngLength-pngPointer && pngLength>=pngPointer) size=pngLength-pngPointer; |
61 memcpy( buffer,(char *)&p[pngPointer],size ); | 61 fast_memcpy( buffer,(char *)&p[pngPointer],size ); |
62 pngPointer+=size; | 62 pngPointer+=size; |
63 } | 63 } |
64 | 64 |
65 // decode a frame | 65 // decode a frame |
66 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ | 66 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ |