mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2025-12-27 07:21:07 +01:00
more changes
This commit is contained in:
@@ -116,6 +116,9 @@ static int ConfigVideoSaturation = 100; ///< config video saturation
|
||||
static int ConfigVideoHue; ///< config video hue
|
||||
static int ConfigGamma; ///< config Gamma
|
||||
static int ConfigTargetColorSpace; ///< config Target Colrospace
|
||||
static int ConfigScalerTest; /// Test for Scalers
|
||||
static int ConfigColorBlindness;
|
||||
static int ConfigColorBlindnessFaktor;
|
||||
|
||||
/// config deinterlace
|
||||
static int ConfigVideoDeinterlace[RESOLUTIONS];
|
||||
@@ -870,6 +873,9 @@ class cMenuSetupSoft:public cMenuSetupPage
|
||||
int Hue;
|
||||
int Gamma;
|
||||
int TargetColorSpace;
|
||||
int ScalerTest;
|
||||
int ColorBlindnessFaktor;
|
||||
int ColorBlindness;
|
||||
|
||||
int ResolutionShown[RESOLUTIONS];
|
||||
int Scaling[RESOLUTIONS];
|
||||
@@ -1011,6 +1017,9 @@ void cMenuSetupSoft::Create(void)
|
||||
static const char *const target_colorspace[] = {
|
||||
"Monitor", "sRGB", "BT709", "HDR-HLG", "HDR10",
|
||||
};
|
||||
static const char *const target_colorblindness[] = {
|
||||
"None", "Protanomaly", "Deuteranomaly", "Tritanomaly", "Monochromacy",
|
||||
};
|
||||
#endif
|
||||
int current;
|
||||
int i;
|
||||
@@ -1018,12 +1027,15 @@ void cMenuSetupSoft::Create(void)
|
||||
#ifdef PLACEBO
|
||||
static int scalers=0;
|
||||
static char *scaling[100];
|
||||
static char *scalingtest[100];
|
||||
if (scalers == 0) {
|
||||
scalingtest[0] = "Off";
|
||||
for (scalers = 0;pl_named_filters[scalers].filter != NULL ; scalers++) {
|
||||
scaling[scalers] = (char*)pl_named_filters[scalers].name;
|
||||
scalingtest[scalers+1] = (char*)pl_named_filters[scalers].name;
|
||||
// printf("Scaler %s\n",pl_named_filters[scalers].name);
|
||||
}
|
||||
scalers -= 2;
|
||||
// scalers -= 2;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1092,7 +1104,10 @@ void cMenuSetupSoft::Create(void)
|
||||
&BlackPicture, trVDR("no"), trVDR("yes")));
|
||||
Add(new cMenuEditBoolItem(tr("Clear decoder on channel switch"),
|
||||
&ClearOnSwitch, trVDR("no"), trVDR("yes")));
|
||||
|
||||
#if PLACEBO
|
||||
Add(new cMenuEditStraItem(tr("Scaler Test"), &ConfigScalerTest, scalers+1, scalingtest));
|
||||
|
||||
Add(new cMenuEditIntItem(tr("Brightness (-100..100)"),
|
||||
&Brightness, -100, 100, tr("min"), tr("max")));
|
||||
Add(new cMenuEditIntItem(tr("Contrast (0..100)"), &Contrast,
|
||||
@@ -1101,10 +1116,13 @@ void cMenuSetupSoft::Create(void)
|
||||
&Saturation, 0, 100, tr("min"), tr("max")));
|
||||
Add(new cMenuEditIntItem(tr("Gamma (0..100)"),
|
||||
&Gamma, 0, 100, tr("min"), tr("max")));
|
||||
Add(new cMenuEditIntItem(tr("Hue (-314..314) "), &Hue, -314,
|
||||
314, tr("min"), tr("max")));
|
||||
Add(new cMenuEditIntItem(tr("Hue (-314..314) "), &Hue, -314, 314, tr("min"), tr("max")));
|
||||
Add(new cMenuEditStraItem(tr("Monitor Colorspace"), &TargetColorSpace, 5, target_colorspace));
|
||||
Add(new cMenuEditStraItem(tr("Color Blindness"), &ColorBlindness, 5, target_colorblindness));
|
||||
Add(new cMenuEditIntItem(tr("Color Correction (-100..100) "), &ColorBlindnessFaktor, -100,
|
||||
100, tr("min"), tr("max")));
|
||||
#endif
|
||||
|
||||
for (i = 0; i < RESOLUTIONS; ++i) {
|
||||
cString msg;
|
||||
|
||||
@@ -1303,6 +1321,9 @@ cMenuSetupSoft::cMenuSetupSoft(void)
|
||||
Hue = ConfigVideoHue;
|
||||
Gamma = ConfigGamma;
|
||||
TargetColorSpace = ConfigTargetColorSpace;
|
||||
ColorBlindness = ConfigColorBlindness;
|
||||
ColorBlindnessFaktor = ConfigColorBlindnessFaktor;
|
||||
// ScalerTest = ConfigScalerTest;
|
||||
|
||||
for (i = 0; i < RESOLUTIONS; ++i) {
|
||||
ResolutionShown[i] = 0;
|
||||
@@ -1447,7 +1468,13 @@ void cMenuSetupSoft::Store(void)
|
||||
VideoSetTargetColor(ConfigTargetColorSpace);
|
||||
SetupStore("Hue", ConfigVideoHue = Hue);
|
||||
VideoSetHue(ConfigVideoHue);
|
||||
|
||||
SetupStore("CBlindness", ConfigColorBlindness = ColorBlindness);
|
||||
VideoSetColorBlindness(ConfigColorBlindness);
|
||||
SetupStore("CBlindnessFaktor", ConfigColorBlindnessFaktor = ColorBlindnessFaktor);
|
||||
VideoSetColorBlindnessFaktor(ConfigColorBlindnessFaktor);
|
||||
// SetupStore("ScalerTest", ConfigScalerTest = ScalerTest);
|
||||
VideoSetScalerTest(ConfigScalerTest);
|
||||
|
||||
for (i = 0; i < RESOLUTIONS; ++i) {
|
||||
char buf[128];
|
||||
|
||||
@@ -2680,7 +2707,7 @@ void cSoftHdDevice::StillPicture(const uchar * data, int length)
|
||||
data[0] == 0x47 ? "ts" : "pes", data, length);
|
||||
|
||||
if (data[0] == 0x47) { // ts sync
|
||||
cDevice::StillPicture(data, length);
|
||||
cDevice::StillPicture(data, length);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3282,6 +3309,20 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value)
|
||||
VideoSetHue(ConfigVideoHue = atoi(value));
|
||||
return true;
|
||||
}
|
||||
if (!strcasecmp(name, "CBlindness")) {
|
||||
VideoSetColorBlindness(ConfigColorBlindness = atoi(value));
|
||||
return true;
|
||||
}
|
||||
if (!strcasecmp(name, "CBlindnessFaktor")) {
|
||||
VideoSetColorBlindnessFaktor(ConfigColorBlindnessFaktor = atoi(value));
|
||||
return true;
|
||||
}
|
||||
#if 0
|
||||
if (!strcasecmp(name, "ScalerTest")) {
|
||||
VideoSetScalerTest(ConfigScalerTest = atoi(value));
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
for (i = 0; i < RESOLUTIONS; ++i) {
|
||||
char buf[128];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user