[mythtv] bob deint issue with latest cvs
Bruce Markey
bjm at lvcm.com
Fri Feb 4 22:19:35 UTC 2005
Bruce Markey wrote:
...
> XvShmPutImage for the bob fields. However, attached is a quick
> patch for testing.
I hate it when I forget the attachment...
-- bjm
-------------- next part --------------
Index: libs/libmythtv/videoout_xv.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videoout_xv.cpp,v
retrieving revision 1.117
diff -u -r1.117 videoout_xv.cpp
--- libs/libmythtv/videoout_xv.cpp 4 Feb 2005 17:30:24 -0000 1.117
+++ libs/libmythtv/videoout_xv.cpp 4 Feb 2005 21:11:18 -0000
@@ -918,19 +918,12 @@
// Show bottom field
src_y = (buffer->height + imgy) / 2;
src_h = imgh / 2;
- int halfLineSrc = (int)round(((float)disphoff) / imgh - 0.001f);
- src_h -= (halfLineSrc) ? 1 : 0;
-
-// VERBOSE(VB_PLAYBACK,
-// QString("XvPut img_h(%1-%6) dest y(%2+%4) h(%3-%5)")
-// .arg(imgh).arg(dest_y).arg(disphoff)
-// .arg(halfLineSrc).arg(2 * halfLineSrc)
-// .arg(2*(halfLineSrc ? 1 : 0))); // 2* for imgh coords
+ int vline = (int) (disph / (float) imgh + 0.5);
XvShmPutImage(data->XJ_disp, xv_port, data->XJ_curwin,
data->XJ_gc, image, src_x, src_y, src_w, src_h,
- dispxoff, dest_y + halfLineSrc,
- dispwoff, disphoff - 2 * halfLineSrc, False);
+ dispxoff, dest_y + vline,
+ dispwoff, disphoff, False);
drawn = true;
}
}
More information about the mythtv-dev
mailing list