<trclass="memdesc:adbbd4387273589f1c76a5f5786607013"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Current image format major version (incompatible changes bump this). <br/></td></tr>
<trclass="memdesc:a25fd08252b97a0230d3efc899bddd240"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Size in bytes of the fixed LZMA properties header (lc/lp/pb + dictionary size). <br/></td></tr>
<trclass="memdesc:ac97c436bf02e6e7e7daea67d374f03cd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Maximum number of cached DDT entry descriptors retained in memory for fast duplicate detection. <br/></td></tr>
<trclass="memdesc:a44401191f17a7c09a05e57ff9e5cff24"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Red Book (CD‑DA) PCM samples per 2352‑byte sector: 44,100 Hz / 75 sectors per second = 588 samples. <br/></td></tr>
<trclass="memdesc:a207a31e861ea8e3a4f5ef52c13b42b3d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">FLAC maximum block size used for encoding audio sectors. <br/></td></tr>
<divclass="textblock"><p>Core public constants and compile‑time limits for the Aaru container format implementation. </p>
<p>This header exposes magic identifiers, format version selectors, resource limits, codec parameter bounds, and bit masks used across libaaruformat. All values are immutable interface contracts; changing them breaks backward compatibility unless a new format version is declared.</p>
<li>Version macros distinguish format generations (V1 C# / legacy CRC endianness, V2 current C implementation).</li>
<li>Cache and table size limits provide protective upper bounds against runaway memory consumption.</li>
<li>Audio constants (SAMPLES_PER_SECTOR, MIN/MAX_FLAKE_BLOCK) align with Red Book (CD‑DA) and FLAC encoding best practices.</li>
<li>CD_* masks assist with extracting flags / positional subfields in deduplicated Compact Disc sector tables.</li>
<li>CRC64 constants implement ECMA‑182 polynomial and standard seed, enabling deterministic end‑to‑end block integrity.</li>
</ul>
<p>Notes:</p><ul>
<li>Magic values are stored little‑endian on disk when written as 64‑bit integers; when inspecting raw bytes make sure to account for host endianness.</li>
<li>AARUF_VERSION must be incremented only when an incompatible on‑disk layout change is introduced.</li>
<li>MAX_DDT_ENTRY_CACHE is a soft upper bound sized to balance deduplication hit rate vs RAM; tune in future builds via configuration if adaptive heuristics are introduced.</li>
<li>The LZMA properties length (5) derives from the standard LZMA header (lc/lp/pb + dict size) and is constant for raw LZMA streams used here.</li>
<li>FLAC sample block guidance: empirical evaluation shows >4608 samples per block does not yield meaningful ratio gains for typical optical audio captures while increasing decode buffer size.</li>
</ul>
<p>Thread safety: All macros are compile‑time constants; no synchronization required. Portability: Constants chosen to fit within 64‑bit targets; arithmetic assumes two's complement. </p>
<pclass="definition">Definition in file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>Magic identifier for AaruFormat container (ASCII "AARUFRMT"). </p>
<p>Used in the primary header to assert correct file type. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00064">64</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>Current image format major version (incompatible changes bump this). </p>
<p>Readers should reject headers with a higher number unless explicitly forward compatible. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00068">68</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="identify_8c_source.html#l00163">aaruf_identify_stream()</a>, and <aclass="el"href="open_8c_source.html#l00223">aaruf_open()</a>.</p>
<p>First on‑disk version (C# implementation). </p>
<p>Quirk: CRC64 values were stored byte‑swapped relative to ECMA‑182 canonical output. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00071">71</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="verify_8c_source.html#l00130">aaruf_verify_image()</a>, <aclass="el"href="data_8c_source.html#l00071">process_data_block()</a>, <aclass="el"href="blocks_2dump_8c_source.html#l00107">process_dumphw_block()</a>, <aclass="el"href="optical_8c_source.html#l00111">process_tracks_block()</a>, <aclass="el"href="index__v1_8c_source.html#l00225">verify_index_v1()</a>, <aclass="el"href="index__v2_8c_source.html#l00227">verify_index_v2()</a>, and <aclass="el"href="index__v3_8c_source.html#l00408">verify_index_v3()</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00075">75</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="create_8c_source.html#l00279">aaruf_create()</a>, and <aclass="el"href="open_8c_source.html#l00223">aaruf_open()</a>.</p>
<p>Mask for extracting positional index (lower 24 bits) in Compact Disc suffix/prefix deduplicated block entries. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00102">102</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>Mask for extracting correction / fix flags in Compact Disc suffix/prefix DDT entries. </p>
<p>High 8 bits store status (see <aclass="el"href="enums_8h.html#a74e216af87b18a5fbf0204a52dd1bba0"title="Acquisition / content status for one or more sectors.">SectorStatus</a> / <aclass="el"href="enums_8h.html#ab72dc399e3946b3c40a5ad8c8e3254b7"title="Flags describing Compact Disc sector fix-up status.">CdFixFlags</a> relationships). </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00100">100</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>Magic identifier for legacy DiscImageChef container (ASCII "DICMFRMT"). </p>
<p>Retained for backward compatibility / migration tooling. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00061">61</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="identify_8c_source.html#l00163">aaruf_identify_stream()</a>, and <aclass="el"href="open_8c_source.html#l00223">aaruf_open()</a>.</p>
<p>Size in bytes of the fixed LZMA properties header (lc/lp/pb + dictionary size). </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00082">82</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>512 MiB chosen to prevent excessive resident memory while still enabling efficient sequential and moderate random access patterns. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00079">79</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="reference">Referenced by <aclass="el"href="create_8c_source.html#l00279">aaruf_create()</a>, and <aclass="el"href="open_8c_source.html#l00223">aaruf_open()</a>.</p>
<p>Maximum number of cached DDT entry descriptors retained in memory for fast duplicate detection. </p>
<p>At 16,000,000 entries with a compact structure, this caps hash_map overhead while covering large images. (Approx memory just for lookup bookkeeping: ~16 bytes * N ≈ 256 MB worst case; typical effective <50% of cap.) </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00087">87</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00094">94</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>CUETools.Codecs.FLAKE does not accept blocks smaller than 256 samples. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00096">96</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<p>Red Book (CD‑DA) PCM samples per 2352‑byte sector: 44,100 Hz / 75 sectors per second = 588 samples. </p>
<pclass="definition">Definition at line <aclass="el"href="consts_8h_source.html#l00090">90</a> of file <aclass="el"href="consts_8h_source.html">consts.h</a>.</p>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.14.0 </li>