[MPlayer-dev-eng] PATCHes

陆 然 hephooey at hotmail.com
Wed May 15 06:42:02 CEST 2002


Hi,

>Did I understand you correct, that you always want to place it at the 
bottom
>of the screen? Then I don't like it because dvdsub/vobsub has placement 
info
>that should be used, eg. sometimes subs are shown at top of movie to not
>overlay something interesting at the bottom of the image.
i place it at the bottom cause when use vo sdl, the sub can be in the dark 
part of the screen just like text subs, is there any way to know if the vo 
is sdl, maybe i should add something to enable users swith between display 
in original place and bottom of the screen,
anyway if you don't like it you can remove the codes:
@@ -706,9 +735,11 @@
 	  spu->scaled_frame_height = dys;
 	}
       }
-      if (spu->scaled_image)
+      if (spu->scaled_image){
+	spu->scaled_start_row = dys - spu->scaled_height - 1;//set the sub to the 
bottom of the picture
 	draw_alpha(spu->scaled_start_col, spu->scaled_start_row, 
spu->scaled_width, spu->scaled_height,
 		   spu->scaled_image, spu->scaled_aimage, spu->scaled_stride);
+      }
     }
   }
   else
then the patch will only cut the sub and display it in original place.

>I only have tested one up to now, and note that it was only visible if the 
sub
>was scaled, not if it was original size...
ok, i'll check
>



---------------------------
Best Regards,
LR


_________________________________________________________________
享用世界上最大的 Web 电子邮件系统 ― MSN Hotmail:http://www.hotmail.com/cn




More information about the MPlayer-dev-eng mailing list