2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2015-12-06 05:09:31 +00:00
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Filename : MediaType.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
2015-12-06 05:09:31 +00:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Component : XML metadata.
|
2015-12-06 05:09:31 +00:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Converts a common media type to the XML equivalent.
|
2015-12-06 05:09:31 +00:00
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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
|
2015-12-06 05:09:31 +00:00
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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.
|
2015-12-06 05:09:31 +00:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// 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/>.
|
2015-12-06 05:09:31 +00:00
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-05-19 20:28:49 +01:00
|
|
|
// Copyright © 2011-2017 Natalia Portillo
|
2015-12-06 05:09:31 +00:00
|
|
|
// ****************************************************************************/
|
|
|
|
|
|
|
|
|
|
namespace DiscImageChef.Metadata
|
|
|
|
|
{
|
2016-01-16 03:54:55 +00:00
|
|
|
public static class MediaType
|
2015-12-06 05:09:31 +00:00
|
|
|
{
|
2016-01-16 03:54:55 +00:00
|
|
|
public static void MediaTypeToString(CommonTypes.MediaType dskType, out string DiscType, out string DiscSubType)
|
2015-12-06 05:09:31 +00:00
|
|
|
{
|
2016-04-19 02:11:47 +01:00
|
|
|
switch(dskType)
|
2015-12-06 05:09:31 +00:00
|
|
|
{
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.BDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "BD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.BDRE:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "BD-RE";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.BDREXL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "BD-RE XL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.BDROM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "BD-ROM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.BDRXL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "BD-R XL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CBHD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "CBHD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDDA:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD Digital Audio";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDEG:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD+EG";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDG:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD+G";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDI:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-i";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDMIDI:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD+MIDI";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDMO:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-MO";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDMRW:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-MRW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDPLUS:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD+";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDROM:
|
2015-12-13 07:43:14 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-ROM";
|
2015-12-06 05:09:31 +00:00
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDROMXA:
|
2015-12-13 07:43:14 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-ROM XA";
|
2015-12-06 05:09:31 +00:00
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDRW:
|
2015-12-13 07:43:14 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-RW";
|
2015-12-06 05:09:31 +00:00
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CDV:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "CD-Video";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DDCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DDCD";
|
|
|
|
|
DiscSubType = "DDCD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DDCDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DDCD";
|
|
|
|
|
DiscSubType = "DDCD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DDCDRW:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DDCD";
|
|
|
|
|
DiscSubType = "DDCD-RW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DTSCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "DTS CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDDownload:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-Download";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDPR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD+R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDPRDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD+R DL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDPRW:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD+RW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDPRWDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD+RW DL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDRAM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-RAM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDRDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-R DL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDROM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-ROM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDRW:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-RW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DVDRWDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "DVD-RW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.EVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "EVD";
|
|
|
|
|
DiscSubType = "EVD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FDDVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "FDDVD";
|
|
|
|
|
DiscSubType = "FDDVD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "FVD";
|
|
|
|
|
DiscSubType = "FVD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.GDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "GD";
|
|
|
|
|
DiscSubType = "GD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.GDROM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "GD";
|
|
|
|
|
DiscSubType = "GD-ROM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.GOD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "GameCube Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.WOD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "Wii Optical Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.WUOD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "Wii U Optical Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDR:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-R";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDRAM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-RAM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDRDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-R DL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDROM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-ROM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDRW:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-RW";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDDVDRWDL:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD DVD";
|
|
|
|
|
DiscSubType = "HD DVD-RW DL";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HDVMD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HD VMD";
|
|
|
|
|
DiscSubType = "HD VMD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HiMD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "MiniDisc";
|
|
|
|
|
DiscSubType = "HiMD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.HVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "HVD";
|
|
|
|
|
DiscSubType = "HVD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.LD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "LaserDisc";
|
|
|
|
|
DiscSubType = "LaserDisc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.LDROM:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "LaserDisc";
|
|
|
|
|
DiscSubType = "LD-ROM";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.MD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "MiniDisc";
|
|
|
|
|
DiscSubType = "MiniDisc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.MEGACD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Sega Mega CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Photo CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS1CD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "PlayStation Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS2CD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "PlayStation 2 Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS2DVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "PlayStation 2 Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS3BD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "PlayStation 3 Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS3DVD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "PlayStation 3 Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.PS4BD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "PlayStation 4 Game Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SACD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "SACD";
|
|
|
|
|
DiscSubType = "Super Audio CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SATURNCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Sega Saturn CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SVCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Super Video CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SVOD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "SVOD";
|
|
|
|
|
DiscSubType = "SVOD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.UDO:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "UDO";
|
|
|
|
|
DiscSubType = "UDO";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.UMD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "UMD";
|
|
|
|
|
DiscSubType = "Universal Media Disc";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.VCD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Video CD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XGD:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "Xbox Game Disc (XGD)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XGD2:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "Xbox 360 Game Disc (XGD2)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XGD3:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "DVD";
|
|
|
|
|
DiscSubType = "Xbox 360 Game Disc (XGD3)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XGD4:
|
2015-12-06 05:09:31 +00:00
|
|
|
DiscType = "BD";
|
|
|
|
|
DiscSubType = "Xbox One Game Disc (XGD4)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.Apple32SS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Apple DOS 3.2";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.Apple32DS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Apple DOS 3.2 (double-sided)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.Apple33SS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Apple DOS 3.3";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.Apple33DS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Apple DOS 3.3 (double-sided)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.AppleSonySS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Apple 400K";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.AppleSonyDS:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Apple 800K";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.AppleFileWare:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Apple FileWare";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_525_SS_DD_8:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, single-sided, 8 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_525_SS_DD_9:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, single-sided, 9 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_525_DS_DD_8:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, double-sided, 8 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_525_DS_DD_9:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, double-sided, 9 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_525_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_SS_DD_8:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, single-sided, 8 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_SS_DD_9:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, single-sided, 9 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_DS_DD_8:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, double-sided, 8 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_DS_DD_9:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM double-density, double-sided, 9 sectors";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DOS_35_ED:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM extra-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DMF:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Microsoft DMF";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.DMF_82:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Microsoft DMF (82-track)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XDF_35:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "IBM XDF";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.XDF_525:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "IBM XDF";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM23FD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 23FD";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM33FD_128:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 33FD (128 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM33FD_256:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 33FD (256 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM33FD_512:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 33FD (512 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM43FD_128:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 43FD (128 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM43FD_256:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 43FD (256 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM53FD_256:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 53FD (256 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM53FD_512:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 53FD (512 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.IBM53FD_1024:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "IBM 53FD (1024 bytes/sector)";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.RX01:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "DEC RX-01";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.RX02:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "DEC RX-02";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_525_SS_SD_40:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "BBC Micro 100K";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_525_SS_SD_80:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "BBC Micro 200K";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_525_SS_DD_40:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Acorn S";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_525_SS_DD_80:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Acorn M";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_525_DS_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Acorn L";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ACORN_35_DS_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Acorn Archimedes";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ATARI_525_SD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Atari single-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ATARI_525_ED:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Atari enhanced-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ATARI_525_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Atari double-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CBM_1540:
|
2016-09-14 16:05:35 +01:00
|
|
|
case CommonTypes.MediaType.CBM_1540_Ext:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Commodore 1540/1541";
|
|
|
|
|
break;
|
2016-09-14 16:05:35 +01:00
|
|
|
case CommonTypes.MediaType.CBM_1571:
|
|
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Commodore 1571";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CBM_35_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Commodore 1581";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CBM_AMIGA_35_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Amiga double-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.CBM_AMIGA_35_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Amiga high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.NEC_8_SD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "NEC single-sided";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.NEC_8_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "NEC double-sided";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.NEC_525_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "NEC high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.NEC_35_HD_8:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "NEC high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.NEC_35_HD_15:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "NEC floppy mode 3";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SHARP_525:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "Sharp";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.SHARP_35:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "Sharp";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_54:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-54";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_59:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-59";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_69_8:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_69_15:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_69_26:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "8\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-69";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_66:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-66";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_70:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-70";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_78:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_78_2:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-78";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_99_8:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_99_15:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_99_26:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-99";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_100:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-99";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_125:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-125";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_147:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "ECMA-147";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FDFORMAT_525_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "FDFORMAT double-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FDFORMAT_525_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" floppy";
|
|
|
|
|
DiscSubType = "FDFORMAT high-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FDFORMAT_35_DD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "FDFORMAT double-density";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.FDFORMAT_35_HD:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" floppy";
|
|
|
|
|
DiscSubType = "FDFORMAT high-density";
|
|
|
|
|
break;
|
* DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs:
* DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
* DiscImageChef.Metadata/DeviceReport.cs:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DeviceReport.cs:
* DiscImageChef.Metadata/DiscImageChef.Metadata.csproj:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DumpMedia.cs:
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Core/Checksum.cs:
* DiscImageChef/Commands/CreateSidecar.cs:
Moved checksum generation to a separate class.
* CICMMetadata:
Added support for ADIP.
* DiscImageChef.CommonTypes/MediaType.cs:
Added parameters of UDO media.
Moved DataPlay outside of Iomega, as it's not from that
manufacturer.
Added missing Exatape media and corrected 160m XL one.
Added SyJet media.
Added all ECMA defined magneto-optical (sectors calculated
from specifications, unchecked).
Added PD media.
Added Imation 320Gb RDX.
Added generic USB flash drives.
* DiscImageChef.Decoders/SCSI/Enums.cs:
Make enumerations public.
* DiscImageChef.Decoders/SCSI/Inquiry.cs:
* DiscImageChef.Devices/Device/Constructor.cs:
Trim space padded strings on SCSI INQUIRY.
* DiscImageChef.Devices/Device/ScsiCommands/MMC.cs:
Added PREVENT ALLOW MEDIUM REMOVAL.
Added START STOP UNIT.
* DiscImageChef.Devices/Device/ScsiCommands/NEC.cs:
Rename NEC methods.
* DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs:
Corrected Pioneer transfer length calculation.
* DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs:
Renamed Plextor methods.
* DiscImageChef.Devices/Device/ScsiCommands/SPC.cs:
Renamed SSC PREVENT ALLOW MEDIUM REMOVAL to uncollide with
MMC same name but different command.
* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
Set platform target to x86 (does it really matter?).
* DiscImageChef.Devices/Linux/Command.cs:
Reduced allocation for readlink() to current kernel
MAX_PATH.
* DiscImageChef.Devices/Linux/Enums.cs:
Modified Linux ioctl to 32-bit. Works on 64-bit also. Solves
commands not working on 32-bit environments.
* DiscImageChef.DiscImages/ZZZRawImage.cs:
Changed ECMA-184 and ECMA-183 enums.
* DiscImageChef.Metadata/Dimensions.cs:
Added all ECMA defined magneto-opticals.
Added PD media.
Added 320Gb RDX.
Corrected Exatape 160m XL.
Added Exatape 22m and 28m.
* DiscImageChef.Metadata/MediaType.cs:
Added 356mm magneto-optical media.
Changed ECMA-184 and ECMA-183 enums.
Added USB generic flash drive.
* DiscImageChef/Commands/DeviceInfo.cs:
Corrected SCSI INQUIRY naming.
Corrected SCSI MODE SENSE (6) parameters.
Reduced SCSI MODE SENSE timeout, some devices just get stuck
with unsupported MODE SENSE commanda and must be left to
timeout.
Changed FUJITSU vendor string comparison.
* DiscImageChef/Commands/MediaInfo.cs:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
Changed some error WriteLine() to debug ones. Too much
verbosity.
Added DVD media type decoding from PFI.
Found a drive that dumps ADIP, enabling it again (not
decoded).
* DiscImageChef/Commands/MediaScan.cs:
Added option to generate ImgBurn compatible log to
media-scan command.
* DiscImageChef/DiscImageChef.csproj:
Moved checksum generation to a separate class.
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Main.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Options.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
Added option to generate ImgBurn compatible log to media-scan
command.
2016-01-31 08:05:56 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_260:
|
|
|
|
|
case CommonTypes.MediaType.ECMA_260_Double:
|
|
|
|
|
DiscType = "356mm magneto-optical";
|
|
|
|
|
DiscSubType = "ECMA-260 / ISO 15898";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_183_512:
|
* DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs:
* DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
* DiscImageChef.Metadata/DeviceReport.cs:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DeviceReport.cs:
* DiscImageChef.Metadata/DiscImageChef.Metadata.csproj:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DumpMedia.cs:
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Core/Checksum.cs:
* DiscImageChef/Commands/CreateSidecar.cs:
Moved checksum generation to a separate class.
* CICMMetadata:
Added support for ADIP.
* DiscImageChef.CommonTypes/MediaType.cs:
Added parameters of UDO media.
Moved DataPlay outside of Iomega, as it's not from that
manufacturer.
Added missing Exatape media and corrected 160m XL one.
Added SyJet media.
Added all ECMA defined magneto-optical (sectors calculated
from specifications, unchecked).
Added PD media.
Added Imation 320Gb RDX.
Added generic USB flash drives.
* DiscImageChef.Decoders/SCSI/Enums.cs:
Make enumerations public.
* DiscImageChef.Decoders/SCSI/Inquiry.cs:
* DiscImageChef.Devices/Device/Constructor.cs:
Trim space padded strings on SCSI INQUIRY.
* DiscImageChef.Devices/Device/ScsiCommands/MMC.cs:
Added PREVENT ALLOW MEDIUM REMOVAL.
Added START STOP UNIT.
* DiscImageChef.Devices/Device/ScsiCommands/NEC.cs:
Rename NEC methods.
* DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs:
Corrected Pioneer transfer length calculation.
* DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs:
Renamed Plextor methods.
* DiscImageChef.Devices/Device/ScsiCommands/SPC.cs:
Renamed SSC PREVENT ALLOW MEDIUM REMOVAL to uncollide with
MMC same name but different command.
* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
Set platform target to x86 (does it really matter?).
* DiscImageChef.Devices/Linux/Command.cs:
Reduced allocation for readlink() to current kernel
MAX_PATH.
* DiscImageChef.Devices/Linux/Enums.cs:
Modified Linux ioctl to 32-bit. Works on 64-bit also. Solves
commands not working on 32-bit environments.
* DiscImageChef.DiscImages/ZZZRawImage.cs:
Changed ECMA-184 and ECMA-183 enums.
* DiscImageChef.Metadata/Dimensions.cs:
Added all ECMA defined magneto-opticals.
Added PD media.
Added 320Gb RDX.
Corrected Exatape 160m XL.
Added Exatape 22m and 28m.
* DiscImageChef.Metadata/MediaType.cs:
Added 356mm magneto-optical media.
Changed ECMA-184 and ECMA-183 enums.
Added USB generic flash drive.
* DiscImageChef/Commands/DeviceInfo.cs:
Corrected SCSI INQUIRY naming.
Corrected SCSI MODE SENSE (6) parameters.
Reduced SCSI MODE SENSE timeout, some devices just get stuck
with unsupported MODE SENSE commanda and must be left to
timeout.
Changed FUJITSU vendor string comparison.
* DiscImageChef/Commands/MediaInfo.cs:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
Changed some error WriteLine() to debug ones. Too much
verbosity.
Added DVD media type decoding from PFI.
Found a drive that dumps ADIP, enabling it again (not
decoded).
* DiscImageChef/Commands/MediaScan.cs:
Added option to generate ImgBurn compatible log to
media-scan command.
* DiscImageChef/DiscImageChef.csproj:
Moved checksum generation to a separate class.
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Main.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Options.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
Added option to generate ImgBurn compatible log to media-scan
command.
2016-01-31 08:05:56 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_183:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" magneto-optical";
|
|
|
|
|
DiscSubType = "ECMA-183";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_184_512:
|
* DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs:
* DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
* DiscImageChef.Metadata/DeviceReport.cs:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DeviceReport.cs:
* DiscImageChef.Metadata/DiscImageChef.Metadata.csproj:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DumpMedia.cs:
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Core/Checksum.cs:
* DiscImageChef/Commands/CreateSidecar.cs:
Moved checksum generation to a separate class.
* CICMMetadata:
Added support for ADIP.
* DiscImageChef.CommonTypes/MediaType.cs:
Added parameters of UDO media.
Moved DataPlay outside of Iomega, as it's not from that
manufacturer.
Added missing Exatape media and corrected 160m XL one.
Added SyJet media.
Added all ECMA defined magneto-optical (sectors calculated
from specifications, unchecked).
Added PD media.
Added Imation 320Gb RDX.
Added generic USB flash drives.
* DiscImageChef.Decoders/SCSI/Enums.cs:
Make enumerations public.
* DiscImageChef.Decoders/SCSI/Inquiry.cs:
* DiscImageChef.Devices/Device/Constructor.cs:
Trim space padded strings on SCSI INQUIRY.
* DiscImageChef.Devices/Device/ScsiCommands/MMC.cs:
Added PREVENT ALLOW MEDIUM REMOVAL.
Added START STOP UNIT.
* DiscImageChef.Devices/Device/ScsiCommands/NEC.cs:
Rename NEC methods.
* DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs:
Corrected Pioneer transfer length calculation.
* DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs:
Renamed Plextor methods.
* DiscImageChef.Devices/Device/ScsiCommands/SPC.cs:
Renamed SSC PREVENT ALLOW MEDIUM REMOVAL to uncollide with
MMC same name but different command.
* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
Set platform target to x86 (does it really matter?).
* DiscImageChef.Devices/Linux/Command.cs:
Reduced allocation for readlink() to current kernel
MAX_PATH.
* DiscImageChef.Devices/Linux/Enums.cs:
Modified Linux ioctl to 32-bit. Works on 64-bit also. Solves
commands not working on 32-bit environments.
* DiscImageChef.DiscImages/ZZZRawImage.cs:
Changed ECMA-184 and ECMA-183 enums.
* DiscImageChef.Metadata/Dimensions.cs:
Added all ECMA defined magneto-opticals.
Added PD media.
Added 320Gb RDX.
Corrected Exatape 160m XL.
Added Exatape 22m and 28m.
* DiscImageChef.Metadata/MediaType.cs:
Added 356mm magneto-optical media.
Changed ECMA-184 and ECMA-183 enums.
Added USB generic flash drive.
* DiscImageChef/Commands/DeviceInfo.cs:
Corrected SCSI INQUIRY naming.
Corrected SCSI MODE SENSE (6) parameters.
Reduced SCSI MODE SENSE timeout, some devices just get stuck
with unsupported MODE SENSE commanda and must be left to
timeout.
Changed FUJITSU vendor string comparison.
* DiscImageChef/Commands/MediaInfo.cs:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
Changed some error WriteLine() to debug ones. Too much
verbosity.
Added DVD media type decoding from PFI.
Found a drive that dumps ADIP, enabling it again (not
decoded).
* DiscImageChef/Commands/MediaScan.cs:
Added option to generate ImgBurn compatible log to
media-scan command.
* DiscImageChef/DiscImageChef.csproj:
Moved checksum generation to a separate class.
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Main.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Options.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
Added option to generate ImgBurn compatible log to media-scan
command.
2016-01-31 08:05:56 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_184:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "5.25\" magneto-optical";
|
|
|
|
|
DiscSubType = "ECMA-184";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_154:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" magneto-optical";
|
|
|
|
|
DiscSubType = "ECMA-154";
|
|
|
|
|
break;
|
2016-01-16 03:54:55 +00:00
|
|
|
case CommonTypes.MediaType.ECMA_201:
|
2016-01-01 00:01:42 +00:00
|
|
|
DiscType = "3.5\" magneto-optical";
|
|
|
|
|
DiscSubType = "ECMA-201";
|
|
|
|
|
break;
|
2016-02-04 19:50:43 +00:00
|
|
|
case CommonTypes.MediaType.FlashDrive:
|
* DiscImageChef.CommonTypes/MediaTypeFromSCSI.cs:
* DiscImageChef.CommonTypes/DiscImageChef.CommonTypes.csproj:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
* DiscImageChef.Metadata/DeviceReport.cs:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DeviceReport.cs:
* DiscImageChef.Metadata/DiscImageChef.Metadata.csproj:
Added command to guess drive and media parameters and output
an XML report of them.
* DiscImageChef/Commands/DumpMedia.cs:
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Core/Checksum.cs:
* DiscImageChef/Commands/CreateSidecar.cs:
Moved checksum generation to a separate class.
* CICMMetadata:
Added support for ADIP.
* DiscImageChef.CommonTypes/MediaType.cs:
Added parameters of UDO media.
Moved DataPlay outside of Iomega, as it's not from that
manufacturer.
Added missing Exatape media and corrected 160m XL one.
Added SyJet media.
Added all ECMA defined magneto-optical (sectors calculated
from specifications, unchecked).
Added PD media.
Added Imation 320Gb RDX.
Added generic USB flash drives.
* DiscImageChef.Decoders/SCSI/Enums.cs:
Make enumerations public.
* DiscImageChef.Decoders/SCSI/Inquiry.cs:
* DiscImageChef.Devices/Device/Constructor.cs:
Trim space padded strings on SCSI INQUIRY.
* DiscImageChef.Devices/Device/ScsiCommands/MMC.cs:
Added PREVENT ALLOW MEDIUM REMOVAL.
Added START STOP UNIT.
* DiscImageChef.Devices/Device/ScsiCommands/NEC.cs:
Rename NEC methods.
* DiscImageChef.Devices/Device/ScsiCommands/Pioneer.cs:
Corrected Pioneer transfer length calculation.
* DiscImageChef.Devices/Device/ScsiCommands/Plextor.cs:
Renamed Plextor methods.
* DiscImageChef.Devices/Device/ScsiCommands/SPC.cs:
Renamed SSC PREVENT ALLOW MEDIUM REMOVAL to uncollide with
MMC same name but different command.
* DiscImageChef.Devices/DiscImageChef.Devices.csproj:
Set platform target to x86 (does it really matter?).
* DiscImageChef.Devices/Linux/Command.cs:
Reduced allocation for readlink() to current kernel
MAX_PATH.
* DiscImageChef.Devices/Linux/Enums.cs:
Modified Linux ioctl to 32-bit. Works on 64-bit also. Solves
commands not working on 32-bit environments.
* DiscImageChef.DiscImages/ZZZRawImage.cs:
Changed ECMA-184 and ECMA-183 enums.
* DiscImageChef.Metadata/Dimensions.cs:
Added all ECMA defined magneto-opticals.
Added PD media.
Added 320Gb RDX.
Corrected Exatape 160m XL.
Added Exatape 22m and 28m.
* DiscImageChef.Metadata/MediaType.cs:
Added 356mm magneto-optical media.
Changed ECMA-184 and ECMA-183 enums.
Added USB generic flash drive.
* DiscImageChef/Commands/DeviceInfo.cs:
Corrected SCSI INQUIRY naming.
Corrected SCSI MODE SENSE (6) parameters.
Reduced SCSI MODE SENSE timeout, some devices just get stuck
with unsupported MODE SENSE commanda and must be left to
timeout.
Changed FUJITSU vendor string comparison.
* DiscImageChef/Commands/MediaInfo.cs:
Added method to calculate MediaType from SCSI parameters
(mode, density, medium type, device type, etc).
Changed some error WriteLine() to debug ones. Too much
verbosity.
Added DVD media type decoding from PFI.
Found a drive that dumps ADIP, enabling it again (not
decoded).
* DiscImageChef/Commands/MediaScan.cs:
Added option to generate ImgBurn compatible log to
media-scan command.
* DiscImageChef/DiscImageChef.csproj:
Moved checksum generation to a separate class.
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Main.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
* DiscImageChef/Options.cs:
Added command to guess drive and media parameters and output
an XML report of them.
Added preliminary command to dump media. Only SCSI for now.
CDs and tapes are not supported. Errors are blalanty
ignored. Options are incomplete. Not yet usable.
Added option to generate ImgBurn compatible log to media-scan
command.
2016-01-31 08:05:56 +00:00
|
|
|
DiscType = "USB flash drive";
|
|
|
|
|
DiscSubType = "USB flash drive";
|
|
|
|
|
break;
|
2016-02-04 19:50:43 +00:00
|
|
|
case CommonTypes.MediaType.SuperCDROM2:
|
|
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Super CD-ROM²";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.JaguarCD:
|
|
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "Atari Jaguar CD";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.ThreeDO:
|
|
|
|
|
DiscType = "CD";
|
|
|
|
|
DiscSubType = "3DO";
|
|
|
|
|
break;
|
2016-02-05 00:01:09 +00:00
|
|
|
case CommonTypes.MediaType.ZIP100:
|
|
|
|
|
DiscType = "Iomega ZIP";
|
|
|
|
|
DiscSubType = "Iomega ZIP100";
|
2016-04-19 02:11:47 +01:00
|
|
|
break;
|
2016-02-05 00:01:09 +00:00
|
|
|
case CommonTypes.MediaType.ZIP250:
|
|
|
|
|
DiscType = "Iomega ZIP";
|
|
|
|
|
DiscSubType = "Iomega ZIP250";
|
2016-04-19 02:11:47 +01:00
|
|
|
break;
|
2016-02-05 00:01:09 +00:00
|
|
|
case CommonTypes.MediaType.ZIP750:
|
|
|
|
|
DiscType = "Iomega ZIP";
|
|
|
|
|
DiscSubType = "Iomega ZIP750";
|
2016-04-19 02:11:47 +01:00
|
|
|
break;
|
2016-07-27 18:03:32 +01:00
|
|
|
case CommonTypes.MediaType.AppleProfile:
|
|
|
|
|
DiscType = "HDD";
|
|
|
|
|
DiscSubType = "Apple Profile";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.AppleWidget:
|
|
|
|
|
DiscType = "HDD";
|
|
|
|
|
DiscSubType = "Apple Widget";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.AppleHD20:
|
|
|
|
|
DiscType = "HDD";
|
|
|
|
|
DiscSubType = "Apple HD20";
|
|
|
|
|
break;
|
2016-08-02 18:09:24 +01:00
|
|
|
case CommonTypes.MediaType.PriamDataTower:
|
|
|
|
|
DiscType = "HDD";
|
|
|
|
|
DiscSubType = "Priam DataTower";
|
|
|
|
|
break;
|
2016-10-12 06:16:41 +01:00
|
|
|
case CommonTypes.MediaType.DDS1:
|
|
|
|
|
DiscType = "DDS";
|
|
|
|
|
DiscSubType = "DDS";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.DDS2:
|
|
|
|
|
DiscType = "DDS";
|
|
|
|
|
DiscSubType = "DDS-2";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.DDS3:
|
|
|
|
|
DiscType = "DDS";
|
|
|
|
|
DiscSubType = "DDS-3";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.DDS4:
|
|
|
|
|
DiscType = "DDS";
|
|
|
|
|
DiscSubType = "DDS-4";
|
|
|
|
|
break;
|
2017-05-14 22:09:36 +01:00
|
|
|
case CommonTypes.MediaType.PocketZip:
|
|
|
|
|
DiscType = "Iomega PocketZip";
|
|
|
|
|
DiscSubType = "Iomega PocketZip";
|
|
|
|
|
break;
|
2017-06-03 01:15:46 +01:00
|
|
|
case CommonTypes.MediaType.CompactFloppy:
|
|
|
|
|
DiscType = "3\" floppy";
|
|
|
|
|
DiscSubType = "Compact Floppy";
|
|
|
|
|
break;
|
|
|
|
|
case CommonTypes.MediaType.GENERIC_HDD:
|
|
|
|
|
DiscType = "HDD";
|
|
|
|
|
DiscSubType = "Unknown";
|
|
|
|
|
break;
|
2015-12-06 05:09:31 +00:00
|
|
|
default:
|
|
|
|
|
DiscType = "Unknown";
|
|
|
|
|
DiscSubType = "Unknown";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|