Loading...
Searching...
No Matches
consts.h
Go to the documentation of this file.
/*
* This file is part of the Aaru Data Preservation Suite.
* Copyright (c) 2019-2026 Natalia Portillo.
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBAARUFORMAT_CONSTS_H
#define LIBAARUFORMAT_CONSTS_H
#ifndef _MSC_VER
#pragma clang diagnostic push
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
#endif
#define DIC_MAGIC 0x544D52464D434944ULL
#define AARU_MAGIC 0x544D524655524141ULL
#define AARUF_VERSION 2
#define AARUF_VERSION_V1 1
#define AARUF_VERSION_V2 2
#define MAX_CACHE_SIZE 536870912ULL
#define LZMA_PROPERTIES_LENGTH 5
#define MAX_DDT_ENTRY_CACHE 16000000
#define SAMPLES_PER_SECTOR 588
#define MAX_FLAKE_BLOCK 4608
#define MIN_FLAKE_BLOCK 256
#define CD_XFIX_MASK 0xFF000000U
#define CD_DFIX_MASK 0x00FFFFFFU
#ifndef _MSC_VER
#pragma clang diagnostic pop
#endif
#endif // LIBAARUFORMAT_CONSTS_H