Ticket #2649: opengl.diff

File opengl.diff, 4.2 KB (added by anonymous, 17 years ago)
  • mythtv-vid/configure

     
    128128  echo "  --disable-xvmc-opengl    disable nVidia XvMC OpenGL texture method"
    129129  echo "  --xvmc-lib=LIB           XvMC library override (for crosscompiling)"
    130130  #echo "  --disable-xvmc-vld       disable XvMC-VLD (VIA Epia MPEG accel.)"
     131  echo "  --enable-opengl-video    enable opengl based video display "
    131132  echo "  --enable-mac-accel       enable Mac OS X MPEG acceleration"
    132133  echo "  --enable-opengl-vsync    enable OpenGL vsync method"
    133134  echo "  --enable-directfb        enable DirectFB  (Linux non-X11 video)"
     
    419420xvmc_pro="no"
    420421xvmc_opengl="no"
    421422xvmc_lib=""
     423opengl_video="no"
    422424dvdv="no"
    423425mac_corevideo="no"
    424426opengl_vsync="no"
     
    11711173  ;;
    11721174  --xvmc-lib=*) xvmc_lib="$optval"
    11731175  ;;
     1176  --enable-opengl-video) opengl_video="yes"
     1177  ;;
     1178  --disable-opengl-video) opengl_video="no"
     1179  ;;
    11741180  --enable-mac-accel) dvdv="yes"
    11751181  ;;
    11761182  --disable-mac-accel) dvdv="no"
     
    25402546fi
    25412547
    25422548if ! has_library libGL ; then
     2549    opengl_video="no"
    25432550    xvmc_opengl="no"
    25442551    opengl_vsync="no"
    25452552fi
     
    25522559    opengl="yes"
    25532560fi
    25542561
     2562if test x"$opengl_video" = x"yes" ; then
     2563    opengl="yes"
     2564fi
     2565
    25552566if test x"$dvdv" = x"yes" ; then
    25562567    # Can only do Mac accel on Mac platform
    25572568    if test $targetos != Darwin; then
     
    27292740if test "$VENDOR_XVMC_LIBS" != "" ; then
    27302741  echo "XvMC libs        $VENDOR_XVMC_LIBS"
    27312742fi
     2743  echo "OpenGL video     $opengl_video"
    27322744  echo "Mac acceleration $dvdv"
    27332745  echo "OpenGL vsync     $opengl_vsync"
    27342746  echo "DirectFB         $direct_fb"
     
    34773489  fi
    34783490fi
    34793491
     3492if test x"$opengl_video" = x"yes"; then
     3493  CCONFIG="$CCONFIG using_opengl_video"
     3494fi
     3495
    34803496if test x"$direct_fb" = x"yes" ; then
    34813497  CCONFIG="$CCONFIG using_directfb"
    34823498  echo "CONFIG_DIRECTFB_LIBS=$CONFIG_DIRECTFB_LIBS" >> $MYTH_CONFIG_MAK
  • mythtv-vid/libs/libmythtv/libmythtv.pro

     
    290290    using_xvmc_opengl:DEFINES += USING_XVMC_OPENGL
    291291    using_opengl_vsync:DEFINES += USING_OPENGL_VSYNC
    292292
     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
    293297    # Misc. frontend
    294298    HEADERS += guidegrid.h              infostructs.h
    295299    HEADERS += progfind.h               ttfont.h
  • mythtv-vid/libs/libmythtv/videooutbase.cpp

     
    2828#include "videoout_quartz.h"
    2929#endif
    3030
     31#ifdef USING_OPENGL_VIDEO
     32#include "videoout_opengl.h"
     33#endif
     34
    3135#include "videoout_null.h"
    3236
    3337#include "dithertable.h"
     
    4953{
    5054    (void)type;
    5155
     56#ifdef USING_OPENGL_VIDEO
     57    if (gContext->GetNumSetting("UseOpenglVideo", false))
     58        return new VideoOutputOpengl();
     59#endif
     60
    5261#ifdef USING_IVTV
    5362    if (type == kVideoOutput_IVTV)
    5463        return new VideoOutputIvtv();
  • mythtv-vid/libs/libmythtv/videodisplayprofile.cpp

     
    923923"xv-blit"
    924924"xvmc-blit"
    925925"xvmc-opengl"
     926"opengl"
    926927"directfb"
    927928"directx"
    928929"quartz-blit"
     
    958959    safe_custom += "directx";
    959960    safe_custom += "quartz-blit";
    960961    safe_custom += "xv-blit";
     962#ifdef USING_OPENGL_VIDEO
     963    safe_custom += "opengl";
     964#endif
    961965
    962966    safe_list_t::const_iterator it;
    963967    for (it = safe_custom.begin(); it != safe_custom.end(); ++it)
     
    10041008        safe_renderer[*it2] += "directx";
    10051009        safe_renderer[*it2] += "quartz-blit";
    10061010        safe_renderer[*it2] += "xv-blit";
     1011#ifdef USING_OPENGL_VIDEO
     1012        safe_renderer[*it2] += "opengl";
     1013#endif
    10071014    }
    10081015
    10091016    safe_renderer["xvmc"]     += "xvmc-blit";