[mythtv] Building 0.20svn on MacOS x86? Change reverted

Todd Ignasiak ignasiak at gmail.com
Thu Aug 24 22:54:08 UTC 2006


> 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?


Sorry for the delay in responding on this..   My system developed a
linker problem somehow, which was finally solved by disabling
mythplugins.

Anyway, here is the output from 0.20 without the colorspace conversion patch:

YUV420 data:
  width/height : 1920/1088
  pixelSize    : 3133442
  pixmapSize   : 3133466
  pixmap       : 0x27ec3000
  pixelData    : 0x27ec3018
  Y.offset     : 24
  Cb.offset    : 2088984
  Cr.offset    : 2611224


More information about the mythtv-dev mailing list