[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.24,1.25
David Holm
mswitch at mplayer.dev.hu
Fri Dec 28 23:33:38 CET 2001
Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv3233/libvo
Modified Files:
vo_dxr3.c
Log Message:
Some last minute changes to accomodate for anamorphic 1.85:1 and 2.35:1 movies... Needs more work, but this is good enough for now.
Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- vo_dxr3.c 28 Dec 2001 10:21:05 -0000 1.24
+++ vo_dxr3.c 28 Dec 2001 22:33:06 -0000 1.25
@@ -110,20 +110,21 @@
printf( "VO: [dxr3] Unable to set playmode!\n" );
img_format = format;
- v_width = width;
- v_height = height;
+ v_width = scr_width;
+ v_height = scr_height;
/* Calculate screen res */
- aspect_save_orig(v_width,v_height);
- aspect_save_prescale(scr_width,scr_height);
- aspect_save_screenres(702,575); /* Reference values from DVD spec (711,483) (702,575) */
- aspect(&s_width,&s_height,A_NOZOOM);
- s_width = (scr_width+15)/16; s_width*=16;
- s_height = (scr_height+15)/16; s_height*=16;
+ /*aspect_save_orig(v_width,v_height);
+ aspect_save_prescale(width,height);
+ aspect_save_screenres(702,575);*/ /* Reference values from DVD spec (711,483) (702,575) */
+ /*aspect(&s_width,&s_height,A_ZOOM);*/
+ s_width = (v_width+15)/16; s_width*=16;
+ s_height = (v_height+15)/16; s_height*=16;
/* Try to figure out whether to use ws output or not */
- tmp1 = abs(height - ((s_width/4)*3));
- tmp2 = abs(height - ((s_width/16)*9));
+ tmp1 = abs(height - ((width/4)*3));
+ tmp2 = abs(height - (int)(width/2.35));
+ printf( "%d:%d\n",s_width,s_height);
if(tmp1 < tmp2)
{
tmp1 = EM8300_ASPECTRATIO_4_3;
More information about the MPlayer-cvslog
mailing list