[MPlayer-dev-eng] [PATCH] vo_tdfxfb.c clear screen and tiny image bug
Burton Samograd
kruhft at kruhft.dyndns.org
Wed Aug 28 20:06:39 CEST 2002
Here's a quick little patch i did that *might* work. It moves the
buffer pointers from the beginning of screen memory (where the conole
lives) to right after it. This worked with the tdfxfb driver...of
course it could totally screw everything up since i don't have a card
to test it on :) I only changed a couple of lines and the old code is
just #if 0'd out so you can change it back really easily.
burton
On Wed, Aug 28, 2002 at 07:44:52PM +0200, Diego Biurrun wrote:
> Burton Samograd writes:
> > I already sent part of this patch earlier today, but this one also
> > fixes one of the comments on the wishlist that was just sent out
> > (clearing the screen).
>
> Now that you have done the clearing the screen thing for tdfxfb -
> might you have a look at mga? Don't know if you need a Matrox card
> for this, I'm willing to test anything that is sent my way ;)
> Thanks
>
> Diego
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-------------- next part --------------
? h
Index: mga_common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/mga_common.c,v
retrieving revision 1.39
diff -u -r1.39 mga_common.c
--- mga_common.c 25 Jul 2002 21:36:04 -0000 1.39
+++ mga_common.c 28 Aug 2002 18:26:04 -0000
@@ -341,10 +341,17 @@
printf("[mga] Using %d buffers.\n",mga_vid_config.num_frames);
+ frame_mem = (char*)mmap(0,mga_vid_config.frame_size*mga_vid_config.num_frames,PROT_WRITE,MAP_SHARED,f,0);
+ frames[0] = frames[0] + 1*mga_vid_config.frame_size;
+ frames[1] = frames[0] + 2*mga_vid_config.frame_size;
+ frames[2] = frames[0] + 3*mga_vid_config.frame_size;
+ frames[3] = frames[0] + 4*mga_vid_config.frame_size;
+#if 0
frames[0] = (char*)mmap(0,mga_vid_config.frame_size*mga_vid_config.num_frames,PROT_WRITE,MAP_SHARED,f,0);
frames[1] = frames[0] + 1*mga_vid_config.frame_size;
frames[2] = frames[0] + 2*mga_vid_config.frame_size;
frames[3] = frames[0] + 3*mga_vid_config.frame_size;
+#endif
mga_next_frame = 0;
vid_data = frames[mga_next_frame];
More information about the MPlayer-dev-eng
mailing list