@@ -24,25 +24,11 @@ public class VideoColorData
2424 public string WhiteY { get ; set ; } = "" ;
2525 public string LumaMin { get ; set ; } = "" ;
2626 public string LumaMax { get ; set ; } = "" ;
27+ public string MaxCll { get ; set ; } = "" ;
28+ public string MaxFall { get ; set ; } = "" ;
2729
2830 public override string ToString ( )
2931 {
30- //return
31- //$"Color transfer: {ColorTransfer}" +
32- //$"\nColor matrix coefficients: {ColorMatrixCoeffs}" +
33- //$"\nColor primaries: {ColorPrimaries}" +
34- //$"\nColor range: {ColorRange}" +
35- //$"\nRed color coordinate x: {RedX}" +
36- //$"\nRed color coordinate y: {RedY}" +
37- //$"\nGreen color coordinate x: {GreenX}" +
38- //$"\nGreen color coordinate y: {GreenY}" +
39- //$"\nBlue color coordinate y: {BlueX}" +
40- //$"\nBlue color coordinate x: {BlueY}" +
41- //$"\nWhite color coordinate y: {WhiteX}" +
42- //$"\nWhite color coordinate x: {WhiteY}" +
43- //$"\nMaximum luminance: {LumaMax}" +
44- //$"\nMinimum luminance: {LumaMin}";
45-
4632 List < string > lines = new List < string > ( ) ;
4733
4834 try
@@ -57,6 +43,8 @@ public override string ToString()
5743 if ( ! string . IsNullOrWhiteSpace ( WhiteX ) && ! string . IsNullOrWhiteSpace ( WhiteY ) ) lines . Add ( $ "White color coordinates X/Y: { WhiteX } /{ WhiteY } ") ;
5844 if ( ! string . IsNullOrWhiteSpace ( LumaMin ) ) lines . Add ( $ "Minimum luminance: { LumaMin } ") ;
5945 if ( ! string . IsNullOrWhiteSpace ( LumaMax ) ) lines . Add ( $ "Maximum luminance: { LumaMax } ") ;
46+ if ( ! string . IsNullOrWhiteSpace ( MaxCll ) ) lines . Add ( $ "Maximum Content Light Level: { MaxCll } ") ;
47+ if ( ! string . IsNullOrWhiteSpace ( MaxFall ) ) lines . Add ( $ "Maximum Frame-Average Light Level: { MaxFall } ") ;
6048 }
6149 catch { }
6250
0 commit comments