[mythtv] Re: [mythtv-commits] Bob and XVMC

Daniel Thor Kristjansson danielk at mrl.nyu.edu
Fri Feb 4 00:07:25 UTC 2005


On Thu, 3 Feb 2005, Ivor Hewitt wrote:
]On Thursday 03 Feb 2005 20:02, Steven wrote:
]> With HW accell. turnend  (using xv) off bob doesn't work either and
]> gives me green frames flashing trough the image.
]> Om my pundit-r frontend using xv all seems ok.
]In VideoOutputXvMC::Show  in videoout_xvmc.cpp the change:-
<snip>
]Appears to be causing the unichrome XvMC grief. If you remove the "+- 
]halfLineSrc" the playback will be smooth again for now.

Does this patch fix your problem?

It leaves halfLineSrc at zero if VLD acceleration is present.

-- Daniel
-------------- next part --------------
Index: libs/libmythtv/videoout_xvmc.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/videoout_xvmc.cpp,v
retrieving revision 1.40
diff -u -r1.40 videoout_xvmc.cpp
--- libs/libmythtv/videoout_xvmc.cpp	3 Feb 2005 06:15:13 -0000	1.40
+++ libs/libmythtv/videoout_xvmc.cpp	4 Feb 2005 00:04:14 -0000
@@ -938,7 +938,8 @@
                  (scan == kScan_Intr2ndField && buffer->top_field_first == 1))
         {
             field = 2;
-            halfLineSrc = (int) round(((float)disphoff)/imgh - 0.001f);
+            if (!hasVLDAcceleration())
+                halfLineSrc = (int) round(((float)disphoff)/imgh - 0.001f);
             //src_h -= (halfLineSrc) ? 2 : 0;
         }
     }


More information about the mythtv-dev mailing list