Ticket #1972: 1972-v1.patch
File 1972-v1.patch, 1.7 KB (added by , 19 years ago) |
---|
-
libs/libmythtv/videoout_xv.cpp
65 65 static void SetFromEnv(bool &useXvVLD, bool &useXvIDCT, bool &useXvMC, 66 66 bool &useXV, bool &useShm); 67 67 static void SetFromHW(Display *d, bool &useXvMC, bool &useXV, bool& useShm); 68 static int calc_hue_base(const QString &adaptor_name); 68 69 69 70 70 /** \class VideoOutputXv 71 71 * Supports common video output methods used with %X11 Servers. 72 72 * … … 751 751 return false; 752 752 } 753 753 754 VERBOSE(VB_IMPORTANT, LOC + QString("XvMC Adaptor Name: '%1'") 755 .arg(adaptor_name)); 756 757 xv_hue_base = calc_hue_base(adaptor_name); 758 754 759 InstallXErrorHandler(XJ_disp); 755 760 756 761 // create XvMC buffers … … 818 823 VERBOSE(VB_IMPORTANT, LOC + QString("XVideo Adaptor Name: '%1'") 819 824 .arg(adaptor_name)); 820 825 821 xv_hue_base = 0; //< nVidia normal 822 if ((adaptor_name == "ATI Radeon Video Overlay") || 823 (adaptor_name == "XV_SWOV" /* VIA 10K & 12K */) || 824 (adaptor_name == "Savage Streams Engine" /* S3 Prosavage DDR-K */)) 825 { 826 xv_hue_base = 50; 827 } 826 xv_hue_base = calc_hue_base(adaptor_name); 828 827 829 828 InstallXErrorHandler(XJ_disp); 830 829 … … 3426 3425 } // switch(codec_id) 3427 3426 return ret; 3428 3427 } 3428 3429 static int calc_hue_base(const QString &adaptor_name) 3430 { 3431 if ((adaptor_name == "ATI Radeon Video Overlay") || 3432 (adaptor_name == "XV_SWOV" /* VIA 10K & 12K */) || 3433 (adaptor_name == "Savage Streams Engine" /* S3 Prosavage DDR-K */)) 3434 { 3435 return 50; 3436 } 3437 3438 return 0; //< nVidia normal 3439 }