Synchronize DataType with Aaru.

This commit is contained in:
2025-10-04 05:28:06 +01:00
parent 60111f7e80
commit 2ac2c6db7c
3 changed files with 148 additions and 138 deletions

View File

@@ -869,9 +869,9 @@ typedef enum
DvdTitleKeyDecrypted = 15, ///< Decrypted DVD sector title key, 5 bytes
DvdSectorInformation = 16, ///< DVD sector information, 1 bytes
DvdSectorNumber = 17, ///< DVD sector number, 3 bytes
DvdSectorIed = 18, ///< DVD sector ID error detection, 2 bytes
DvdSectorEdc = 19, ///< DVD sector EDC, 4 bytes
MaxSectorTag = DvdSectorEdc
DvdSectorIedAaru = 18, ///< DVD sector ID error detection, 2 bytes
DvdSectorEdcAaru = 19, ///< DVD sector EDC, 4 bytes
MaxSectorTag = DvdSectorEdcAaru
} SectorTagType;
/** @} */ /* end of SectorTags group */

View File

@@ -121,7 +121,15 @@ typedef enum
CdSectorPrefixCorrected = 76, ///< Compact Disc sector prefix (sync, header) corrected-only stored.
CdSectorSuffixCorrected = 77, ///< Compact Disc sector suffix (EDC, ECC P, ECC Q) corrected-only stored.
CompactDiscMode2Subheader = 78, ///< Compact Disc MODE 2 subheader.
CompactDiscLeadIn = 79 ///< Compact Disc leadin.
CompactDiscLeadIn = 79, ///< Compact Disc leadin.
DvdDiscKeyDecrypted = 80, ///< Decrypted DVD Disc Key
DvdSectorCprMai = 81, ///< DVD Copyright Management Information (CPR_MAI)
DvdSectorTitleKeyDecrypted = 82, ///< Decrypted DVD Title Key
DvdSectorId = 83, ///< DVD Identification Data (ID)
DvdSectorIed = 84, ///< DVD ID Error Detection Code (IED)
DvdSectorEdc = 85, ///< DVD Error Detection Code (EDC)
DvdSectorEccPi = 86, ///< DVD Error Correction Code (ECC) Parity of Inner Code (PI)
DvdEccBlockPo = 87 ///< DVD Error Correction Code (ECC) Parity of Outer Code (PO)
} DataType;
/**

View File

@@ -170,6 +170,8 @@ int32_t aaruf_get_media_tag_type_for_datatype(int32_t type)
return CD_MCN;
case CompactDiscLeadIn:
return CD_LeadIn;
case DvdDiscKeyDecrypted:
return DVD_DiscKey_Decrypted;
default:
return -1;
}