# boolText
function boolText(value)Implements the `boolText` operation for `miniquake.render_evidence` (bool text).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `boolText`. |
src/miniquake/render_evidence.mlminiquake/build_info.ml as buildInfo → src/miniquake/build_info.mlminiquake/compat_diagnostics.ml as diagnostics → src/miniquake/compat_diagnostics.mlminiquake/native.ml as native → src/miniquake/native.mlminiquake/render/gl11.ml as gl → src/miniquake/render/gl11.mlminiquake/screen.ml as screen → src/miniquake/screen.mlstd/fs.ml as fs → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/fs.ml external dependencyfunction boolText(value)Implements the `boolText` operation for `miniquake.render_evidence` (bool text).
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed by `boolText`. |
function captured()Implements the `captured` operation for `miniquake.render_evidence` (captured).
captureDoneTracks the module-level capture done state owned by `miniquake.render_evidence`.
function captureIfRequested(frameNumber, width, height)Implements the `captureIfRequested` operation for `miniquake.render_evidence` (capture if requested).
| Parameter | Type | Default | Description |
|---|---|---|---|
frameNumber | dynamic | — | The frame number input consumed by `captureIfRequested`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
capturePrefixTracks the module-level capture prefix state owned by `miniquake.render_evidence`.
captureRequestedTracks the module-level capture requested state owned by `miniquake.render_evidence`.
captureResultTracks the module-level capture result state owned by `miniquake.render_evidence`.
captureTargetFrameTracks the module-level capture target frame state owned by `miniquake.render_evidence`.
function configure(prefix, targetFrame)Implements the `configure` operation for `miniquake.render_evidence` (configure).
| Parameter | Type | Default | Description |
|---|---|---|---|
prefix | dynamic | — | The prefix input consumed by `configure`. |
targetFrame | dynamic | — | The target frame input consumed by `configure`. |
const EVIDENCE_SCHEMA = 1Defines the evidence schema value used by `miniquake.render_evidence`.
const FNV_OFFSET = 2166136261Defines the fnv offset value used by `miniquake.render_evidence`.
const FNV_PRIME = 16777619Defines the fnv prime value used by `miniquake.render_evidence`.
inline function hashByte(state, value)Returns whether `miniquake.render_evidence` has h byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable `miniquake.render_evidence` state used by `hashByte`. |
value | dynamic | — | Value consumed by `hashByte`. |
function hashBytes(data)Fold bytes into the deterministic rolling hash.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
function lastResult()Return last result for the active module state.
function nonBlackPixels(rgba)Implements the `nonBlackPixels` operation for `miniquake.render_evidence` (non black pixels).
| Parameter | Type | Default | Description |
|---|---|---|---|
rgba | dynamic | — | The rgba input consumed by `nonBlackPixels`. |
function reset()Implements the `reset` operation for `miniquake.render_evidence` (reset).
const SAMPLE_GRID = 16Defines the sample grid value used by `miniquake.render_evidence`.
function sampleCoordinate(cell, extent, gridSize)Build deterministic test data for coordinate.
| Parameter | Type | Default | Description |
|---|---|---|---|
cell | dynamic | — | The cell input consumed by `sampleCoordinate`. |
extent | dynamic | — | The extent input consumed by `sampleCoordinate`. |
gridSize | dynamic | — | Size of the requested data or resource. |
function samplePixelHash(rgba, width, height, gridSize)Build deterministic test data for pixel hash.
| Parameter | Type | Default | Description |
|---|---|---|---|
rgba | dynamic | — | The rgba input consumed by `samplePixelHash`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
gridSize | dynamic | — | Size of the requested data or resource. |
function shouldCapture(frameNumber)Report whether should capture.
| Parameter | Type | Default | Description |
|---|---|---|---|
frameNumber | dynamic | — | The frame number input consumed by `shouldCapture`. |
function summaryJson(frameNumber, width, height, pixelBytes, tgaBytes, pixelHash, tgaHash, sampleHash, nonBlack, imagePath)Implements the `summaryJson` operation for `miniquake.render_evidence` (summary json).
| Parameter | Type | Default | Description |
|---|---|---|---|
frameNumber | dynamic | — | The frame number input consumed by `summaryJson`. |
width | dynamic | — | Requested width in pixels or data units. |
height | dynamic | — | Requested height in pixels or data units. |
pixelBytes | dynamic | — | Byte data consumed by the operation. |
tgaBytes | dynamic | — | Byte data consumed by the operation. |
pixelHash | dynamic | — | The pixel hash input consumed by `summaryJson`. |
tgaHash | dynamic | — | The tga hash input consumed by `summaryJson`. |
sampleHash | dynamic | — | The sample hash input consumed by `summaryJson`. |
nonBlack | dynamic | — | The non black input consumed by `summaryJson`. |
imagePath | dynamic | — | Filesystem path used by the operation. |
function summaryPath(prefix)Return summary path derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
prefix | dynamic | — | The prefix input consumed by `summaryPath`. |
function tgaPath(prefix)Return tga path derived from the active module state.
| Parameter | Type | Default | Description |
|---|---|---|---|
prefix | dynamic | — | The prefix input consumed by `tgaPath`. |