Files
Aaru/Aaru.Images/Nero/Nero.cs
2020-07-22 13:20:25 +01:00

91 lines
3.7 KiB
C#

// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Nero.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : Disk image plugins.
//
// --[ Description ] ----------------------------------------------------------
//
// Manages Nero Burning ROM disc images.
//
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2020 Natalia Portillo
// ****************************************************************************/
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using Aaru.CommonTypes;
using Aaru.CommonTypes.Enums;
using Aaru.CommonTypes.Interfaces;
using Aaru.CommonTypes.Structs;
using Aaru.Decoders.CD;
using Session = Aaru.CommonTypes.Structs.Session;
#pragma warning disable 414
#pragma warning disable 169
namespace Aaru.DiscImages
{
[SuppressMessage("ReSharper", "NotAccessedField.Local"),
SuppressMessage("ReSharper", "CollectionNeverQueried.Local")]
public sealed partial class Nero : IOpticalMediaImage
{
bool _imageNewFormat;
Stream _imageStream;
ImageInfo _imageInfo;
NeroCdText _neroCdtxt;
NeroV1Cuesheet _neroCuesheetV1;
NeroV2Cuesheet _neroCuesheetV2;
NeroV1Dao _neroDaov1;
NeroV2Dao _neroDaov2;
NeroDiscInformation _neroDiscInfo;
IFilter _neroFilter;
NeroMediaType _neroMediaTyp;
NeroReloChunk _neroRelo;
readonly Dictionary<ushort, uint> _neroSessions;
NeroV1Tao _neroTaov1;
NeroV2Tao _neroTaov2;
NeroTocChunk _neroToc;
readonly Dictionary<uint, NeroTrack> _neroTracks;
readonly Dictionary<uint, ulong> _offsetmap;
Dictionary<uint, byte[]> _trackIsrCs;
byte[] _upc;
SectorBuilder _sectorBuilder;
public Nero()
{
_imageNewFormat = false;
_imageInfo = new ImageInfo
{
ReadableSectorTags = new List<SectorTagType>(),
ReadableMediaTags = new List<MediaTagType>()
};
_neroSessions = new Dictionary<ushort, uint>();
_neroTracks = new Dictionary<uint, NeroTrack>();
_offsetmap = new Dictionary<uint, ulong>();
Sessions = new List<Session>();
Partitions = new List<Partition>();
}
}
}