// /*************************************************************************** // Aaru Data Preservation Suite // ---------------------------------------------------------------------------- // // Filename : Nero.cs // Author(s) : Natalia Portillo // // 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 . // // ---------------------------------------------------------------------------- // Copyright © 2011-2021 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; #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; CdText _cdtxt; CuesheetV1 _cuesheetV1; CuesheetV2 _cuesheetV2; DaoV1 _neroDaov1; DaoV2 _neroDaov2; DiscInformation _discInfo; IFilter _neroFilter; MediaType _mediaType; ReloChunk _relo; readonly Dictionary _neroSessions; TaoV1 _taoV1; TaoV2 _taoV2; TocChunk _toc; readonly Dictionary _neroTracks; readonly Dictionary _offsetmap; Dictionary _trackIsrCs; byte[] _upc; SectorBuilder _sectorBuilder; public Nero() { _imageNewFormat = false; _imageInfo = new ImageInfo { ReadableSectorTags = new List(), ReadableMediaTags = new List() }; _neroSessions = new Dictionary(); _neroTracks = new Dictionary(); _offsetmap = new Dictionary(); Sessions = new List(); Partitions = new List(); } } }