[Mplayer-cvslog] CVS: main/libmpcodecs vf_tfields.c,1.5,1.6 vf.h,1.19,1.20 vf_vo.c,1.23,1.24
Richard Felker CVS
rfelker at mplayerhq.hu
Sat May 3 07:59:54 CEST 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv4730/libmpcodecs
Modified Files:
vf_tfields.c vf.h vf_vo.c
Log Message:
sort of a hack, but at least this lets the framerate-increasing
filters work in mplayer, albeit without proper timing...
Index: vf_tfields.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_tfields.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vf_tfields.c 2 May 2003 05:44:57 -0000 1.5
+++ vf_tfields.c 3 May 2003 05:59:29 -0000 1.6
@@ -345,6 +345,7 @@
dmpi->stride[2], mpi->stride[2]*2);
}
ret = vf_next_put_image(vf, dmpi);
+ vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
memcpy_pic(dmpi->planes[0], mpi->planes[0] + mpi->stride[0],
mpi->w, mpi->h/2, dmpi->stride[0], mpi->stride[0]*2);
@@ -377,6 +378,7 @@
mpi->chroma_width, mpi->chroma_height, 0);
}
ret = vf_next_put_image(vf, dmpi);
+ vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
my_memcpy_pic(dmpi->planes[0] + dmpi->stride[0], mpi->planes[0] + mpi->stride[0],
mpi->w, mpi->h/2, dmpi->stride[0]*2, mpi->stride[0]*2);
@@ -411,6 +413,7 @@
dmpi->stride[2], mpi->stride[2]*2, 0);
}
ret = vf_next_put_image(vf, dmpi);
+ vf_next_control(vf, VFCTRL_FLIP_PAGE, NULL);
qpel(dmpi->planes[0], mpi->planes[0] + mpi->stride[0],
mpi->w, mpi->h/2, dmpi->stride[0], mpi->stride[0]*2, 1);
Index: vf.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- vf.h 19 Apr 2003 02:48:53 -0000 1.19
+++ vf.h 3 May 2003 05:59:29 -0000 1.20
@@ -62,6 +62,7 @@
#define VFCTRL_GET_EQUALIZER 8 /* gset color options (brightness,contrast etc) */
#define VFCTRL_DRAW_OSD 7
#define VFCTRL_CHANGE_RECTANGLE 9 /* Change the rectangle boundaries */
+#define VFCTRL_FLIP_PAGE 10 /* Tell the vo to flip pages */
#include "vfcap.h"
Index: vf_vo.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_vo.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- vf_vo.c 15 Mar 2003 18:01:02 -0000 1.23
+++ vf_vo.c 3 May 2003 05:59:29 -0000 1.24
@@ -61,6 +61,12 @@
video_out->draw_osd();
return CONTROL_TRUE;
#endif
+ case VFCTRL_FLIP_PAGE:
+ {
+ if(!vo_config_count) return CONTROL_FALSE; // vo not configured?
+ video_out->flip_page();
+ return CONTROL_TRUE;
+ }
case VFCTRL_SET_EQUALIZER:
{
vf_equalizer_t *eq=data;
More information about the MPlayer-cvslog
mailing list