Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changes VideoOutput::CalcHueBase() to return 50% by default.

This also adds some adaptors to the known list from jya.

Thanks to skd5aner, anykey and jya on IRC for their assistance with this problem.
  • Loading branch information...
commit b2657a1a3f8aa7210885a9699b620634e4043363 1 parent 0fcf963
@daniel-kristjansson daniel-kristjansson authored
Showing with 21 additions and 7 deletions.
  1. +21 −7 mythtv/libs/libmythtv/videooutbase.cpp
View
28 mythtv/libs/libmythtv/videooutbase.cpp
@@ -1829,18 +1829,32 @@ void VideoOutput::InitDisplayMeasurements(uint width, uint height, bool resize)
int VideoOutput::CalcHueBase(const QString &adaptor_name)
{
+ int hue_adj = 50;
+
// XVideo adjustments
if ((adaptor_name == "ATI Radeon Video Overlay") ||
+ (adaptor_name == "XA G3D Textured Video") || /* ATI in VMWare*/
+ (adaptor_name == "Radeon Textured Video") || /* ATI */
+ (adaptor_name == "AMD Radeon AVIVO Video") || /* ATI */
(adaptor_name == "XV_SWOV" /* VIA 10K & 12K */) ||
(adaptor_name == "Savage Streams Engine" /* S3 Prosavage DDR-K */) ||
- (adaptor_name == "SIS 300/315/330 series Video Overlay"))
+ (adaptor_name == "SIS 300/315/330 series Video Overlay") ||
+ adaptor_name.toLower().contains("xvba")) /* VAAPI */
{
- return 50;
+ hue_adj = 50;
+ }
+ else if (adaptor_name.left(4) == "NV17") /* nVidia */
+ {
+ hue_adj = 0;
+ }
+ else
+ {
+ LOG(VB_GENERAL, LOG_INFO, LOC +
+ QString("CalcHueBase(%1): Unknown adaptor, hue may be wrong.")
+ .arg(adaptor_name));
+ LOG(VB_GENERAL, LOG_INFO, LOC +
+ "Please open a ticket if you need to adjust the hue.");
}
- // VAAPI
- if (adaptor_name.toLower().contains("xvba"))
- return 50;
-
- return 0; //< nVidia normal
+ return hue_adj;
}
Please sign in to comment.
Something went wrong with that request. Please try again.