Files
Aaru.Server/DiscImageChef.Decoders/CD/ATIP.cs

729 lines
31 KiB
C#
Raw Normal View History

2015-10-19 02:40:30 +01:00
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : ATIP.cs
// Version : 1.0
// Author(s) : Natalia Portillo
//
// Component : Component
//
// Revision : $Revision$
// Last change by : $Author$
// Date : $Date$
//
// --[ Description ] ----------------------------------------------------------
//
// Description
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright (C) 2011-2015 Claunia.com
// ****************************************************************************/
// //$Id$
using System;
using DiscImageChef.Console;
using System.Text;
namespace DiscImageChef.Decoders.CD
{
/// <summary>
/// Information from the following standards:
/// ANSI X3.304-1997
/// T10/1048-D revision 9.0
/// T10/1048-D revision 10a
/// T10/1228-D revision 7.0c
/// T10/1228-D revision 11a
/// T10/1363-D revision 10g
/// T10/1545-D revision 1d
/// T10/1545-D revision 5
/// T10/1545-D revision 5a
/// T10/1675-D revision 2c
/// T10/1675-D revision 4
/// T10/1836-D revision 2g
/// </summary>
public static class ATIP
{
public struct CDATIP
{
/// <summary>
/// Bytes 1 to 0
/// Total size of returned session information minus this field
/// </summary>
public UInt16 DataLength;
/// <summary>
/// Byte 2
/// Reserved
/// </summary>
public byte Reserved1;
/// <summary>
/// Byte 3
/// Reserved
/// </summary>
public byte Reserved2;
/// <summary>
/// Byte 4, bits 7 to 4
/// Indicative target writing power
/// </summary>
public byte ITWP;
/// <summary>
/// Byte 4, bit 3
/// Set if DDCD
/// </summary>
public bool DDCD;
/// <summary>
/// Byte 4, bits 2 to 0
/// Reference speed
/// </summary>
public byte ReferenceSpeed;
/// <summary>
/// Byte 5, bit 7
/// Always unset
/// </summary>
public bool AlwaysZero;
/// <summary>
/// Byte 5, bit 6
/// Unrestricted media
/// </summary>
public bool URU;
/// <summary>
/// Byte 5, bits 5 to 0
/// Reserved
/// </summary>
public byte Reserved3;
/// <summary>
/// Byte 6, bit 7
/// Always set
/// </summary>
public bool AlwaysOne;
/// <summary>
/// Byte 6, bit 6
/// Set if rewritable (CD-RW or DDCD-RW)
/// </summary>
public bool DiscType;
/// <summary>
/// Byte 6, bits 5 to 3
/// Disc subtype
/// </summary>
public byte DiscSubType;
/// <summary>
/// Byte 6, bit 2
/// A1 values are valid
/// </summary>
public bool A1Valid;
/// <summary>
/// Byte 6, bit 1
/// A2 values are valid
/// </summary>
public bool A2Valid;
/// <summary>
/// Byte 6, bit 0
/// A3 values are valid
/// </summary>
public bool A3Valid;
/// <summary>
/// Byte 7
/// Reserved
/// </summary>
public byte Reserved4;
/// <summary>
/// Byte 8
/// ATIP Start time of Lead-In (Minute)
/// </summary>
public byte LeadInStartMin;
/// <summary>
/// Byte 9
/// ATIP Start time of Lead-In (Second)
/// </summary>
public byte LeadInStartSec;
/// <summary>
/// Byte 10
/// ATIP Start time of Lead-In (Frame)
/// </summary>
public byte LeadInStartFrame;
/// <summary>
/// Byte 11
/// Reserved
/// </summary>
public byte Reserved5;
/// <summary>
/// Byte 12
/// ATIP Last possible start time of Lead-Out (Minute)
/// </summary>
public byte LeadOutStartMin;
/// <summary>
/// Byte 13
/// ATIP Last possible start time of Lead-Out (Second)
/// </summary>
public byte LeadOutStartSec;
/// <summary>
/// Byte 14
/// ATIP Last possible start time of Lead-Out (Frame)
/// </summary>
public byte LeadOutStartFrame;
/// <summary>
/// Byte 15
/// Reserved
/// </summary>
public byte Reserved6;
/// <summary>
/// Bytes 16 to 18
/// A1 values
/// </summary>
public byte[] A1Values;
/// <summary>
/// Byte 19
/// Reserved
/// </summary>
public byte Reserved7;
/// <summary>
/// Bytes 20 to 22
/// A2 values
/// </summary>
public byte[] A2Values;
/// <summary>
/// Byte 23
/// Reserved
/// </summary>
public byte Reserved8;
/// <summary>
/// Bytes 24 to 26
/// A3 values
/// </summary>
public byte[] A3Values;
/// <summary>
/// Byte 27
/// Reserved
/// </summary>
public byte Reserved9;
/// <summary>
/// Bytes 28 to 30
/// S4 values
/// </summary>
public byte[] S4Values;
/// <summary>
/// Byte 31
/// Reserved
/// </summary>
public byte Reserved10;
}
public static CDATIP? Decode(byte[] CDATIPResponse)
2015-10-19 02:40:30 +01:00
{
2016-04-19 02:11:47 +01:00
if(CDATIPResponse == null)
2015-10-19 02:40:30 +01:00
return null;
CDATIP decoded = new CDATIP();
BigEndianBitConverter.IsLittleEndian = BitConverter.IsLittleEndian;
2016-04-19 02:11:47 +01:00
if(CDATIPResponse.Length != 32 && CDATIPResponse.Length != 28)
2015-10-19 02:40:30 +01:00
{
DicConsole.DebugWriteLine("CD ATIP decoder", "Expected CD ATIP size (32 bytes) is not received size ({0} bytes), not decoding", CDATIPResponse.Length);
return null;
}
decoded.DataLength = BigEndianBitConverter.ToUInt16(CDATIPResponse, 0);
decoded.Reserved1 = CDATIPResponse[2];
decoded.Reserved2 = CDATIPResponse[3];
decoded.ITWP = (byte)((CDATIPResponse[4] & 0xF0) >> 4);
decoded.DDCD = Convert.ToBoolean(CDATIPResponse[4] & 0x08);
decoded.ReferenceSpeed = (byte)(CDATIPResponse[4] & 0x07);
decoded.AlwaysZero = Convert.ToBoolean(CDATIPResponse[5] & 0x80);
decoded.URU = Convert.ToBoolean(CDATIPResponse[5] & 0x40);
decoded.Reserved3 = (byte)(CDATIPResponse[5] & 0x3F);
decoded.AlwaysOne = Convert.ToBoolean(CDATIPResponse[6] & 0x80);
decoded.DiscType = Convert.ToBoolean(CDATIPResponse[6] & 0x40);
decoded.DiscSubType = (byte)((CDATIPResponse[6] & 0x38) >> 3);
decoded.A1Valid = Convert.ToBoolean(CDATIPResponse[6] & 0x04);
decoded.A2Valid = Convert.ToBoolean(CDATIPResponse[6] & 0x02);
decoded.A3Valid = Convert.ToBoolean(CDATIPResponse[6] & 0x01);
decoded.Reserved4 = CDATIPResponse[7];
decoded.LeadInStartMin = CDATIPResponse[8];
decoded.LeadInStartSec = CDATIPResponse[9];
decoded.LeadInStartFrame = CDATIPResponse[10];
decoded.Reserved5 = CDATIPResponse[11];
decoded.LeadOutStartMin = CDATIPResponse[12];
decoded.LeadOutStartSec = CDATIPResponse[13];
decoded.LeadOutStartFrame = CDATIPResponse[14];
decoded.Reserved6 = CDATIPResponse[15];
decoded.A1Values = new byte[3];
decoded.A2Values = new byte[3];
decoded.A3Values = new byte[3];
Array.Copy(CDATIPResponse, 16, decoded.A1Values, 0, 3);
Array.Copy(CDATIPResponse, 20, decoded.A2Values, 0, 3);
Array.Copy(CDATIPResponse, 24, decoded.A3Values, 0, 3);
2015-10-19 02:40:30 +01:00
decoded.Reserved7 = CDATIPResponse[19];
decoded.Reserved8 = CDATIPResponse[23];
decoded.Reserved9 = CDATIPResponse[27];
2016-04-19 02:11:47 +01:00
if(CDATIPResponse.Length >= 32)
{
decoded.S4Values = new byte[3];
Array.Copy(CDATIPResponse, 28, decoded.S4Values, 0, 3);
decoded.Reserved10 = CDATIPResponse[31];
}
2015-10-19 02:40:30 +01:00
return decoded;
}
public static string Prettify(CDATIP? CDATIPResponse)
2015-10-19 02:40:30 +01:00
{
2016-04-19 02:11:47 +01:00
if(CDATIPResponse == null)
2015-10-19 02:40:30 +01:00
return null;
CDATIP response = CDATIPResponse.Value;
StringBuilder sb = new StringBuilder();
2016-04-19 02:11:47 +01:00
if(response.DDCD)
2015-10-19 02:40:30 +01:00
{
sb.AppendFormat("Indicative Target Writing Power: 0x{0:X2}", response.ITWP).AppendLine();
2016-04-19 02:11:47 +01:00
if(response.DiscType)
2015-10-19 02:40:30 +01:00
sb.AppendLine("Disc is DDCD-RW");
else
sb.AppendLine("Disc is DDCD-R");
2016-04-19 02:11:47 +01:00
switch(response.ReferenceSpeed)
2015-10-19 02:40:30 +01:00
{
case 2:
sb.AppendLine("Reference speed is 4x");
break;
case 3:
sb.AppendLine("Reference speed is 8x");
break;
default:
sb.AppendFormat("Reference speed set is unknown: {0}", response.ReferenceSpeed).AppendLine();
break;
}
sb.AppendFormat("ATIP Start time of Lead-in: 0x{0:X6}", (response.LeadInStartMin << 16) + (response.LeadInStartSec << 8) + response.LeadInStartFrame).AppendLine();
sb.AppendFormat("ATIP Last possible start time of Lead-out: 0x{0:X6}", (response.LeadOutStartMin << 16) + (response.LeadOutStartSec << 8) + response.LeadOutStartFrame).AppendLine();
sb.AppendFormat("S4 value: 0x{0:X6}", (response.S4Values[0] << 16) + (response.S4Values[1] << 8) + response.S4Values[2]).AppendLine();
}
else
{
sb.AppendFormat("Indicative Target Writing Power: 0x{0:X2}", response.ITWP & 0x07).AppendLine();
2016-04-19 02:11:47 +01:00
if(response.DiscType)
2015-10-19 02:40:30 +01:00
{
2016-04-19 02:11:47 +01:00
switch(response.DiscSubType)
2015-10-19 02:40:30 +01:00
{
case 0:
sb.AppendLine("Disc is CD-RW");
break;
case 1:
sb.AppendLine("Disc is High-Speed CD-RW");
break;
case 2:
sb.AppendLine("Disc is Ultra-Speed CD-RW");
break;
case 3:
sb.AppendLine("Disc is Ultra-Speed+ CD-RW");
break;
case 4:
sb.AppendLine("Disc is medium type B, low beta category (B-) CD-RW");
break;
case 5:
sb.AppendLine("Disc is medium type B, high beta category (B+) CD-RW");
break;
case 6:
sb.AppendLine("Disc is medium type C, low beta category (C-) CD-RW");
break;
case 7:
sb.AppendLine("Disc is medium type C, high beta category (C+) CD-RW");
break;
2015-10-19 02:40:30 +01:00
default:
sb.AppendFormat("Unknown CD-RW disc subtype: {0}", response.DiscSubType).AppendLine();
break;
}
2016-04-19 02:11:47 +01:00
switch(response.ReferenceSpeed)
2015-10-19 02:40:30 +01:00
{
case 1:
sb.AppendLine("Reference speed is 2x");
break;
default:
sb.AppendFormat("Reference speed set is unknown: {0}", response.ReferenceSpeed).AppendLine();
break;
}
}
else
{
sb.AppendLine("Disc is CD-R");
2016-04-19 02:11:47 +01:00
switch(response.DiscSubType)
2015-10-19 02:40:30 +01:00
{
case 0:
sb.AppendLine("Disc is normal speed (CLV) CD-R");
break;
case 1:
sb.AppendLine("Disc is high speed (CAV) CD-R");
break;
case 2:
sb.AppendLine("Disc is medium type A, low beta category (A-) CD-R");
break;
case 3:
sb.AppendLine("Disc is medium type A, high beta category (A+) CD-R");
break;
case 4:
sb.AppendLine("Disc is medium type B, low beta category (B-) CD-R");
break;
case 5:
sb.AppendLine("Disc is medium type B, high beta category (B+) CD-R");
break;
case 6:
sb.AppendLine("Disc is medium type C, low beta category (C-) CD-R");
break;
case 7:
sb.AppendLine("Disc is medium type C, high beta category (C+) CD-R");
break;
2015-10-19 02:40:30 +01:00
default:
sb.AppendFormat("Unknown CD-R disc subtype: {0}", response.DiscSubType).AppendLine();
break;
}
}
2016-04-19 02:11:47 +01:00
if(response.URU)
2015-10-19 02:40:30 +01:00
sb.AppendLine("Disc use is unrestricted");
else
sb.AppendLine("Disc use is restricted");
sb.AppendFormat("ATIP Start time of Lead-in: {0}:{1:D2}:{2:D2}", response.LeadInStartMin, response.LeadInStartSec, response.LeadInStartFrame).AppendLine();
sb.AppendFormat("ATIP Last possible start time of Lead-out: {0}:{1:D2}:{2:D2}", response.LeadOutStartMin, response.LeadOutStartSec, response.LeadOutStartFrame).AppendLine();
2015-10-19 02:40:30 +01:00
if(response.A1Valid)
sb.AppendFormat("A1 value: 0x{0:X6}", (response.A1Values[0] << 16) + (response.A1Values[1] << 8) + response.A1Values[2]).AppendLine();
if(response.A2Valid)
sb.AppendFormat("A2 value: 0x{0:X6}", (response.A2Values[0] << 16) + (response.A2Values[1] << 8) + response.A2Values[2]).AppendLine();
if(response.A3Valid)
sb.AppendFormat("A3 value: 0x{0:X6}", (response.A3Values[0] << 16) + (response.A3Values[1] << 8) + response.A3Values[2]).AppendLine();
if(response.S4Values != null)
sb.AppendFormat("S4 value: 0x{0:X6}", (response.S4Values[0] << 16) + (response.S4Values[1] << 8) + response.S4Values[2]).AppendLine();
2015-10-19 02:40:30 +01:00
}
2016-04-19 02:11:47 +01:00
if(response.LeadInStartMin == 97)
{
int type = response.LeadInStartFrame % 10;
int frm = response.LeadInStartFrame - type;
string manufacturer = "";
2016-04-19 02:11:47 +01:00
if(response.DiscType)
sb.AppendLine("Disc uses phase change");
else
{
if(type < 5)
sb.AppendLine("Disc uses long strategy type dye (Cyanine, AZO, etc...)");
else
sb.AppendLine("Disc uses short strategy type dye (Phthalocyanine, etc...)");
}
2016-04-19 02:11:47 +01:00
switch(response.LeadInStartSec)
{
case 15:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "TDK Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Ritek Co.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Mitsubishi Chemical Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "NAN-YA Plastics Corporation";
break;
case 16:
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Shenzen SG&Gast Digital Optical Discs";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Grand Advance Technology Ltd.";
break;
case 17:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Moser Baer India Limited";
break;
case 18:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Wealth Fair Investment Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Taroko International Co. Ltd.";
break;
case 20:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "CDA Datenträger Albrechts GmbH";
break;
case 21:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Grupo Condor S.L.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Bestdisc Technology Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Optical Disc Manufacturing Equipment";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Sound Sound Multi-Media Development Ltd.";
break;
case 22:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Woongjin Media Corp.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Seantram Technology Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Advanced Digital Media";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "EXIMPO";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "CIS Technology Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Hong Kong Digital Technology Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Acer Media Technology, Inc.";
break;
case 23:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Matsushita Electric Industrial Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Doremi Media Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Nacar Media s.r.l.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Audio Distributors Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Victor Company of Japan, Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Optrom Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Customer Pressing Oosterhout";
break;
case 24:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Taiyo Yuden Company Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "SONY Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Computer Support Italy s.r.l.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Unitech Japan Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "kdg mediatech AG";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Guann Yinn Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Harmonic Hall Optical Disc Ltd.";
break;
case 25:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "MPO";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Hitachi Maxell, Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Infodisc Technology Co. Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Vivastar AG";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "AMS Technology Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Xcitec Inc.";
break;
case 26:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Fornet International Pte Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "POSTECH Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "SKC Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Optical Disc Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "FUJI Photo Film Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Lead Data Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "CMC Magnetics Corporation";
break;
case 27:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Digital Storage Technology Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Plasmon Data systems Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Princo Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Pioneer Video Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Kodak Japan Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Mitsui Chemicals, Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Ricoh Company Ltd.";
break;
case 28:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Opti.Me.S. S.p.A.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Gigastore Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Multi Media Masters & Machinary SA";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Auvistar Industry Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "King Pro Mediatek Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Delphi Technology Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Friendly CD-Tek Co.";
break;
case 29:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Taeil Media Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Vanguard Disc Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Unidisc Technology Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Hile Optical Disc Technology Corp.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Viva Magnetics Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "General Magnetics Ltd.";
break;
case 30:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "CDA Datenträger Albrechts GmbH";
break;
case 31:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Ritek Co.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Grand Advance Technology Ltd.";
break;
case 32:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "TDK Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Prodisc Technology Inc.";
break;
case 34:
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Mitsubishi Chemical Corporation";
break;
case 42:
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Advanced Digital Media";
break;
case 45:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Fornet International Pte Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Unitech Japan Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Acer Media Technology, Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "CIS Technology Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Guann Yinn Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Xcitec Inc.";
break;
case 46:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Taiyo Yuden Company Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Hong Kong Digital Technology Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Multi Media Masters & Machinary SA";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Computer Support Italy s.r.l.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "FUJI Photo Film Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Auvistar Industry Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "CMC Magnetics Corporation";
break;
case 47:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Hitachi Maxell, Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Princo Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "POSTECH Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Ritek Co.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Prodisc Technology Inc.";
break;
case 48:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "Ricoh Company Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Kodak Japan Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Plasmon Data systems Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Pioneer Video Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Digital Storage Technology Co., Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Mitsui Chemicals, Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Lead Data Inc.";
break;
case 49:
2016-04-19 02:11:47 +01:00
if(frm == 00)
manufacturer = "TDK Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Gigastore Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "King Pro Mediatek Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "Opti.Me.S. S.p.A.";
2016-04-19 02:11:47 +01:00
if(frm == 40)
manufacturer = "Victor Company of Japan, Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 60)
manufacturer = "Matsushita Electric Industrial Co., Ltd.";
break;
case 50:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Vanguard Disc Inc.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Mitsubishi Chemical Corporation";
2016-04-19 02:11:47 +01:00
if(frm == 30)
manufacturer = "CDA Datenträger Albrechts GmbH";
break;
case 51:
2016-04-19 02:11:47 +01:00
if(frm == 10)
manufacturer = "Grand Advance Technology Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 20)
manufacturer = "Infodisc Technology Co. Ltd.";
2016-04-19 02:11:47 +01:00
if(frm == 50)
manufacturer = "Hile Optical Disc Technology Corp.";
break;
}
2016-04-19 02:11:47 +01:00
if(manufacturer != "")
sb.AppendFormat("Disc manufactured by: {0}", manufacturer).AppendLine();
}
2015-10-19 02:40:30 +01:00
return sb.ToString();
}
public static string Prettify(byte[] CDATIPResponse)
2015-10-19 02:40:30 +01:00
{
CDATIP? decoded = Decode(CDATIPResponse);
return Prettify(decoded);
2015-10-19 02:40:30 +01:00
}
}
}