[mythtv] Re: [mythtv-commits] mythtv commit: r7569 by danielk

Neale Swinnerton mythtv-dev.spam at isismanor.com
Tue Oct 25 12:50:59 UTC 2005


Compilation problem if you don't compile with XVMC....

I guess there's a missing #ifdef, something like....

Index: libs/libmythtv/videoout_xv.cpp
===================================================================
--- libs/libmythtv/videoout_xv.cpp      (revision 7570)
+++ libs/libmythtv/videoout_xv.cpp      (working copy)
@@ -1135,7 +1135,9 @@
     if (use_chroma_key_osd)
     {
         chroma_osd = new ChromaKeyOSD(this);
+        #ifdef USING_XVMC
         xvmc_buf_attr->SetOSDNum(0); // disable XvMC blending OSD
+        #endif
     }

     // Create video buffers




make[2]: Entering directory
`/var/tmp/portage/mythtv-7570-r1/work/mythtv-7570/libs/libmythtv'
g++ -c -pipe -march=pentium4 -Wall -W -O3 -Wall -Wno-switch -O2 -pipe
-fomit-frame-pointer `freetype-config --cflags` -D_REENTRANT -DPIC -fPIC 
-DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-DPREFIX=\"/usr\" -D_LARGEFILE_SOURCE -DUSING_OSS -DUSING_XV
-DUSING_FRONTEND -DUSING_V4L -DUSING_IVTV -DUSING_DVB -DUSING_BACKEND
-DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I.
-I/usr/include -I/usr/src/linux-2.6.12.2/include -I/usr/include -I../..
-I../libmyth -I.. -Idvbdev -Impeg -I../libavcodec -I../libavutil
-I../libmythmpeg2 -I/usr/qt/3/include -o videoout_xv.o videoout_xv.cpp
videoout_xv.cpp: In member function `virtual bool VideoOutputXv::Init(int,
int,
   float, long unsigned int, int, int, int, int, long unsigned int)':
videoout_xv.cpp:1138: error: `xvmc_buf_attr' undeclared (first use this
   function)
videoout_xv.cpp:1138: error: (Each undeclared identifier is reported only
once
   for each function it appears in.)
make[2]: *** [videoout_xv.o] Error 1
make[2]: Leaving directory
`/var/tmp/portage/mythtv-7570-r1/work/mythtv-7570/libs/libmythtv'
make[1]: *** [sub-libmythtv] Error 2
make[1]: Leaving directory
`/var/tmp/portage/mythtv-7570-r1/work/mythtv-7570/libs'
make: *** [sub-libs] Error 2



>       Author: danielk
>         Date: 2005-10-24 23:06:36 +0000 (Mon, 24 Oct 2005)
> New Revision: 7569
>    Changeset: http://cvs.mythtv.org/trac/changeset/7569
>
> Modified:
>
>    trunk/mythtv/libs/libmythtv/NuppelVideoPlayer.cpp
>    trunk/mythtv/libs/libmythtv/osdsurface.cpp
>    trunk/mythtv/libs/libmythtv/osdsurface.h
>    trunk/mythtv/libs/libmythtv/videobuffers.cpp
>    trunk/mythtv/libs/libmythtv/videobuffers.h
>    trunk/mythtv/libs/libmythtv/videoout_xv.cpp
>    trunk/mythtv/libs/libmythtv/videoout_xv.h
>    trunk/mythtv/libs/libmythtv/videooutbase.cpp
>    trunk/mythtv/libs/libmythtv/videooutbase.h
>
> Log:
>
> References #512.
>
> This implements a basic chromakey OSD.
>
> For it to be enabled, you must have this in your
> xorg.conf "Devices" section:
>     Option "XvmcUsesTextures" "false" # use 3d engine for overlays
> And you have to insert a "UseChromaKeyOSD","1",hostname setting in
> the settings table.
>
> This currently makes no claim to efficiency, this clears the a
> buffer to the chromakey color w/borders, and then plops the OSD
> on top of it; creating an RGB OSDSurface or creating a specialized,
> chromakey painting, OSD blend function would probably be much
> faster. What this does make a claim to is not being too disruptive
> to the rest of the code.
>
>
>
>
> _______________________________________________
> mythtv-commits mailing list
> mythtv-commits at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits
>



More information about the mythtv-dev mailing list