summaryrefslogtreecommitdiffstats
path: root/libvo/vo_dxr3.c
diff options
context:
space:
mode:
authormswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-28 22:33:06 +0000
committermswitch <mswitch@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-28 22:33:06 +0000
commit3edb7775ee9eafb0aef638665f3609baf4925496 (patch)
treed76a9db3d71dceaaba3e1fe5b477652d443a5c6b /libvo/vo_dxr3.c
parent1380ac821bb23336ab6e1373a68fc80f74fcc686 (diff)
downloadmpv-3edb7775ee9eafb0aef638665f3609baf4925496.tar.bz2
mpv-3edb7775ee9eafb0aef638665f3609baf4925496.tar.xz
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3862 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_dxr3.c')
-rw-r--r--libvo/vo_dxr3.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libvo/vo_dxr3.c b/libvo/vo_dxr3.c
index 699620625d..dcaa17e9dc 100644
--- a/libvo/vo_dxr3.c
+++ b/libvo/vo_dxr3.c
@@ -110,20 +110,21 @@ static uint32_t init(uint32_t scr_width, uint32_t scr_height, uint32_t width, ui
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;