libaaruformat 1.0 Aaru Data Preservation Suite - Format Library

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-2025 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#ifndef _MSC_VER
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
82#define LZMA_PROPERTIES_LENGTH 5
83
87#define MAX_DDT_ENTRY_CACHE 16000000
88
90#define SAMPLES_PER_SECTOR 588
91
94#define MAX_FLAKE_BLOCK 4608
96#define MIN_FLAKE_BLOCK 256
97
100#define CD_XFIX_MASK 0xFF000000U
102#define CD_DFIX_MASK 0x00FFFFFFU
103
104#ifndef _MSC_VER
105#pragma clang diagnostic pop
106#endif
107
108#endif // LIBAARUFORMAT_CONSTS_H