[Mplayer-cvslog] CVS: main/linux vbelib.c,1.20,1.21 vbelib.h,1.10,1.11
Arpi of Ize
arpi at mplayerhq.hu
Fri Aug 23 01:03:54 CEST 2002
- Previous message: [Mplayer-cvslog] CVS: main/libvo gtf.c,NONE,1.1 gtf.h,NONE,1.1 Makefile,1.35,1.36 video_out.c,1.54,1.55 video_out.h,1.39,1.40 vo_fbdev.c,1.66,1.67 vo_vesa.c,1.75,1.76
- Next message: [Mplayer-cvslog] CVS: main/DOCS mplayer.1,1.211,1.212
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/mplayer/main/linux
In directory mail:/var/tmp.root/cvs-serv7643/linux
Modified Files:
vbelib.c vbelib.h
Log Message:
General Timing Formula algorithm from a scratch.
vo_vesa.c so now adjust the timing to highest possible refresh rate using
the monitor capabilities from a config file.
patch by Rudolf Marek <MAREKR2 at cs.felk.cvut.cz>
Index: vbelib.c
===================================================================
RCS file: /cvsroot/mplayer/main/linux/vbelib.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- vbelib.c 21 Jun 2002 02:20:30 -0000 1.20
+++ vbelib.c 22 Aug 2002 23:03:51 -0000 1.21
@@ -376,6 +376,26 @@
return retval;
}
+int vbeGetPixelClock(unsigned *mode,unsigned *pixel_clock) // in Hz
+{
+ struct LRMI_regs r;
+ int retval;
+ memset(&r,0,sizeof(struct LRMI_regs));
+ r.eax = 0x4f0b;
+ r.ebx = 0;
+ r.edx = *mode;
+ r.ecx = *pixel_clock;
+ if(!VBE_LRMI_int(0x10,&r)) return VBE_VM86_FAIL;
+ retval = r.eax & 0xffff;
+ if(retval == 0x4f)
+ {
+ *pixel_clock = r.ecx;
+ retval = VBE_OK;
+ }
+ return retval;
+}
+
+
int vbeSaveState(void **data)
{
struct LRMI_regs r;
Index: vbelib.h
===================================================================
RCS file: /cvsroot/mplayer/main/linux/vbelib.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- vbelib.h 4 Nov 2001 18:06:31 -0000 1.10
+++ vbelib.h 22 Aug 2002 23:03:51 -0000 1.11
@@ -199,6 +199,7 @@
extern int vbeGetModeInfo(unsigned mode,struct VesaModeInfoBlock *);
extern int vbeSetMode(unsigned mode,struct VesaCRTCInfoBlock *);
extern int vbeGetMode(unsigned *mode);
+extern int vbeGetPixelClock(unsigned *mode,unsigned *pixel_clock);
extern int vbeSaveState(void **data); /* note never copy this data */
extern int vbeRestoreState(void *data);
extern int vbeGetWindow(unsigned *win_num); /* win_A=0 or win_B=1 */
- Previous message: [Mplayer-cvslog] CVS: main/libvo gtf.c,NONE,1.1 gtf.h,NONE,1.1 Makefile,1.35,1.36 video_out.c,1.54,1.55 video_out.h,1.39,1.40 vo_fbdev.c,1.66,1.67 vo_vesa.c,1.75,1.76
- Next message: [Mplayer-cvslog] CVS: main/DOCS mplayer.1,1.211,1.212
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list