mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 12:19:27 +01:00
Remove unused VideoColorData class
This commit is contained in:
@@ -34,7 +34,6 @@ namespace Flowframes.Data
|
||||
public List<SubtitleStream> SubtitleStreams = new List<SubtitleStream>();
|
||||
public List<DataStream> DataStreams = new List<DataStream>();
|
||||
public List<AttachmentStream> AttachmentStreams = new List<AttachmentStream>();
|
||||
public VideoColorData ColorData = null;
|
||||
public long CreationTime;
|
||||
public bool Initialized = false;
|
||||
public bool SequenceInitialized = false;
|
||||
|
||||
@@ -1,49 +0,0 @@
|
||||
using Flowframes.Utilities;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Flowframes.Data
|
||||
{
|
||||
public class VideoColorData
|
||||
{
|
||||
public int ColorTransfer { get; set; } = 2;
|
||||
public int ColorMatrixCoeffs { get; set; } = 2;
|
||||
public int ColorPrimaries { get; set; } = 2;
|
||||
public int ColorRange { get; set; } = 0;
|
||||
public string RedX { get; set; } = "";
|
||||
public string RedY { get; set; } = "";
|
||||
public string GreenX { get; set; } = "";
|
||||
public string GreenY { get; set; } = "";
|
||||
public string BlueX { get; set; } = "";
|
||||
public string BlueY { get; set; } = "";
|
||||
public string WhiteX { get; set; } = "";
|
||||
public string WhiteY { get; set; } = "";
|
||||
public string LumaMin { get; set; } = "";
|
||||
public string LumaMax { get; set; } = "";
|
||||
public string MaxCll { get; set; } = "";
|
||||
public string MaxFall { get; set; } = "";
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
List<string> lines = new List<string>();
|
||||
|
||||
try
|
||||
{
|
||||
lines.Add($"Color transfer: {ColorTransfer} ({ColorDataUtils.GetColorTransferName(ColorTransfer)})");
|
||||
lines.Add($"Colour matrix coefficients: {ColorMatrixCoeffs} ({ColorDataUtils.GetColorMatrixCoeffsName(ColorMatrixCoeffs)})");
|
||||
lines.Add($"Colour primaries: {ColorPrimaries} ({ColorDataUtils.GetColorPrimariesName(ColorPrimaries)})");
|
||||
lines.Add($"Colour range: {ColorRange} ({ColorDataUtils.GetColorRangeName(ColorRange)})");
|
||||
if (!string.IsNullOrWhiteSpace(RedX) && !string.IsNullOrWhiteSpace(RedY)) lines.Add($"Red color coordinates X/Y: {RedX}/{RedY}");
|
||||
if (!string.IsNullOrWhiteSpace(GreenX) && !string.IsNullOrWhiteSpace(GreenY)) lines.Add($"Green color coordinates X/Y: {GreenX}/{GreenY}");
|
||||
if (!string.IsNullOrWhiteSpace(BlueX) && !string.IsNullOrWhiteSpace(BlueY)) lines.Add($"Blue color coordinates X/Y: {BlueX}/{BlueY}");
|
||||
if (!string.IsNullOrWhiteSpace(WhiteX) && !string.IsNullOrWhiteSpace(WhiteY)) lines.Add($"White color coordinates X/Y: {WhiteX}/{WhiteY}");
|
||||
if (!string.IsNullOrWhiteSpace(LumaMin)) lines.Add($"Minimum luminance: {LumaMin}");
|
||||
if (!string.IsNullOrWhiteSpace(LumaMax)) lines.Add($"Maximum luminance: {LumaMax}");
|
||||
if (!string.IsNullOrWhiteSpace(MaxCll)) lines.Add($"Maximum Content Light Level: {MaxCll}");
|
||||
if (!string.IsNullOrWhiteSpace(MaxFall)) lines.Add($"Maximum Frame-Average Light Level: {MaxFall}");
|
||||
}
|
||||
catch { }
|
||||
|
||||
return string.Join("\n", lines);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -391,7 +391,6 @@
|
||||
<Compile Include="Data\Streams\SubtitleStream.cs" />
|
||||
<Compile Include="Data\Streams\VideoStream.cs" />
|
||||
<Compile Include="Data\Strings.cs" />
|
||||
<Compile Include="Data\VideoColorData.cs" />
|
||||
<Compile Include="Data\VidExtraData.cs" />
|
||||
<Compile Include="Data\Fraction.cs" />
|
||||
<Compile Include="Data\InterpSettings.cs" />
|
||||
|
||||
Reference in New Issue
Block a user