[MPlayer-dev-eng] [RFC] emms/sfence in fast memcpy()

Ivan Kalvachev ikalvachev at gmail.com
Tue May 29 00:05:54 CEST 2007


2007/5/28, Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
[...]
> And could someone please explain what the point of that my_memcpy_pic is
> that is (and worse duplicated) in so many filters??

Look at the mem2agpcpy_pic() and memcpy_pic() in fastmemcpy.h.
If both source and destination strides are the same, the functions
attempt to make the copy in one big move, instead of per-line coping.
Apparently some filters do not want the extra bytes copied, so they
implement version that does it correctly.



More information about the MPlayer-dev-eng mailing list