changeset 4759:d681c1b1c193

fixing yv12
author michael
date Tue, 19 Feb 2002 18:04:06 +0000
parents 1d41ac612fb7
children 34573271ffb2
files vidix/drivers/mach64_vid.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/drivers/mach64_vid.c	Tue Feb 19 16:23:02 2002 +0000
+++ b/vidix/drivers/mach64_vid.c	Tue Feb 19 18:04:06 2002 +0000
@@ -588,7 +588,7 @@
     v_inc = (src_h << (12
 		+(mach64_is_interlace()?1:0)
 		-(mach64_is_dbl_scan()?1:0)
-		+(is_420?1:0)
+//		+(is_420?1:0)
 		)) / dest_h;
     h_inc = (src_w << (12+ecp)) / dest_w;
     /* keep everything in 16.16 */
@@ -649,7 +649,7 @@
     if(mach64_is_interlace()) y_pos/=2;
     besr.y_x_end = y_pos | ((config->dest.x + dest_w) << 16);
     besr.height_width = ((src_w - left)<<16) | (src_h - top);
-    besr.vid_buf_pitch = pitch/2;
+    besr.vid_buf_pitch = is_420 ? pitch : pitch/2;
     return 0;
 }