DVD model cleanup

This commit is contained in:
Matt Nadareski
2025-10-30 21:32:21 -04:00
parent 0e4235c8ba
commit c10749f34d
16 changed files with 28 additions and 28 deletions

View File

@@ -22,11 +22,11 @@ namespace SabreTools.Data.Models.DVD
/// Offset to VTS_ATRT n
/// </summary>
/// <remarks>NumberOfTitleSets entries</remarks>
public uint[]? Offsets { get; set; }
public uint[] Offsets { get; set; }
/// <summary>
/// Entries
/// </summary>
public AudioSubPictureAttributesTableEntry[]? Entries { get; set; }
public AudioSubPictureAttributesTableEntry[] Entries { get; set; }
}
}
}

View File

@@ -22,6 +22,6 @@ namespace SabreTools.Data.Models.DVD
/// 12-byte entries
/// </summary>
/// <remarks>NumberOfVOBIDs entries</remarks>
public CellAddressTableEntry[]? Entries { get; set; }
public CellAddressTableEntry[] Entries { get; set; }
}
}
}

View File

@@ -31,4 +31,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
public uint EndingSectorWithinVOB;
}
}
}

View File

@@ -6,4 +6,4 @@ namespace SabreTools.Data.Models.DVD
public const string VideoTitleSetIFOSignature = "DVDVIDEO-VTS";
}
}
}

View File

@@ -53,4 +53,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
Reserved = 0x80,
}
}
}

View File

@@ -23,12 +23,12 @@ namespace SabreTools.Data.Models.DVD
/// Language Units
/// </summary>
/// <remarks>NumberOfVOBIDs entries</remarks>
public LanguageUnitTableEntry[]? Entries { get; set; }
public LanguageUnitTableEntry[] Entries { get; set; }
/// <summary>
/// Program Chains
/// </summary>
/// <remarks>NumberOfVOBIDs entries</remarks>
public ProgramChainTable[]? ProgramChains { get; set; }
public ProgramChainTable[] ProgramChains { get; set; }
}
}
}

View File

@@ -26,4 +26,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
public uint LanguageUnitOffset;
}
}
}

View File

@@ -25,13 +25,13 @@ namespace SabreTools.Data.Models.DVD
/// <summary>
/// Entries
/// </summary>
public ParentalManagementMasksTableEntry[]? Entries { get; set; }
public ParentalManagementMasksTableEntry[] Entries { get; set; }
/// <summary>
/// The PTL_MAIT contains the 16-bit masks for the VMG and
/// all title sets for parental management level 8 followed
/// by the masks for level 7, and so on to level 1.
/// </summary>
public byte[][]? BitMasks { get; set; }
public byte[][] BitMasks { get; set; }
}
}
}

View File

@@ -21,4 +21,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
public uint Offset;
}
}
}

View File

@@ -23,6 +23,6 @@ namespace SabreTools.Data.Models.DVD
/// Program Chains
/// </summary>
/// <remarks>NumberOfProgramChains entries</remarks>
public ProgramChainTableEntry[]? Entries { get; set; }
public ProgramChainTableEntry[] Entries { get; set; }
}
}
}

View File

@@ -27,4 +27,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
public uint Offset;
}
}
}

View File

@@ -22,6 +22,6 @@ namespace SabreTools.Data.Models.DVD
/// 12-byte entries
/// </summary>
/// <remarks>NumberOfTitles entries</remarks>
public TitlesTableEntry[]? Entries { get; set; }
public TitlesTableEntry[] Entries { get; set; }
}
}
}

View File

@@ -43,4 +43,4 @@ namespace SabreTools.Data.Models.DVD
/// </summary>
public uint VTSStartSector;
}
}
}

View File

@@ -11,6 +11,6 @@ namespace SabreTools.Data.Models.DVD
/// <summary>
/// Starting sector within VOB of nth VOBU
/// </summary>
public uint[]? StartingSectors { get; set; }
public uint[] StartingSectors { get; set; }
}
}
}

View File

@@ -10,7 +10,7 @@ namespace SabreTools.Data.Models.DVD
/// "DVDVIDEO-VMG"
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)]
public string? Signature;
public string Signature;
/// <summary>
/// Last sector of VMG set (last sector of BUP)
@@ -131,7 +131,7 @@ namespace SabreTools.Data.Models.DVD
/// Audio attributes of VMGM_VOBS
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public ulong[]? AudioAttributes;
public ulong[] AudioAttributes = new ulong[8];
/// <summary>
/// Unknown

View File

@@ -10,7 +10,7 @@ namespace SabreTools.Data.Models.DVD
/// "DVDVIDEO-VTS"
/// </summary>
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 12)]
public string? Signature;
public string Signature;
/// <summary>
/// Last sector of title set (last sector of BUP)
@@ -141,7 +141,7 @@ namespace SabreTools.Data.Models.DVD
/// Audio attributes of VTSM_VOBS
/// </summary>
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public ulong[]? AudioAttributes;
public ulong[] AudioAttributes = new ulong[8];
/// <summary>
/// Unknown