[MPlayer-dev-eng] DXR3 and aspect ratio

Marcel Hild hild at b4mad.net
Thu Mar 21 20:33:49 CET 2002


On Wed, Mar 20, 2002 at 08:58:43PM +0100, David Holm wrote:
> >hmm, though i dont understand the internals, i dont see where you set
> >the monitoraspect in your code (a grep shows only libvo/aspect.c sets
> >
> The aspect is set on lines 238 through 251. There is a -nozoom option 
> you might want to try.
> 

nope, i just show you what i mean (see attached patch). I dont know if
this makes sense, but it works for me. The jitter is gone (and as we
have the same card, that should improve picture quality for you too...)

marcel
-- 
Marcel Hild <hild at b4mad.net>
-------------- next part --------------
--- vo_dxr3.c	Thu Mar 21 20:29:28 2002
+++ vo_dxr3.c.patched	Thu Mar 21 20:29:02 2002
@@ -193,7 +193,8 @@
 {
 	int tmp1, tmp2, size;
 	em8300_register_t reg;
-    
+	extern float monitor_aspect;
+
 	/* Softzoom turned on, downscale */
 	/* This activates the subpicture processor, you can safely disable this and still send */
 	/* broken subpics to the em8300, if it's enabled and you send broken subpics you will end */
@@ -234,6 +235,9 @@
 	img_format = format;
 	v_width = width;
 	v_height = height;
+
+	/* Set monitor_aspect to avoid jitter */
+	monitor_aspect = (float) width / (float) height;
 
 	/* libavcodec requires a width and height that is x|16 */
 	aspect_save_orig(width, height);


More information about the MPlayer-dev-eng mailing list