19#ifndef LIBAARUFORMAT_ENUMS_H
20#define LIBAARUFORMAT_ENUMS_H
23#pragma clang diagnostic push
24#pragma ide diagnostic ignored "OCUnusedGlobalDeclarationInspection"
346#pragma clang diagnostic pop
ErasureCodingGroupType
Identifies which protection group a stripe belongs to.
@ kECGroupMetadata
Metadata/media tag blocks.
@ kECGroupIndex
Index block (K=1, M replicas).
@ kECGroupDdtPrimary
Primary DDT (K=1, M replicas).
@ kECGroupData
User data blocks (DBLK).
@ kECGroupDdtSecondary
Secondary DDT subtables.
BlockType
List of known block types contained in an Aaru image.
@ IndexBlock3
Block containing the index v3.
@ ChecksumBlock
Block containing contents checksums.
@ DataBlock
Block containing data.
@ TapePartitionBlock
Block containing list of partitions for a tape image.
@ IndexBlock2
Block containing the index v2.
@ GeometryBlock
Block containing logical geometry.
@ DeDuplicationTableSecondary
Block containing a secondary deduplication table (v2).
@ SnapshotBlock
Block containing a snapshot index (reserved / TODO).
@ AaruMetadataJsonBlock
Block containing JSON version of Aaru Metadata.
@ CicmBlock
Block containing CICM XML metadata.
@ ParentBlock
Block describing how to locate the parent image (reserved / TODO).
@ IndexBlock
Block containing the index (v1).
@ DeDuplicationTable2
Block containing a deduplication table v2.
@ TapeFileBlock
Block containing list of files for a tape image.
@ DeDuplicationTable
Block containing a deduplication table (v1).
@ DeDuplicationTableSAlpha
Block containing a secondary deduplication table (v2) (mistake).
@ DumpHardwareBlock
Block containing an array of hardware used to create the image.
@ MetadataBlock
Block containing metadata.
@ DataPositionMeasurementBlock
Block containing data position measurements (reserved / TODO).
@ TracksBlock
Block containing optical disc tracks.
@ FluxDataBlock
Block containing flux data metadata.
@ ErasureCodingMapBlock
Block containing erasure coding stripe map and recovery metadata.
@ DataStreamPayloadBlock
Block containing compressed data stream payload (e.g., flux data, bitstreams).
SectorStatus
Acquisition / content status for one or more sectors.
@ SectorStatusDumped
Sector(s) successfully dumped without error.
@ SectorStatusNotDumped
Sector(s) not yet acquired during image dumping.
@ SectorStatusGenerable
Content can be generated using a known algorithm.
@ SectorStatusTwin
Pointer references a twin sector table.
@ SectorStatusUnrecorded
Sector physically unrecorded; repeated reads non-deterministic.
@ SectorStatusUnencrypted
Content originally encrypted but stored decrypted in image.
@ SectorStatusEncrypted
Content encrypted and stored encrypted in image.
@ SectorStatusMode2Form2NoCrc
Suffix matches MODE 2 Form 2 but CRC empty/missing.
@ SectorStatusMode1Correct
Valid MODE 1 data with regenerable suffix/prefix.
@ SectorStatusMode2Form2Ok
Suffix matches MODE 2 Form 2 with valid CRC.
@ SectorStatusErrored
Error during dumping; data may be incomplete or corrupt.
@ SectorStatusMode2Form1Ok
Suffix verified/regenerable for MODE 2 Form 1.
FeaturesCompatibleRo
Read-only compatible feature flags for AaruHeader V2.
@ AARU_FEATURE_ROCOMPAT_ERASURE
Image contains erasure coding parity blocks and recovery metadata.
ErasureCodingAlgorithm
Erasure coding algorithms supported by the ECMB.
@ kErasureCodingRsVandermonde
Reed-Solomon with Vandermonde generator matrix over GF(2^8).
@ kErasureCodingXor
Simple XOR parity (M must be 1).
FeaturesIncompatible
Incompatible feature flags for AaruHeader V2.
@ AARU_FEATURE_INCOMPAT_ZSTD
Image contains Zstandard-compressed blocks.
CdFixFlags
Flags describing Compact Disc sector fix-up status.
@ Correct
Sector(s) contain valid MODE 1 data with regenerable suffix/prefix.
@ Mode2Form2Ok
Sector suffix valid for MODE 2 Form 2 with correct CRC.
@ Mode2Form1Ok
Sector suffix valid for MODE 2 Form 1; regenerable.
@ NotDumped
Sector(s) have not yet been dumped.
@ Mode2Form2NoCrc
Sector suffix valid for MODE 2 Form 2 but CRC absent/empty.
XmlMediaType
Enumeration of media types defined in CICM metadata.
@ AudioMedia
Media that can only store data when modulated to audio.
@ OpticalDisc
Purely optical discs.
@ BlockMedia
Media that is physically block-based or abstracted like that.
@ LinearMedia
Media that can be accessed by-byte or by-bit, like chips.
ChecksumAlgorithm
Supported checksum / hash algorithms.
@ SpamSum
SpamSum (context-triggered piecewise hash).
@ Invalid
Invalid / unspecified algorithm.
TrackType
Track (partitioning element) types for optical media.
@ kTrackTypeCdMode2Form2
Compact Disc Mode 2 Form 2 data track.
@ kTrackTypeData
Generic data track (not further specified).
@ kTrackTypeCdMode2Form1
Compact Disc Mode 2 Form 1 data track.
@ kTrackTypeAudio
Audio track.
@ kTrackTypeCdMode2Formless
Compact Disc Mode 2 (formless) data track.
@ kTrackTypeCdMode1
Compact Disc Mode 1 data track.
DataType
List of known data types stored within an Aaru image.
@ kDataTypeAacsLbaExtents
AACS LBA extents.
@ kDataTypeExtendedCsd
MultiMediaCard Extended CSD register.
@ kDataTypeCdMcn
Compact Disc Media Catalogue Number (lead‑in, 13 ASCII bytes).
@ kDataTypeErasureParityDdt
Erasure coding parity shard for DDT secondary blocks.
@ kDataTypeMmcCsd
MultiMediaCard CSD register.
@ kDataTypeErasureParityDdtPrimary
Erasure coding parity replica for DDT primary block.
@ kDataTypeMmcCid
MultiMediaCard CID register.
@ kDataTypeBlurayDi
Blu-ray Disc Information (DI).
@ kDataTypeUsbDescriptors
USB descriptors set.
@ kDataTypeDiscControlBlock
DVD Disc Control Block.
@ kDataTypeBitstreamData
Bitstream data.
@ kDataTypeAacsVolumeUniqueKey
AACS Volume Unique Key.
@ kDataTypeCdFirstTrackPregap
Compact Disc first track pre-gap.
@ kDataTypeDvdTitleKeyDecrypted
Decrypted DVD Title Key.
@ kDataTypeBlurayDds
Blu-ray Disc Definition Structure (DDS).
@ kDataTypeDvdSectorId
DVD Identification Data (ID).
@ kDataTypeBluraySpareArea
Blu-ray spare area information.
@ kDataTypeXboxSecuritySector
Xbox Security Sector.
@ kDataTypeDvdDiscKey
DVD disc key.
@ kDataTypeHddvdMediumStatus
HD DVD medium status.
@ kDataTypeWiiUDiscKey
Nintendo Wii U disc key (16 bytes, from non-readable disc area).
@ kDataTypeWiiPartitionKeyMap
Nintendo Wii partition-to-key mapping with regions.
@ kDataTypeSdCsd
Secure Digital CSD register.
@ kDataTypeAppleSonyTag
Apple Sony (12‑byte) tag.
@ kDataTypeDvdSectorEccPi
DVD Error Correction Code (ECC) Parity of Inner Code (PI).
@ kDataTypeCdText
Compact Disc lead-in CD-Text.
@ kDataTypeCdSectorSuffix
Compact Disc sector suffix (EDC, ECC P, ECC Q).
@ kDataTypeAacsMediaIdentifier
AACS media identifier.
@ kDataTypeBlurayCartridgeStatus
Blu-ray cartridge status.
@ kDataTypeNgcwJunkMap
Nintendo GameCube/Wii junk region map with LFG seeds.
@ kDataTypePs3EncryptionMap
PS3 encryption region map (serialized from sector 0).
@ kDataTypeAacsMkb
AACS Media Key Block (MKB).
@ kDataTypeDvddlLayerCapacity
DVD dual-layer capacity.
@ kDataTypeDvdMkb
DVD Media Key Block (MKB).
@ kDataTypeDvdCmi
DVD lead-in Copyright Management Information (CMI).
@ kDataTypeMmcDiscInformation
MMC disc information.
@ kDataTypeErasureParityIndex
Erasure coding parity replica for index block.
@ kDataTypeDvdRamSpareArea
DVD-RAM spare area information.
@ kDataTypeDvddlMiddleZoneAddress
DVD dual-layer middle zone address.
@ kDataTypeFluxData
Flux data.
@ kDataTypePs3Data1
PS3 data1 key (16 bytes, from disc).
@ kDataTypeXboxDmi
Xbox DMI.
@ kDataTypeWiiUPartitionKeyMap
Nintendo Wii U partition-to-key mapping with regions.
@ kDataTypeSdOcr
Secure Digital OCR register.
@ kDataTypeScsiModeSense6
SCSI MODE SENSE (6) response.
@ kDataTypeDvddlJumpIntervalSize
DVD dual-layer jump interval size.
@ kDataTypeCdPma
Compact Disc Power Management Area (PMA).
@ kDataTypePs3Pic
PS3 PIC data (115 bytes, from disc lead-in).
@ kDataTypeMmcOcr
MultiMediaCard OCR register.
@ kDataTypeSessionInfo
Compact Disc session information.
@ kDataTypeCdSubchannel
Compact Disc subchannel data.
@ kDataTypeDvdPfi2ndLayer
DVD Physical Format Information for the second layer.
@ kDataTypeCdSectorSuffixCorrected
Compact Disc sector suffix (EDC, ECC P, ECC Q) corrected-only stored.
@ kDataTypeBdSectorEdc
Blu-ray Sector EDC.
@ kDataTypePcmciaCis
PCMCIA Card Information Structure (CIS).
@ kDataTypeFullToc
Compact Disc full Table of Contents.
@ kDataTypeDvdSectorIed
DVD ID Error Detection Code (IED).
@ kDataTypeDvdMediaIdentifier
DVD media identifier.
@ kDataTypeAtaIdentify
ATA IDENTIFY DEVICE data.
@ kDataTypeCdLeadIn
Compact Disc lead‑in.
@ kDataTypeAacsDataKeys
AACS data keys.
@ kDataTypeDvdSectorCprMai
DVD Copyright Management Information (CPR_MAI).
@ kDataTypeSdScr
Secure Digital SCR register.
@ kDataTypeDvdrRmd
DVD-R RMD (Recording Management Data).
@ kDataTypeDvdRamDds
DVD-RAM Disc Definition Structure (DDS).
@ kDataTypeDvdDmi
DVD Disc Manufacturing Information (DMI).
@ kDataTypeAacsMediaKey
AACS Media Key.
@ kDataTypePriamDataTowerTag
Priam Data Tower (24‑byte) tag.
@ kDataTypeMmcTrackResourcesInformation
MMC track resources information.
@ kDataTypePs3Data2
PS3 data2 key (16 bytes, from disc).
@ kDataTypeMmcWriteProtection
MMC write-protection data.
@ kDataTypeDvddlManualLayerJumpLba
DVD dual-layer manual layer jump LBA.
@ kDataTypeXboxPfi
Xbox Physical Format Information (PFI).
@ kDataTypeDvdAdip
DVD Address In Pregroove (ADIP).
@ kDataTypeErasureParityMeta
Erasure coding parity shard for metadata blocks.
@ kDataTypeMmcPowResourcesInformation
MMC POW (Persistent Optical Write?) resources information.
@ kDataTypeDvdrMediaIdentifier
DVD-R media identifier.
@ kDataTypeAacsVolumeIdentifier
AACS volume identifier.
@ kDataTypeCprmMkb
CPRM Media Key Block (MKB).
@ kDataTypeDvdPfi
DVD Physical Format Information.
@ kDataTypeScsiModeSense10
SCSI MODE SENSE (10) response.
@ kDataTypeScsiInquiry
SCSI INQUIRY response.
@ kDataTypePs3DiscKey
PS3 derived disc key (16 bytes).
@ kDataTypeAacsSerialNumber
AACS serial number.
@ kDataTypeCdAtip
Compact Disc Absolute Time In Pregroove (ATIP).
@ kDataTypeDvdrPfi
DVD-R Physical Format Information.
@ kDataTypeUserData
User (main) data.
@ kDataTypeCdToc
Compact Disc partial Table of Contents.
@ kDataTypeDvdSectorEdc
DVD Error Detection Code (EDC).
@ kDataTypeDvdRamMediumStatus
DVD-RAM medium status.
@ kDataTypeFloppyWriteProtect
Floppy write-protect status.
@ kDataTypeScsiModePage2A
SCSI MODE PAGE 2Ah.
@ kDataTypeErasureParity
Erasure coding parity shard for data blocks.
@ kDataTypeDvdEccBlockPo
DVD Error Correction Code (ECC) Parity of Outer Code (PO).
@ kDataTypeAppleProfileTag
Apple Profile (20‑byte) tag.
@ kDataTypeHybridRecognizedLayers
Recognized layers (hybrid media).
@ kDataTypeBlurayBca
Blu-ray Burst Cutting Area (BCA).
@ kDataTypeHddvdCpi
HD DVD Copy Protection Information (CPI).
@ kDataTypeCdLeadOut
Compact Disc lead‑out.
@ kDataTypeCdSubHeader
Compact Disc MODE 2 subheader.
@ kDataTypeDvdBca
DVD Burst Cutting Area (BCA).
@ kDataTypeFloppyLeadOut
Floppy lead‑out data.
@ kDataTypeAtapiIdentify
ATAPI IDENTIFY PACKET DEVICE data.
@ kDataTypeCdSectorPrefix
Compact Disc sector prefix (sync, header).
@ kDataTypeCdSectorPrefixCorrected
Compact Disc sector prefix (sync, header) corrected-only stored.
@ kDataTypeSdCid
Secure Digital CID register.
@ kDataTypeDvdDiscKeyDecrypted
Decrypted DVD Disc Key.
@ kDataTypeDvdrPreRecordedInfo
DVD-R pre‑recorded information.
FeaturesCompatible
Bit-mask of optional, backward-compatible features stored in an image.
@ AARU_FEATURE_RW_BLAKE3
BLAKE3 checksum is present (read/write support for BLAKE3 hashes).
AaruformatStatus
Status / error codes specific to libaaruformat.
@ AARUF_STATUS_INVALID_CONTEXT
Provided context/handle is invalid.
CompressionType
List of known compression types.
@ kCompressionLzmaCst
LZMA applied to Claunia Subchannel Transform processed data.
@ kCompressionLzma
LZMA compression.
@ kCompressionNone
Not compressed.
@ kCompressionZstd
Zstandard compression.
@ kCompressionZstdCst
Zstandard applied to Claunia Subchannel Transform processed data.
@ kCompressionFlac
FLAC compression.