mirror of https://github.com/mpv-player/mpv
mem2agpcpy_pic()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4709 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
047a7a067f
commit
23d578910a
|
@ -19,4 +19,24 @@ extern void * mem2agpcpy(void * to, const void * from, size_t len);
|
||||||
#else /* USE_FASTMEMCPY */
|
#else /* USE_FASTMEMCPY */
|
||||||
#define mem2agpcpy(a,b,c) memcpy(a,b,c)
|
#define mem2agpcpy(a,b,c) memcpy(a,b,c)
|
||||||
#endif
|
#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
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue