Code cleanup
This commit is contained in:
@@ -152,7 +152,7 @@ namespace SubChannelDecoder
|
|||||||
CDEG_Load_Color_Table_Additional_248_255
|
CDEG_Load_Color_Table_Additional_248_255
|
||||||
}
|
}
|
||||||
|
|
||||||
static readonly int[] offsets = new []
|
static readonly int[] offsets =
|
||||||
{ 0, 66, 125, 191, 100, 50, 150, 175,
|
{ 0, 66, 125, 191, 100, 50, 150, 175,
|
||||||
8, 33, 58, 83, 108, 133, 158, 183,
|
8, 33, 58, 83, 108, 133, 158, 183,
|
||||||
16, 41, 25, 91, 116, 141, 166, 75
|
16, 41, 25, 91, 116, 141, 166, 75
|
||||||
@@ -167,7 +167,7 @@ namespace SubChannelDecoder
|
|||||||
|
|
||||||
for (int pack = 0; pack < 4; pack++)
|
for (int pack = 0; pack < 4; pack++)
|
||||||
for (int column = 0; column < 24; column++)
|
for (int column = 0; column < 24; column++)
|
||||||
ms.WriteByte(subchannels[(pack*24)+offsets[column]]);
|
ms.WriteByte(subchannels[(pack * 24) + offsets[column]]);
|
||||||
|
|
||||||
ms.Seek(0, System.IO.SeekOrigin.Begin);
|
ms.Seek(0, System.IO.SeekOrigin.Begin);
|
||||||
byte[] packetized = ms.ToArray();
|
byte[] packetized = ms.ToArray();
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
2015-10-02 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Program.cs:
|
||||||
|
* CD_RW_Subchannel.cs:
|
||||||
|
* CRC16CCITTContext.cs:
|
||||||
|
Code cleanup
|
||||||
|
|
||||||
2015-10-02 Natalia Portillo <claunia@claunia.com>
|
2015-10-02 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* CD_RW_Subchannel.cs:
|
* CD_RW_Subchannel.cs:
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ namespace SubChannelDecoder
|
|||||||
Subchannel sub = UnpackSubchannel(sectorBytes, interleaved);
|
Subchannel sub = UnpackSubchannel(sectorBytes, interleaved);
|
||||||
|
|
||||||
Console.WriteLine("Sector {0}", sector);
|
Console.WriteLine("Sector {0}", sector);
|
||||||
|
|
||||||
Console.WriteLine("\tP: 0x{0:X2}{1:X2}{2:X2}{3:X2}{4:X2}{5:X2}{6:X2}{7:X2}{8:X2}{9:X2}{10:X2}{11:X2}",
|
Console.WriteLine("\tP: 0x{0:X2}{1:X2}{2:X2}{3:X2}{4:X2}{5:X2}{6:X2}{7:X2}{8:X2}{9:X2}{10:X2}{11:X2}",
|
||||||
sub.p[0], sub.p[1], sub.p[2], sub.p[3], sub.p[4], sub.p[5],
|
sub.p[0], sub.p[1], sub.p[2], sub.p[3], sub.p[4], sub.p[5],
|
||||||
sub.p[6], sub.p[7], sub.p[8], sub.p[9], sub.p[10], sub.p[11]);
|
sub.p[6], sub.p[7], sub.p[8], sub.p[9], sub.p[10], sub.p[11]);
|
||||||
|
|||||||
Reference in New Issue
Block a user