Ticket #2649: openglv2.diff
File openglv2.diff, 7.7 KB (added by , 17 years ago) |
---|
-
configure
127 127 echo " --disable-xvmc-opengl disable nVidia XvMC OpenGL texture method" 128 128 echo " --xvmc-lib=LIB XvMC library override (for crosscompiling)" 129 129 #echo " --disable-xvmc-vld disable XvMC-VLD (VIA Epia MPEG accel.)" 130 echo " --enable-opengl-video enable opengl based video display " 130 131 echo " --enable-mac-accel enable Mac OS X MPEG acceleration" 131 132 echo " --enable-opengl-vsync enable OpenGL vsync method" 132 133 echo " --enable-directfb enable DirectFB (Linux non-X11 video)" … … 430 431 xvmc_pro="no" 431 432 xvmc_opengl="no" 432 433 xvmc_lib="" 434 opengl_video="no" 433 435 dvdv="no" 434 436 mac_corevideo="no" 435 437 opengl_vsync="no" … … 1177 1179 ;; 1178 1180 --xvmc-lib=*) xvmc_lib="$optval" 1179 1181 ;; 1182 --enable-opengl-video) opengl_video="yes" 1183 ;; 1184 --disable-opengl-video) opengl_video="no" 1185 ;; 1180 1186 --enable-mac-accel) dvdv="yes" 1181 1187 ;; 1182 1188 --disable-mac-accel) dvdv="no" … … 2551 2557 fi 2552 2558 2553 2559 if ! has_library libGL ; then 2560 opengl_video="no" 2554 2561 xvmc_opengl="no" 2555 2562 opengl_vsync="no" 2556 2563 fi … … 2563 2570 opengl="yes" 2564 2571 fi 2565 2572 2573 if test x"$opengl_video" = x"yes" ; then 2574 opengl="yes" 2575 fi 2576 2566 2577 if test x"$dvdv" = x"yes" ; then 2567 2578 # Can only do Mac accel on Mac platform 2568 2579 if test $targetos != Darwin; then … … 2739 2750 if test "$VENDOR_XVMC_LIBS" != "" ; then 2740 2751 echo "XvMC libs $VENDOR_XVMC_LIBS" 2741 2752 fi 2753 echo "OpenGL video $opengl_video" 2742 2754 echo "Mac acceleration $dvdv" 2743 2755 echo "OpenGL vsync $opengl_vsync" 2744 2756 echo "DirectFB $direct_fb" … … 3496 3508 fi 3497 3509 fi 3498 3510 3511 if test x"$opengl_video" = x"yes"; then 3512 CCONFIG="$CCONFIG using_opengl_video" 3513 fi 3514 3499 3515 if test x"$direct_fb" = x"yes" ; then 3500 3516 CCONFIG="$CCONFIG using_directfb" 3501 3517 echo "CONFIG_DIRECTFB_LIBS=$CONFIG_DIRECTFB_LIBS" >> $MYTH_CONFIG_MAK -
libs/libmythtv/NuppelVideoPlayer.cpp
845 845 return; 846 846 847 847 bool interlaced = scan == kScan_Interlaced || kScan_Intr2ndField == scan; 848 if (interlaced)849 {850 m_scan = scan;851 return;852 }853 848 854 849 if (interlaced) 855 850 { -
libs/libmythtv/libmythtv.pro
302 302 using_xvmc_opengl:DEFINES += USING_XVMC_OPENGL 303 303 using_opengl_vsync:DEFINES += USING_OPENGL_VSYNC 304 304 305 using_opengl_video:DEFINES += USING_OPENGL_VIDEO 306 using_opengl_video:HEADERS += videoout_opengl.h util-opengl.h 307 using_opengl_video:SOURCES += videoout_opengl.cpp util-opengl.cpp 308 305 309 # Misc. frontend 306 310 HEADERS += guidegrid.h infostructs.h 307 311 HEADERS += progfind.h ttfont.h -
libs/libmythtv/frame.h
18 18 FMT_IA44, 19 19 FMT_AI44, 20 20 FMT_ARGB32, 21 FMT_YUV422P 21 FMT_YUV422P, 22 FMT_ALPHA 22 23 } VideoFrameType; 23 24 24 25 typedef struct VideoFrame_ -
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(); … … 379 388 bool VideoOutput::NeedsDoubleFramerate() const 380 389 { 381 390 // Bob deinterlace requires doubling framerate 382 return (m_deintfiltername == "bobdeint" && m_deinterlacing); 391 return ((m_deintfiltername.contains("bobdeint") || 392 m_deintfiltername.contains("progressive")) 393 && m_deinterlacing); 383 394 } 384 395 385 396 /** -
libs/libmythtv/videooutbase.h
342 342 int keepprebuffer); 343 343 344 344 virtual void ShowPip(VideoFrame *frame, NuppelVideoPlayer *pipplayer); 345 int DisplayOSD(VideoFrame *frame, OSD *osd, int stride = -1, int revision = -1);345 virtual int DisplayOSD(VideoFrame *frame, OSD *osd, int stride = -1, int revision = -1); 346 346 347 347 virtual void SetPictureAttributeDBValue(int attributeType, int newValue); 348 348 virtual QRect GetVisibleOSDBounds(float&, float&) const; … … 355 355 356 356 void ResizeVideo(VideoFrame *frame); 357 357 void DoVideoResize(const QSize &inDim, const QSize &outDim); 358 v oid ShutdownVideoResize(void);358 virtual void ShutdownVideoResize(void); 359 359 360 360 void SetVideoAspectRatio(float aspect); 361 361 -
libs/libmythtv/videodisplayprofile.cpp
588 588 return QObject::tr("Bob (2x framerate)"); 589 589 else if ("onefield" == short_name) 590 590 return QObject::tr("One field"); 591 591 else if ("opengllinearblend" == short_name) 592 return QObject::tr("Opengl Linear blend"); 593 else if ("openglkerneldeint" == short_name) 594 return QObject::tr("Opengl Kernel"); 595 else if ("openglbobdeint" == short_name) 596 return QObject::tr("Opengl Bob (2x framerate)"); 597 else if ("openglonefield" == short_name) 598 return QObject::tr("Opengl One field"); 599 else if ("openglprogressivelinearblend" == short_name) 600 return QObject::tr("Opengl Progressive (Linear blend)"); 601 else if ("openglprogressiveonefield" == short_name) 602 return QObject::tr("Opengl Progressive (One Field)"); 603 else if ("openglprogressivekerneldeint" == short_name) 604 return QObject::tr("Opengl Progressive (Kernel)"); 592 605 return ""; 593 606 } 594 607 … … 931 944 "xv-blit" 932 945 "xvmc-blit" 933 946 "xvmc-opengl" 947 "opengl" 934 948 "directfb" 935 949 "directx" 936 950 "quartz-blit" … … 966 980 safe_custom += "directx"; 967 981 safe_custom += "quartz-blit"; 968 982 safe_custom += "xv-blit"; 983 #ifdef USING_OPENGL_VIDEO 984 safe_custom += "opengl"; 985 safe_deint["opengl"] += "bobdeint"; 986 safe_deint["opengl"] += "openglbobdeint"; 987 safe_deint["opengl"] += "openglprogressivelinearblend"; 988 safe_deint["opengl"] += "openglprogressiveonefield"; 989 safe_deint["opengl"] += "openglprogressivekerneldeint"; 990 safe_deint["opengl"] += "opengllinearblend"; 991 safe_deint["opengl"] += "openglkerneldeint"; 992 safe_deint["opengl"] += "openglonefield"; 993 safe_osd["opengl"] += "opengl"; 994 #endif 969 995 970 996 safe_list_t::const_iterator it; 971 997 for (it = safe_custom.begin(); it != safe_custom.end(); ++it) … … 1012 1038 safe_renderer[*it2] += "directx"; 1013 1039 safe_renderer[*it2] += "quartz-blit"; 1014 1040 safe_renderer[*it2] += "xv-blit"; 1041 #ifdef USING_OPENGL_VIDEO 1042 safe_renderer[*it2] += "opengl"; 1043 #endif 1015 1044 } 1016 1045 1017 1046 safe_renderer["xvmc"] += "xvmc-blit";