[mythtv] MacOS X MMX yuv420_2vuy Patch

Nigel Pearson nigel at ind.tansu.com.au
Fri Sep 8 08:04:05 UTC 2006


	Debug builds revealed nothing much
(unless I want to set breakpoints,
  memory monitors in the video buffers, et c).


> I don't think it is the MMX code.

	It is looking more and more like it is, to me.
Not _your_ MMX code, but _any_ MMX code in the vid
output thread.


	Try this. Comment out all the MMX stuff in
yuv2rgb.cpp and verify it all works correctly.
Then add this:

Index: videoout_quartz.cpp
===================================================================
--- videoout_quartz.cpp (revision 11073)
+++ videoout_quartz.cpp (working copy)
@@ -1687,6 +1687,8 @@
          memcpy(pauseFrame.buf, pauseb->buf, pauseb->size);
  }

+#include <libavcodec/i386/mmx.h>
+
  void VideoOutputQuartz::ProcessFrame(VideoFrame *frame, OSD *osd,
                                       FilterChain *filterList,
                                       NuppelVideoPlayer *pipPlayer)
@@ -1742,6 +1744,7 @@
      data->pixelLock.lock();
      if (data->pixelData)
      {
+movq_r2r (mm2, mm4);
          if (data->yuvConverter)
          {
              data->yuvConverter((uint8_t *)(data->pixelData),





and verify that it has the pausing problem?

--
Nigel Pearson, nigel at ind.tansu.com.au|"Beware - I am a carrier
Telstra Net. Eng., Sydney, Australia |          of surrealism"
Office: 9202 3900    Fax:  9261 3912 |       D  A
Mobile: 0408 664435  Home: 9792 6998 |       L  I


More information about the mythtv-dev mailing list