Add raw DVD sector report parsing (#9)

This commit is contained in:
Rebecca Wallander
2025-04-24 17:08:16 +01:00
committed by Natalia Portillo
parent 32fceca4c4
commit 94d330fe88
5 changed files with 25 additions and 0 deletions

View File

@@ -292,6 +292,10 @@ public sealed class TestedMediasController : Controller
case nameof(testedMedia.HLDTSTReadRawDVDData): case nameof(testedMedia.HLDTSTReadRawDVDData):
buffer = testedMedia.HLDTSTReadRawDVDData; buffer = testedMedia.HLDTSTReadRawDVDData;
break;
case nameof(testedMedia.LiteOnReadRawDVDData):
buffer = testedMedia.LiteOnReadRawDVDData;
break; break;
case nameof(testedMedia.IdentifyData): case nameof(testedMedia.IdentifyData):
buffer = testedMedia.IdentifyData; buffer = testedMedia.IdentifyData;

View File

@@ -311,6 +311,12 @@
<dd class="col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.SupportsHLDTSTReadRawDVD) @Html.DisplayFor(model => model.SupportsHLDTSTReadRawDVD)
</dd> </dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SupportsLiteOnReadRawDVD)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.SupportsLiteOnReadRawDVD)
</dd>
<dt class="col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SupportsNECReadCDDA) @Html.DisplayNameFor(model => model.SupportsNECReadCDDA)
</dt> </dt>

View File

@@ -310,6 +310,12 @@
<dd class="col-sm-10"> <dd class="col-sm-10">
@Html.DisplayFor(model => model.SupportsHLDTSTReadRawDVD) @Html.DisplayFor(model => model.SupportsHLDTSTReadRawDVD)
</dd> </dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SupportsLiteOnReadRawDVD)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.SupportsLiteOnReadRawDVD)
</dd>
<dt class="col-sm-2"> <dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SupportsNECReadCDDA) @Html.DisplayNameFor(model => model.SupportsNECReadCDDA)
</dt> </dt>

View File

@@ -426,6 +426,12 @@ public sealed class ReportController : Controller
if(report.SCSI.ReadCapabilities.SupportsReadLong16 == true) if(report.SCSI.ReadCapabilities.SupportsReadLong16 == true)
scsiOneValue.Add("Device supports READ LONG (16) command."); scsiOneValue.Add("Device supports READ LONG (16) command.");
if(report.SCSI.ReadCapabilities.SupportsHLDTSTReadRawDVD == true)
scsiOneValue.Add("Device supports reading RAW DVD data using HL-DT-ST vendor command");
if(report.SCSI.ReadCapabilities.SupportsLiteOnReadRawDVD == true)
scsiOneValue.Add("Device supports reading RAW DVD data using Lite-On READ BUFFER command");
} }
else else
testedMedia = report.SCSI.RemovableMedias; testedMedia = report.SCSI.RemovableMedias;

View File

@@ -281,6 +281,9 @@ public static class TestedMedia
if(testedMedia.SupportsHLDTSTReadRawDVD == true) if(testedMedia.SupportsHLDTSTReadRawDVD == true)
mediaOneValue.Add("Device can use the HL-DT-ST vendor READ DVD (RAW) command with this medium"); mediaOneValue.Add("Device can use the HL-DT-ST vendor READ DVD (RAW) command with this medium");
if(testedMedia.SupportsLiteOnReadRawDVD == true)
mediaOneValue.Add("Device can use the Lite-On READ BUFFER (RAW) command with this medium");
if(testedMedia.SupportsNECReadCDDA == true) if(testedMedia.SupportsNECReadCDDA == true)
mediaOneValue.Add("Device can use the NEC vendor READ CD-DA command with this medium"); mediaOneValue.Add("Device can use the NEC vendor READ CD-DA command with this medium");