Skip to content

Commit 9634627

Browse files
committed
Preparing fro release 3.10
1 parent 13788a2 commit 9634627

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

Unosquare.FFME.Windows.Sample/Unosquare.FFME.Windows.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop" ToolsVersion="Current">
33

44
<PropertyGroup>
5-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
5+
<TargetFrameworks>net472;net461;netcoreapp3.0</TargetFrameworks>
66
<OutputType>WinExe</OutputType>
77
<UseWpf>true</UseWpf>
88
<Title>FFME Reference Player</Title>

Unosquare.FFME.Windows.Sample/ViewModels/ControllerViewModel.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ internal override void OnApplicationLoaded()
310310
m.WhenChanged(() => IsSpeedRatioEnabled = m.IsOpening == false, nameof(m.IsOpen), nameof(m.IsSeekable));
311311
}
312312

313-
private (double Contrast, double Brightness, double Saturation) ParseVideoEqualizerFilter()
313+
private EqualizerFilterValues ParseVideoEqualizerFilter()
314314
{
315-
var result = (contrast: 1d, brightness: 0d, saturation: 1d);
315+
var result = new EqualizerFilterValues() { Contrast = 1d, Brightness = 0d, Saturation = 1d };
316316

317317
if (Root.MediaElement == null || Root.MediaElement.HasVideo == false) return result;
318318

@@ -329,9 +329,9 @@ internal override void OnApplicationLoaded()
329329
var bLiteral = currentFilter.Substring(bIx + VideoEqBrightness.Length, 6);
330330
var sLiteral = currentFilter.Substring(sIx + VideoEqSaturation.Length, 6);
331331

332-
result.contrast = double.Parse(cLiteral, CultureInfo.InvariantCulture);
333-
result.brightness = double.Parse(bLiteral, CultureInfo.InvariantCulture);
334-
result.saturation = double.Parse(sLiteral, CultureInfo.InvariantCulture);
332+
result.Contrast = double.Parse(cLiteral, CultureInfo.InvariantCulture);
333+
result.Brightness = double.Parse(bLiteral, CultureInfo.InvariantCulture);
334+
result.Saturation = double.Parse(sLiteral, CultureInfo.InvariantCulture);
335335

336336
return result;
337337
}
@@ -373,5 +373,12 @@ private void ApplyVideoEqualizerFilter(double? contrast, double? brightness, dou
373373
Root.NotificationMessage = $"Contrast: {contrast:+0.000;-0.000}\r\nBrightness: {brightness:+0.000;-0.000}\r\nSaturation: {saturation:+0.000;-0.000}";
374374
}
375375
}
376+
377+
private struct EqualizerFilterValues
378+
{
379+
public double Contrast;
380+
public double Brightness;
381+
public double Saturation;
382+
}
376383
}
377384
}

Unosquare.FFME.Windows/Unosquare.FFME.Windows.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<PropertyGroup>
55
<!-- Assembly Properties -->
6-
<TargetFrameworks>netcoreapp3.0</TargetFrameworks>
6+
<TargetFrameworks>net472;net461;netcoreapp3.0</TargetFrameworks>
77
<RootNamespace>Unosquare.FFME</RootNamespace>
88
<LangVersion>latest</LangVersion>
99
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

0 commit comments

Comments
 (0)