mem2agpcpy_pic()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4709 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2002-02-14 22:34:24 +00:00
parent 047a7a067f
commit 23d578910a
1 changed files with 20 additions and 0 deletions

View File

@ -19,4 +19,24 @@ extern void * mem2agpcpy(void * to, const void * from, size_t len);
#else /* USE_FASTMEMCPY */
#define mem2agpcpy(a,b,c) memcpy(a,b,c)
#endif
static inline void * mem2agpcpy_pic(void * dst, void * src, int bytesPerLine, int height, int dstStride, int srcStride)
{
int i;
void *retval=dst;
if(dstStride == srcStride) mem2agpcpy(dst, src, srcStride*height);
else
{
for(i=0; i<height; i++)
{
mem2agpcpy(dst, src, bytesPerLine);
src+= srcStride;
dst+= dstStride;
}
}
return retval;
}
#endif