@@ -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 \n Brightness: { brightness : +0.000;-0.000} \r \n Saturation: { 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}
0 commit comments