2018-07-23 23:25:43 +01:00
|
|
|
|
// /***************************************************************************
|
|
|
|
|
|
// The Disc Image Chef
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Filename : Properties.cs
|
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
|
//
|
|
|
|
|
|
// Component : Disk image plugins.
|
|
|
|
|
|
//
|
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
|
//
|
|
|
|
|
|
// Contains properties for DiscImageChef format disk 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/>.
|
|
|
|
|
|
//
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2018-12-29 17:34:38 +00:00
|
|
|
|
// Copyright © 2011-2019 Natalia Portillo
|
2018-07-23 23:25:43 +01:00
|
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using DiscImageChef.CommonTypes;
|
|
|
|
|
|
using DiscImageChef.CommonTypes.Enums;
|
|
|
|
|
|
using DiscImageChef.CommonTypes.Structs;
|
|
|
|
|
|
using Schemas;
|
|
|
|
|
|
|
|
|
|
|
|
namespace DiscImageChef.DiscImages
|
|
|
|
|
|
{
|
|
|
|
|
|
public partial class DiscImageChef
|
|
|
|
|
|
{
|
|
|
|
|
|
public ImageInfo Info => imageInfo;
|
|
|
|
|
|
public string Name => "DiscImageChef format";
|
|
|
|
|
|
public Guid Id => new Guid("49360069-1784-4A2F-B723-0C844D610B0A");
|
|
|
|
|
|
public string Format => "DiscImageChef";
|
2018-08-29 22:15:43 +01:00
|
|
|
|
public string Author => "Natalia Portillo";
|
2018-07-23 23:25:43 +01:00
|
|
|
|
public List<Partition> Partitions { get; private set; }
|
|
|
|
|
|
public List<Track> Tracks { get; private set; }
|
|
|
|
|
|
public List<Session> Sessions { get; private set; }
|
|
|
|
|
|
public List<DumpHardwareType> DumpHardware { get; private set; }
|
|
|
|
|
|
public CICMMetadataType CicmMetadata { get; private set; }
|
|
|
|
|
|
public IEnumerable<MediaTagType> SupportedMediaTags =>
|
|
|
|
|
|
Enum.GetValues(typeof(MediaTagType)).Cast<MediaTagType>();
|
|
|
|
|
|
public IEnumerable<SectorTagType> SupportedSectorTags =>
|
|
|
|
|
|
Enum.GetValues(typeof(SectorTagType)).Cast<SectorTagType>();
|
|
|
|
|
|
public IEnumerable<MediaType> SupportedMediaTypes => Enum.GetValues(typeof(MediaType)).Cast<MediaType>();
|
2018-09-30 22:28:59 +01:00
|
|
|
|
public IEnumerable<(string name, Type type, string description, object @default)> SupportedOptions =>
|
2018-07-23 23:25:43 +01:00
|
|
|
|
new[]
|
|
|
|
|
|
{
|
|
|
|
|
|
("sectors_per_block", typeof(uint),
|
2019-03-01 07:35:22 +00:00
|
|
|
|
"How many sectors to store per block (will be rounded to next power of two)", 4096U),
|
2018-09-30 22:28:59 +01:00
|
|
|
|
("dictionary", typeof(uint), "Size, in bytes, of the LZMA dictionary", (uint)(1 << 25)),
|
2018-07-23 23:25:43 +01:00
|
|
|
|
("max_ddt_size", typeof(uint),
|
2019-03-01 07:35:22 +00:00
|
|
|
|
"Maximum size, in mebibytes, for in-memory DDT. If image needs a bigger one, it will be on-disk",
|
|
|
|
|
|
256U),
|
2018-09-30 22:28:59 +01:00
|
|
|
|
("md5", typeof(bool), "Calculate and store MD5 of image's user data", (object)false),
|
|
|
|
|
|
("sha1", typeof(bool), "Calculate and store SHA1 of image's user data", (object)false),
|
|
|
|
|
|
("sha256", typeof(bool), "Calculate and store SHA256 of image's user data", (object)false),
|
|
|
|
|
|
("spamsum", typeof(bool), "Calculate and store SpamSum of image's user data", (object)false),
|
2018-07-23 23:25:43 +01:00
|
|
|
|
("deduplicate", typeof(bool),
|
2019-03-01 07:35:22 +00:00
|
|
|
|
"Store only unique sectors. This consumes more memory and is slower, but it's enabled by default",
|
|
|
|
|
|
(object)true),
|
2018-08-29 22:15:43 +01:00
|
|
|
|
("nocompress", typeof(bool),
|
2019-03-01 07:35:22 +00:00
|
|
|
|
"Don't compress user data blocks. Other blocks will still be compressed", (object)false)
|
2018-07-23 23:25:43 +01:00
|
|
|
|
};
|
|
|
|
|
|
public IEnumerable<string> KnownExtensions => new[] {".dicf"};
|
|
|
|
|
|
public bool IsWriting { get; private set; }
|
|
|
|
|
|
public string ErrorMessage { get; private set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|