comparison libmpcodecs/vf_softpulldown.c @ 23666:5c3c7efd9b75

Get rid of my_memcpy_pic code duplication in many filters.
author reimar
date Thu, 28 Jun 2007 11:24:12 +0000
parents a124f3abc1ec
children 00fff9a3b735
comparison
equal deleted inserted replaced
23665:88b417d972ab 23666:5c3c7efd9b75
14 struct vf_priv_s { 14 struct vf_priv_s {
15 int state; 15 int state;
16 long long in; 16 long long in;
17 long long out; 17 long long out;
18 }; 18 };
19
20 static inline void *my_memcpy_pic(void * dst, void * src, int bytesPerLine, int height, int dstStride, int srcStride)
21 {
22 int i;
23 void *retval=dst;
24
25 for(i=0; i<height; i++)
26 {
27 fast_memcpy(dst, src, bytesPerLine);
28 src+= srcStride;
29 dst+= dstStride;
30 }
31
32 return retval;
33 }
34 19
35 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts) 20 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts)
36 { 21 {
37 mp_image_t *dmpi; 22 mp_image_t *dmpi;
38 int ret = 0; 23 int ret = 0;