[mythtv] Building 0.20svn on MacOS x86? Change reverted
Nigel Pearson
nigel at ind.tansu.com.au
Thu Aug 3 02:48:44 UTC 2006
> I do have some crash dump info, that might help
> a bit. It's crashing in the quicktime libraries.
...
> Thread 5 Crashed:
> 0 ...ickTimeComponents.component 0x98e0043d YUV420To2VUY_W1x +
> 671
Thanks for that. Sadly, it doesn't reveal much.
1) I have forgotten. What was the actual crash.
EXC_BAD_ACCESS?
2) I suspect that it is being passed a bitmap
which isn't a legal YUV420 structure, but I can't
work out how it is wrong, so you (or someone else)
may have to do some tedious patching and testing.
This patch:
% svn diff videoout_quartz.cpp
Index: videoout_quartz.cpp
===================================================================
--- videoout_quartz.cpp (revision 10654)
+++ videoout_quartz.cpp (working copy)
@@ -1509,6 +1509,16 @@
offset += (width * height) / 4;
data->pixmap->componentInfoCr.offset = offset;
data->pixmap->componentInfoCr.rowBytes = width / 2;
+
+cout << "YUV420 data:" << endl
+ << " width/height : " << width << "/" << height << endl
+ << " pixelSize : " << data->pixelSize << endl
+ << " pixmapSize : " << data->pixmapSize << endl
+ << " pixmap : " << data->pixmap << endl
+ << " pixelData : " << data->pixelData << endl
+ << " Y.offset : " << data->pixmap->componentInfoY.offset <<
endl
+ << " Cb.offset : " << data->pixmap->componentInfoCb.offset <<
endl
+ << " Cr.offset : " << data->pixmap->componentInfoCr.offset <<
endl;
}
data->pixelLock.unlock();
%
outputs this on a PPC machine:
YUV420 data:
width/height : 720/576
pixelSize : 622080
pixmapSize : 622104
pixmap : 0x18fc4000
pixelData : 0x18fc4018
Y.offset : 24
Cb.offset : 414744
Cr.offset : 518424
Could I trouble you to apply it and send me
your IntelMac output so that I can check the maths?
--
Nigel Pearson, nigel at ind.tansu.com.au|"I haven't tested it yet, but
Telstra Net. Eng., Sydney, Australia | it should be perfectly safe."
Office: 9202 3900 Fax: 9261 3912 |"Just a bit or harmless brain
Mobile: 0408 664435 Home: 9792 6998 | manipulation, that's all" -
Wallace
More information about the mythtv-dev
mailing list