[Mplayer-cvslog] CVS: main/libvo vo_xv.c,1.106,1.107
Arpi of Ize
arpi at mplayerhq.hu
Sat Jul 20 18:27:20 CEST 2002
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv22274
Modified Files:
vo_xv.c
Log Message:
DR1 with IPB fixed
Index: vo_xv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xv.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -r1.106 -r1.107
--- vo_xv.c 20 Jul 2002 15:49:38 -0000 1.106
+++ vo_xv.c 20 Jul 2002 16:27:17 -0000 1.107
@@ -747,6 +747,15 @@
return 0;
}
+static uint32_t draw_image(mp_image_t *mpi){
+ if(mpi->flags&MP_IMGFLAG_DIRECT){
+ // direct rendering:
+ current_buf=(int)(mpi->priv); // hack!
+ return VO_TRUE;
+ }
+ return VO_FALSE; // not (yet) supported
+}
+
static uint32_t get_image(mp_image_t *mpi){
int buf=current_buf; // we shouldn't change current_buf unless we do DR!
if(mpi->type==MP_IMGTYPE_STATIC && num_buffers>1) return VO_FALSE; // it is not static
@@ -786,6 +795,7 @@
}
}
mpi->flags|=MP_IMGFLAG_DIRECT;
+ mpi->priv=(void*)current_buf;
// printf("mga: get_image() SUCCESS -> Direct Rendering ENABLED\n");
return VO_TRUE;
}
@@ -888,6 +898,8 @@
return query_format(*((uint32_t*)data));
case VOCTRL_GET_IMAGE:
return get_image(data);
+ case VOCTRL_DRAW_IMAGE:
+ return draw_image(data);
case VOCTRL_GUISUPPORT:
return VO_TRUE;
case VOCTRL_GET_PANSCAN:
More information about the MPlayer-cvslog
mailing list