0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

sort of a hack, but at least this lets the framerate-increasing

filters work in mplayer, albeit without proper timing...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10053 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rfelker 2003-05-03 05:59:29 +00:00
parent 41d608198f
commit 63df4eb781
3 changed files with 10 additions and 0 deletions

View File

@ -62,6 +62,7 @@ typedef struct vf_seteq_s
#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"

View File

@ -345,6 +345,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi)
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 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi)
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 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi)
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);

View File

@ -61,6 +61,12 @@ static int control(struct vf_instance_s* vf, int request, void* data)
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;