Ticket #2649: opengl.diff
File opengl.diff, 4.2 KB (added by , 17 years ago) |
---|
-
mythtv-vid/configure
128 128 echo " --disable-xvmc-opengl disable nVidia XvMC OpenGL texture method" 129 129 echo " --xvmc-lib=LIB XvMC library override (for crosscompiling)" 130 130 #echo " --disable-xvmc-vld disable XvMC-VLD (VIA Epia MPEG accel.)" 131 echo " --enable-opengl-video enable opengl based video display " 131 132 echo " --enable-mac-accel enable Mac OS X MPEG acceleration" 132 133 echo " --enable-opengl-vsync enable OpenGL vsync method" 133 134 echo " --enable-directfb enable DirectFB (Linux non-X11 video)" … … 419 420 xvmc_pro="no" 420 421 xvmc_opengl="no" 421 422 xvmc_lib="" 423 opengl_video="no" 422 424 dvdv="no" 423 425 mac_corevideo="no" 424 426 opengl_vsync="no" … … 1171 1173 ;; 1172 1174 --xvmc-lib=*) xvmc_lib="$optval" 1173 1175 ;; 1176 --enable-opengl-video) opengl_video="yes" 1177 ;; 1178 --disable-opengl-video) opengl_video="no" 1179 ;; 1174 1180 --enable-mac-accel) dvdv="yes" 1175 1181 ;; 1176 1182 --disable-mac-accel) dvdv="no" … … 2540 2546 fi 2541 2547 2542 2548 if ! has_library libGL ; then 2549 opengl_video="no" 2543 2550 xvmc_opengl="no" 2544 2551 opengl_vsync="no" 2545 2552 fi … … 2552 2559 opengl="yes" 2553 2560 fi 2554 2561 2562 if test x"$opengl_video" = x"yes" ; then 2563 opengl="yes" 2564 fi 2565 2555 2566 if test x"$dvdv" = x"yes" ; then 2556 2567 # Can only do Mac accel on Mac platform 2557 2568 if test $targetos != Darwin; then … … 2729 2740 if test "$VENDOR_XVMC_LIBS" != "" ; then 2730 2741 echo "XvMC libs $VENDOR_XVMC_LIBS" 2731 2742 fi 2743 echo "OpenGL video $opengl_video" 2732 2744 echo "Mac acceleration $dvdv" 2733 2745 echo "OpenGL vsync $opengl_vsync" 2734 2746 echo "DirectFB $direct_fb" … … 3477 3489 fi 3478 3490 fi 3479 3491 3492 if test x"$opengl_video" = x"yes"; then 3493 CCONFIG="$CCONFIG using_opengl_video" 3494 fi 3495 3480 3496 if test x"$direct_fb" = x"yes" ; then 3481 3497 CCONFIG="$CCONFIG using_directfb" 3482 3498 echo "CONFIG_DIRECTFB_LIBS=$CONFIG_DIRECTFB_LIBS" >> $MYTH_CONFIG_MAK -
mythtv-vid/libs/libmythtv/libmythtv.pro
290 290 using_xvmc_opengl:DEFINES += USING_XVMC_OPENGL 291 291 using_opengl_vsync:DEFINES += USING_OPENGL_VSYNC 292 292 293 using_opengl_video:DEFINES += USING_OPENGL_VIDEO 294 using_opengl_video:HEADERS += videoout_opengl.h 295 using_opengl_video:SOURCES += videoout_opengl.cpp 296 293 297 # Misc. frontend 294 298 HEADERS += guidegrid.h infostructs.h 295 299 HEADERS += progfind.h ttfont.h -
mythtv-vid/libs/libmythtv/videooutbase.cpp
28 28 #include "videoout_quartz.h" 29 29 #endif 30 30 31 #ifdef USING_OPENGL_VIDEO 32 #include "videoout_opengl.h" 33 #endif 34 31 35 #include "videoout_null.h" 32 36 33 37 #include "dithertable.h" … … 49 53 { 50 54 (void)type; 51 55 56 #ifdef USING_OPENGL_VIDEO 57 if (gContext->GetNumSetting("UseOpenglVideo", false)) 58 return new VideoOutputOpengl(); 59 #endif 60 52 61 #ifdef USING_IVTV 53 62 if (type == kVideoOutput_IVTV) 54 63 return new VideoOutputIvtv(); -
mythtv-vid/libs/libmythtv/videodisplayprofile.cpp
923 923 "xv-blit" 924 924 "xvmc-blit" 925 925 "xvmc-opengl" 926 "opengl" 926 927 "directfb" 927 928 "directx" 928 929 "quartz-blit" … … 958 959 safe_custom += "directx"; 959 960 safe_custom += "quartz-blit"; 960 961 safe_custom += "xv-blit"; 962 #ifdef USING_OPENGL_VIDEO 963 safe_custom += "opengl"; 964 #endif 961 965 962 966 safe_list_t::const_iterator it; 963 967 for (it = safe_custom.begin(); it != safe_custom.end(); ++it) … … 1004 1008 safe_renderer[*it2] += "directx"; 1005 1009 safe_renderer[*it2] += "quartz-blit"; 1006 1010 safe_renderer[*it2] += "xv-blit"; 1011 #ifdef USING_OPENGL_VIDEO 1012 safe_renderer[*it2] += "opengl"; 1013 #endif 1007 1014 } 1008 1015 1009 1016 safe_renderer["xvmc"] += "xvmc-blit";