diff --git a/CodeLegacy/Data/MediaFile.cs b/CodeLegacy/Data/MediaFile.cs index b9bb64a..ca72944 100644 --- a/CodeLegacy/Data/MediaFile.cs +++ b/CodeLegacy/Data/MediaFile.cs @@ -34,7 +34,6 @@ namespace Flowframes.Data public List SubtitleStreams = new List(); public List DataStreams = new List(); public List AttachmentStreams = new List(); - public VideoColorData ColorData = null; public long CreationTime; public bool Initialized = false; public bool SequenceInitialized = false; diff --git a/CodeLegacy/Data/VideoColorData.cs b/CodeLegacy/Data/VideoColorData.cs deleted file mode 100644 index 560dc5e..0000000 --- a/CodeLegacy/Data/VideoColorData.cs +++ /dev/null @@ -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 lines = new List(); - - 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); - } - } -} diff --git a/CodeLegacy/Flowframes.csproj b/CodeLegacy/Flowframes.csproj index 1e520bf..a4b5b2d 100644 --- a/CodeLegacy/Flowframes.csproj +++ b/CodeLegacy/Flowframes.csproj @@ -391,7 +391,6 @@ -