libaaruformat
1.0
Aaru Data Preservation Suite - Format Library
Toggle main menu visibility
Loading...
Searching...
No Matches
consts.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Aaru Data Preservation Suite.
3
* Copyright (c) 2019-2026 Natalia Portillo.
4
*
5
* This library is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU Lesser General Public License as
7
* published by the Free Software Foundation; either version 2.1 of the
8
* License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful, but
11
* WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef LIBAARUFORMAT_CONSTS_H
20
#define LIBAARUFORMAT_CONSTS_H
21
22
#ifdef __clang__
23
#pragma clang diagnostic push
24
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
25
#endif
26
58
61
#define DIC_MAGIC 0x544D52464D434944ULL
64
#define AARU_MAGIC 0x544D524655524141ULL
65
68
#define AARUF_VERSION 2
71
#define AARUF_VERSION_V1 1
75
#define AARUF_VERSION_V2 2
76
79
#define MAX_CACHE_SIZE 536870912ULL
80
83
#define MAX_HEADER_CACHE_SIZE 8388608ULL
84
86
#define LZMA_PROPERTIES_LENGTH 5
87
91
#define MAX_DDT_ENTRY_CACHE 16000000
92
94
#define SAMPLES_PER_SECTOR 588
95
98
#define MAX_FLAKE_BLOCK 4608
100
#define MIN_FLAKE_BLOCK 256
101
104
#define CD_XFIX_MASK 0xFF000000U
105
108
#define AARUF_KNOWN_INCOMPAT_FEATURES 0x1ULL
111
#define AARUF_KNOWN_ROCOMPAT_FEATURES 0x1ULL
114
#define AARUF_KNOWN_COMPAT_FEATURES 0x1ULL
116
#define CD_DFIX_MASK 0x00FFFFFFU
117
119
#define AARU_RECOVERY_FOOTER_MAGIC 0x52464D4345525641ULL
120
121
#ifdef __clang__
122
#pragma clang diagnostic pop
123
#endif
124
125
#endif
// LIBAARUFORMAT_CONSTS_H
include
aaruformat
consts.h
Generated by
1.18.0