# buildTables
function buildTables(header)Build tables.
| Parameter | Type | Default | Description |
|---|---|---|---|
header | dynamic | — | header value consumed by this operation. |
src/miniquake2/format/cinematic.mlProvides miniquake2 format cinematic facilities for this project.
miniquake2/format/binary.ml as fbio → src/miniquake2/format/binary.mlminiquake2/format/types.ml as ft → src/miniquake2/format/types.mlfunction buildTables(header)Build tables.
| Parameter | Type | Default | Description |
|---|---|---|---|
header | dynamic | — | header value consumed by this operation. |
function buildTree(countRow)Build tree.
| Parameter | Type | Default | Description |
|---|---|---|---|
countRow | dynamic | — | countRow value consumed by this operation. |
function decompress(compressed, tables, maximumOutput)Decompress state.
| Parameter | Type | Default | Description |
|---|---|---|---|
compressed | dynamic | — | compressed value consumed by this operation. |
tables | dynamic | — | tables value consumed by this operation. |
maximumOutput | dynamic | — | maximumOutput value consumed by this operation. |
const HEADER_BYTES = 20 + HUFFMAN_COUNT_BYTESDefines the header bytes constant used by the miniquake2 format cinematic module.
const HUFFMAN_COUNT_BYTES = 256 * 256Defines the huffman count bytes constant used by the miniquake2 format cinematic module.
function parseHeader(data)Parse header.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function readFrame(data, offset, frameNumber, header, tables)Reads frame for the miniquake2 format cinematic workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
frameNumber | dynamic | — | frameNumber value consumed by this operation. |
header | dynamic | — | header value consumed by this operation. |
tables | dynamic | — | tables value consumed by this operation. |
function smallestNode(counts, used, count)Return the smallest node value.
| Parameter | Type | Default | Description |
|---|---|---|---|
counts | dynamic | — | counts value consumed by this operation. |
used | dynamic | — | used value consumed by this operation. |
count | dynamic | — | Number of items or units to process. |