mirror of
https://github.com/aaru-dps/libaaruformat.git
synced 2025-12-16 19:24:40 +00:00
General refactor and cleanup.
This commit is contained in:
@@ -18,40 +18,40 @@
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
|
||||
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
|
||||
#endif
|
||||
|
||||
#ifndef LIBAARUFORMAT_CONSTS_H
|
||||
#define LIBAARUFORMAT_CONSTS_H
|
||||
|
||||
/** Magic identidier = "DICMFRMT". */
|
||||
#define DIC_MAGIC 0x544D52464D434944
|
||||
#define DIC_MAGIC 0x544D52464D434944
|
||||
/** Magic identidier = "AARUFRMT". */
|
||||
#define AARU_MAGIC 0x544D524655524141
|
||||
#define AARU_MAGIC 0x544D524655524141
|
||||
/** Image format version. A change in this number indicates an incompatible change to the format that prevents older
|
||||
* implementations from reading it correctly, if at all. */
|
||||
#define AARUF_VERSION 1
|
||||
#define AARUF_VERSION 1
|
||||
/** Maximum read cache size, 512MiB. */
|
||||
#define MAX_CACHE_SIZE 536870912
|
||||
#define MAX_CACHE_SIZE 536870912
|
||||
/** Size in bytes of LZMA properties. */
|
||||
#define LZMA_PROPERTIES_LENGTH 5
|
||||
/** Maximum number of entries for the DDT cache. */
|
||||
#define MAX_DDT_ENTRY_CACHE 16000000
|
||||
#define MAX_DDT_ENTRY_CACHE 16000000
|
||||
/** How many samples are contained in a RedBook sector. */
|
||||
#define SAMPLES_PER_SECTOR 588
|
||||
#define SAMPLES_PER_SECTOR 588
|
||||
/** Maximum number of samples for a FLAC block. Bigger than 4608 gives no benefit. */
|
||||
#define MAX_FLAKE_BLOCK 4608
|
||||
#define MAX_FLAKE_BLOCK 4608
|
||||
/** Minimum number of samples for a FLAC block. CUETools.Codecs.FLAKE does not support it to be smaller than 256. */
|
||||
#define MIN_FLAKE_BLOCK 256
|
||||
#define MIN_FLAKE_BLOCK 256
|
||||
/** This mask is to check for flags in CompactDisc suffix/prefix DDT */
|
||||
#define CD_XFIX_MASK 0xFF000000
|
||||
#define CD_XFIX_MASK 0xFF000000
|
||||
/** This mask is to check for position in CompactDisc suffix/prefix deduplicated block */
|
||||
#define CD_DFIX_MASK 0x00FFFFFF
|
||||
#define CD_DFIX_MASK 0x00FFFFFF
|
||||
|
||||
#define CRC64_ECMA_POLY 0xC96C5795D7870F42
|
||||
#define CRC64_ECMA_SEED 0xFFFFFFFFFFFFFFFF
|
||||
|
||||
#endif // LIBAARUFORMAT_CONSTS_H
|
||||
#endif // LIBAARUFORMAT_CONSTS_H
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
Reference in New Issue
Block a user