@carbonenginejs/runtime-resource 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +5 -3
- package/README.md +1 -1
- package/dist/CjsResourceSource.js +9 -0
- package/dist/CjsResourceSource.js.map +1 -1
- package/dist/format/CjsFormat.js +5 -0
- package/dist/format/CjsFormat.js.map +1 -1
- package/dist/formats/black/core/CjsBlackBinaryReader.js +4 -0
- package/dist/formats/black/core/CjsBlackBinaryReader.js.map +1 -1
- package/dist/formats/black/core/CjsBlackPropertyReaders.js +5 -0
- package/dist/formats/black/core/CjsBlackPropertyReaders.js.map +1 -1
- package/dist/formats/black/core/CjsBlackSchemaRegistry.js +4 -0
- package/dist/formats/black/core/CjsBlackSchemaRegistry.js.map +1 -1
- package/dist/formats/black/core/black-schema-v1-2026-07-23.json.js +4 -0
- package/dist/formats/black/core/black-schema-v1-2026-07-23.json.js.map +1 -0
- package/dist/formats/black/core/blackDefinitions.js +1 -1
- package/dist/formats/black/core/blackDefinitions.js.map +1 -1
- package/dist/formats/black/core/blackSchema.js +1 -1
- package/dist/formats/bnk/core/musicNodes.js +4 -0
- package/dist/formats/bnk/core/musicNodes.js.map +1 -1
- package/dist/formats/cmf/core/binary.js +5 -0
- package/dist/formats/cmf/core/binary.js.map +1 -1
- package/dist/formats/dds/CjsDdsFormat.js +7 -0
- package/dist/formats/dds/CjsDdsFormat.js.map +1 -1
- package/dist/formats/dds/core/bc7.js +7 -2
- package/dist/formats/dds/core/bc7.js.map +1 -1
- package/dist/formats/fbx/core/helpers.js +10 -0
- package/dist/formats/fbx/core/helpers.js.map +1 -1
- package/dist/formats/flac/CjsFlacFormat.js +6 -0
- package/dist/formats/flac/CjsFlacFormat.js.map +1 -1
- package/dist/formats/gif/CjsGifFormat.js +5 -0
- package/dist/formats/gif/CjsGifFormat.js.map +1 -1
- package/dist/formats/jpeg/CjsJpegFormat.js +6 -0
- package/dist/formats/jpeg/CjsJpegFormat.js.map +1 -1
- package/dist/formats/jpeg/core/jpeg.js +10 -0
- package/dist/formats/jpeg/core/jpeg.js.map +1 -1
- package/dist/formats/mp3/CjsMp3Format.js +5 -0
- package/dist/formats/mp3/CjsMp3Format.js.map +1 -1
- package/dist/formats/mp4/CjsMp4Format.js +6 -0
- package/dist/formats/mp4/CjsMp4Format.js.map +1 -1
- package/dist/formats/ogg/CjsOggFormat.js +6 -0
- package/dist/formats/ogg/CjsOggFormat.js.map +1 -1
- package/dist/formats/ogg/core/vorbis.js +5 -0
- package/dist/formats/ogg/core/vorbis.js.map +1 -1
- package/dist/formats/png/CjsPngFormat.js +6 -0
- package/dist/formats/png/CjsPngFormat.js.map +1 -1
- package/dist/formats/red/core/blackDefinitions.js +1 -1
- package/dist/formats/stl/core/stl.js +5 -0
- package/dist/formats/stl/core/stl.js.map +1 -1
- package/dist/formats/tga/CjsTgaFormat.js +5 -0
- package/dist/formats/tga/CjsTgaFormat.js.map +1 -1
- package/dist/formats/wav/CjsWavFormat.js +6 -0
- package/dist/formats/wav/CjsWavFormat.js.map +1 -1
- package/dist/formats/webm/CjsWebmFormat.js +6 -0
- package/dist/formats/webm/CjsWebmFormat.js.map +1 -1
- package/dist/formats/webp/CjsWebpFormat.js +5 -0
- package/dist/formats/webp/CjsWebpFormat.js.map +1 -1
- package/dist/formats/wem/CjsWemFormat.js +3 -2
- package/dist/formats/wem/CjsWemFormat.js.map +1 -1
- package/dist/formats/yaml/CjsYamlFormat.js +6 -0
- package/dist/formats/yaml/CjsYamlFormat.js.map +1 -1
- package/dist/formats/yaml/core/CjsYamlReader.js +6 -0
- package/dist/formats/yaml/core/CjsYamlReader.js.map +1 -1
- package/docs/README.md +4 -0
- package/docs/formats/README.md +7 -6
- package/docs/formats/gr2.md +161 -0
- package/docs/reference/classes/README.md +33 -0
- package/docs/reference/classes/core.md +106 -0
- package/docs/reference/classes/dropped.md +46 -0
- package/docs/reference/classes/formats.md +522 -0
- package/docs/reference/classes/resources.md +346 -0
- package/docs/reference/classes/texture.md +26 -0
- package/package.json +1 -1
- package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js +0 -4
- package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js.map +0 -1
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
# Formats class catalog
|
|
2
|
+
|
|
3
|
+
Status: Evolving
|
|
4
|
+
Scope: `@carbonenginejs/runtime-resource` classes under `src/formats`
|
|
5
|
+
Audience: Users, maintainers, and automated readers
|
|
6
|
+
Summary: Provides one-sentence purpose descriptors for maintained classes under `src/formats`.
|
|
7
|
+
|
|
8
|
+
### black
|
|
9
|
+
|
|
10
|
+
<!-- class:CjsBlackFormat -->
|
|
11
|
+
## `CjsBlackFormat`
|
|
12
|
+
|
|
13
|
+
Black format profile that reads `.black` binary object graphs into payload, document, raw, or runtime output using CarbonEngineJS canonical schemas or caller-supplied source-shape registries.
|
|
14
|
+
|
|
15
|
+
- Export: `@carbonenginejs/runtime-resource/formats/black`
|
|
16
|
+
- Source: `src/formats/black/CjsBlackFormat.js`
|
|
17
|
+
- Visibility: Public
|
|
18
|
+
- Kind: Original CarbonEngineJS class
|
|
19
|
+
|
|
20
|
+
<!-- class:CjsBlackBinaryReader -->
|
|
21
|
+
## `CjsBlackBinaryReader`
|
|
22
|
+
|
|
23
|
+
Bounds-aware `DataView` cursor that provides the primitive reads and end-of-stream checks the Black transport decodes with.
|
|
24
|
+
|
|
25
|
+
- Export: `None`
|
|
26
|
+
- Source: `src/formats/black/core/CjsBlackBinaryReader.js`
|
|
27
|
+
- Visibility: Internal
|
|
28
|
+
- Kind: Internal implementation class
|
|
29
|
+
|
|
30
|
+
<!-- class:CjsBlackPropertyReaders -->
|
|
31
|
+
## `CjsBlackPropertyReaders`
|
|
32
|
+
|
|
33
|
+
Static set of read and skip routines that decode or skip individual Black property values (primitives, strings, arrays, structure lists, dictionaries, and binary blocks) from their type descriptors.
|
|
34
|
+
|
|
35
|
+
- Export: `None`
|
|
36
|
+
- Source: `src/formats/black/core/CjsBlackPropertyReaders.js`
|
|
37
|
+
- Visibility: Internal
|
|
38
|
+
- Kind: Internal implementation class
|
|
39
|
+
|
|
40
|
+
<!-- class:CjsBlackReader -->
|
|
41
|
+
## `CjsBlackReader`
|
|
42
|
+
|
|
43
|
+
Transport that reads a `.black` stream into a payload, document, or runtime graph, owning the binary buffer, string tables, numeric references, and binary read cursor.
|
|
44
|
+
|
|
45
|
+
- Export: `None`
|
|
46
|
+
- Source: `src/formats/black/core/CjsBlackReader.js`
|
|
47
|
+
- Visibility: Internal
|
|
48
|
+
- Kind: Internal implementation class
|
|
49
|
+
|
|
50
|
+
<!-- class:CjsBlackSchemaRegistry -->
|
|
51
|
+
## `CjsBlackSchemaRegistry`
|
|
52
|
+
|
|
53
|
+
Registry that normalizes caller-supplied schemas into per-class source shapes the Black reader uses to resolve persisted fields.
|
|
54
|
+
|
|
55
|
+
- Export: `None`
|
|
56
|
+
- Source: `src/formats/black/core/CjsBlackSchemaRegistry.js`
|
|
57
|
+
- Visibility: Internal
|
|
58
|
+
- Kind: Internal implementation class
|
|
59
|
+
|
|
60
|
+
### bnk
|
|
61
|
+
|
|
62
|
+
<!-- class:CjsBnkFormat -->
|
|
63
|
+
## `CjsBnkFormat`
|
|
64
|
+
|
|
65
|
+
Reader for Audiokinetic Wwise soundbank (`.bnk`) containers that inspects the bank header, embedded media index, object hierarchy, and referenced bank names without copying payloads, and reads out the raw bank, debug JSON, or undecoded embedded media items.
|
|
66
|
+
|
|
67
|
+
- Export: `@carbonenginejs/runtime-resource/formats/bnk`
|
|
68
|
+
- Source: `src/formats/bnk/CjsBnkFormat.js`
|
|
69
|
+
- Visibility: Public
|
|
70
|
+
- Kind: Original CarbonEngineJS class
|
|
71
|
+
|
|
72
|
+
<!-- class:MusicCursor -->
|
|
73
|
+
## `MusicCursor`
|
|
74
|
+
|
|
75
|
+
Little-endian byte cursor over HIRC payload bytes used to decode Wwise interactive-music node payloads with exact-end validation.
|
|
76
|
+
|
|
77
|
+
- Export: `None`
|
|
78
|
+
- Source: `src/formats/bnk/core/musicNodes.js`
|
|
79
|
+
- Visibility: Internal
|
|
80
|
+
- Kind: Internal implementation class
|
|
81
|
+
|
|
82
|
+
### cmf
|
|
83
|
+
|
|
84
|
+
<!-- class:CjsCmfFormat -->
|
|
85
|
+
## `CjsCmfFormat`
|
|
86
|
+
|
|
87
|
+
CMF geometry-container format class that reads, inspects, constructs, and writes CMF data, emitting CMF-native output by default alongside GR2, shared-mesh, and debug JSON targets.
|
|
88
|
+
|
|
89
|
+
- Export: `@carbonenginejs/runtime-resource/formats/cmf`
|
|
90
|
+
- Source: `src/formats/cmf/CjsCmfFormat.js`
|
|
91
|
+
- Visibility: Public
|
|
92
|
+
- Kind: Original CarbonEngineJS class
|
|
93
|
+
|
|
94
|
+
<!-- class:BinaryReader -->
|
|
95
|
+
## `BinaryReader`
|
|
96
|
+
|
|
97
|
+
Bounds-checked little-endian offset reader over CMF file bytes, including 64-bit integer reads guarded against unsafe values.
|
|
98
|
+
|
|
99
|
+
- Export: `None`
|
|
100
|
+
- Source: `src/formats/cmf/core/binary.js`
|
|
101
|
+
- Visibility: Internal
|
|
102
|
+
- Kind: Internal implementation class
|
|
103
|
+
|
|
104
|
+
<!-- class:Flattener -->
|
|
105
|
+
## `Flattener`
|
|
106
|
+
|
|
107
|
+
Writer-side helper that flattens a CMF object graph into the binary Data section with self-relative tagged span offsets, depth-first ordering, chunk alignment, and duplicate-leaf deduplication, mirroring CarbonEngine's `cmf::BuildFile`.
|
|
108
|
+
|
|
109
|
+
- Export: `None`
|
|
110
|
+
- Source: `src/formats/cmf/core/writer.js`
|
|
111
|
+
- Visibility: Internal
|
|
112
|
+
- Kind: Internal implementation class
|
|
113
|
+
|
|
114
|
+
### dds
|
|
115
|
+
|
|
116
|
+
<!-- class:CjsDdsFormat -->
|
|
117
|
+
## `CjsDdsFormat`
|
|
118
|
+
|
|
119
|
+
DDS texture format profile that inspects header metadata, probes output support, and reads DDS bytes into raw, GPU-free texture, image, or software-decoded RGBA and float payloads (BC1-BC5, BC7, and BC6H included).
|
|
120
|
+
|
|
121
|
+
- Export: `@carbonenginejs/runtime-resource/formats/dds`
|
|
122
|
+
- Source: `src/formats/dds/CjsDdsFormat.js`
|
|
123
|
+
- Visibility: Public
|
|
124
|
+
- Kind: Original CarbonEngineJS class
|
|
125
|
+
|
|
126
|
+
<!-- class:Bc7BitReader -->
|
|
127
|
+
## `Bc7BitReader`
|
|
128
|
+
|
|
129
|
+
LSB-first bit reader over a single 128-bit BC7 block bitstream for the software BC7 decoder.
|
|
130
|
+
|
|
131
|
+
- Export: `None`
|
|
132
|
+
- Source: `src/formats/dds/core/bc7.js`
|
|
133
|
+
- Visibility: Internal
|
|
134
|
+
- Kind: Internal implementation class
|
|
135
|
+
|
|
136
|
+
### fbx
|
|
137
|
+
|
|
138
|
+
<!-- class:CjsFbxFormat -->
|
|
139
|
+
## `CjsFbxFormat`
|
|
140
|
+
|
|
141
|
+
FBX format surface that recognizes and inspects FBX files and emits basic static-mesh GR2 or CMF output in pure JavaScript, ahead of full CarbonEngine-equivalent importer coverage.
|
|
142
|
+
|
|
143
|
+
- Export: `@carbonenginejs/runtime-resource/formats/fbx`
|
|
144
|
+
- Source: `src/formats/fbx/CjsFbxFormat.js`
|
|
145
|
+
- Visibility: Public
|
|
146
|
+
- Kind: Original CarbonEngineJS class
|
|
147
|
+
|
|
148
|
+
<!-- class:DeflateBitReader -->
|
|
149
|
+
## `DeflateBitReader`
|
|
150
|
+
|
|
151
|
+
Bit reader over a zlib/deflate stream used to inflate compressed FBX property arrays.
|
|
152
|
+
|
|
153
|
+
- Export: `None`
|
|
154
|
+
- Source: `src/formats/fbx/core/helpers.js`
|
|
155
|
+
- Visibility: Internal
|
|
156
|
+
- Kind: Internal implementation class
|
|
157
|
+
|
|
158
|
+
<!-- class:DeflateHuffmanTable -->
|
|
159
|
+
## `DeflateHuffmanTable`
|
|
160
|
+
|
|
161
|
+
Canonical Huffman decode table built from deflate code lengths for inflating compressed FBX property arrays.
|
|
162
|
+
|
|
163
|
+
- Export: `None`
|
|
164
|
+
- Source: `src/formats/fbx/core/helpers.js`
|
|
165
|
+
- Visibility: Internal
|
|
166
|
+
- Kind: Internal implementation class
|
|
167
|
+
|
|
168
|
+
### flac
|
|
169
|
+
|
|
170
|
+
<!-- class:CjsFlacFormat -->
|
|
171
|
+
## `CjsFlacFormat`
|
|
172
|
+
|
|
173
|
+
Metadata-only FLAC format profile that validates the stream signature, inspects stream metadata, and emits raw container bytes or debug JSON without decoding PCM.
|
|
174
|
+
|
|
175
|
+
- Export: `@carbonenginejs/runtime-resource/formats/flac`
|
|
176
|
+
- Source: `src/formats/flac/CjsFlacFormat.js`
|
|
177
|
+
- Visibility: Public
|
|
178
|
+
- Kind: Original CarbonEngineJS class
|
|
179
|
+
|
|
180
|
+
### gif
|
|
181
|
+
|
|
182
|
+
<!-- class:CjsGifFormat -->
|
|
183
|
+
## `CjsGifFormat`
|
|
184
|
+
|
|
185
|
+
GIF format profile that inspects header and frame metadata and reads GIF bytes into raw, debug JSON, or LZW-decoded RGBA frame payloads.
|
|
186
|
+
|
|
187
|
+
- Export: `@carbonenginejs/runtime-resource/formats/gif`
|
|
188
|
+
- Source: `src/formats/gif/CjsGifFormat.js`
|
|
189
|
+
- Visibility: Public
|
|
190
|
+
- Kind: Original CarbonEngineJS class
|
|
191
|
+
|
|
192
|
+
### gltf
|
|
193
|
+
|
|
194
|
+
<!-- class:CjsGltfFormat -->
|
|
195
|
+
## `CjsGltfFormat`
|
|
196
|
+
|
|
197
|
+
glTF/GLB format class that parses documents, decodes accessors, and converts meshes, skins, and animations into shared-mesh, GR2, or CMF output plus debug JSON.
|
|
198
|
+
|
|
199
|
+
- Export: `@carbonenginejs/runtime-resource/formats/gltf`
|
|
200
|
+
- Source: `src/formats/gltf/CjsGltfFormat.js`
|
|
201
|
+
- Visibility: Public
|
|
202
|
+
- Kind: Original CarbonEngineJS class
|
|
203
|
+
|
|
204
|
+
### gr2
|
|
205
|
+
|
|
206
|
+
<!-- class:CjsGr2Format -->
|
|
207
|
+
## `CjsGr2Format`
|
|
208
|
+
|
|
209
|
+
Runtime GR2/GSF format class that wraps the migrated `format-gr2` engine under core/ with the runtime-resource format-contract statics ResMan uses for byte probing and async reads.
|
|
210
|
+
|
|
211
|
+
- Export: `@carbonenginejs/runtime-resource/formats/gr2`
|
|
212
|
+
- Source: `src/formats/gr2/CjsGr2Format.js`
|
|
213
|
+
- Visibility: Public
|
|
214
|
+
- Kind: Original CarbonEngineJS class
|
|
215
|
+
|
|
216
|
+
<!-- class:CjsFormatGr2 -->
|
|
217
|
+
## `CjsFormatGr2`
|
|
218
|
+
|
|
219
|
+
Migrated GR2/GSF reader that parses Granny files with section decompression, reflected type-tree walking, JSON emission, curve decompression, and caller-class hydration through its core helper modules.
|
|
220
|
+
|
|
221
|
+
- Export: `@carbonenginejs/runtime-resource/formats/gr2`
|
|
222
|
+
- Source: `src/formats/gr2/core/CjsFormatGr2.js`
|
|
223
|
+
- Visibility: Public
|
|
224
|
+
- Kind: Original CarbonEngineJS class
|
|
225
|
+
|
|
226
|
+
<!-- class:Decoder -->
|
|
227
|
+
## `Decoder`
|
|
228
|
+
|
|
229
|
+
Arithmetic decoder over the Oodle1 7-bit-per-byte compressed bitstream for GR2 section decompression.
|
|
230
|
+
|
|
231
|
+
- Export: `None`
|
|
232
|
+
- Source: `src/formats/gr2/core/oodle1.js`
|
|
233
|
+
- Visibility: Internal
|
|
234
|
+
- Kind: Internal implementation class
|
|
235
|
+
|
|
236
|
+
<!-- class:Dictionary -->
|
|
237
|
+
## `Dictionary`
|
|
238
|
+
|
|
239
|
+
Per-segment Oodle1 decode dictionary holding the adaptive symbol windows for literal and back-reference decoding.
|
|
240
|
+
|
|
241
|
+
- Export: `None`
|
|
242
|
+
- Source: `src/formats/gr2/core/oodle1.js`
|
|
243
|
+
- Visibility: Internal
|
|
244
|
+
- Kind: Internal implementation class
|
|
245
|
+
|
|
246
|
+
<!-- class:FrequencyModel -->
|
|
247
|
+
## `FrequencyModel`
|
|
248
|
+
|
|
249
|
+
Adaptive 15-bit-precision frequency model with cumulative tables and a fast symbol lookup used by the clean-room BitKnit2 decompressor.
|
|
250
|
+
|
|
251
|
+
- Export: `None`
|
|
252
|
+
- Source: `src/formats/gr2/core/bitknit2.js`
|
|
253
|
+
- Visibility: Internal
|
|
254
|
+
- Kind: Internal implementation class
|
|
255
|
+
|
|
256
|
+
<!-- class:WeighWindow -->
|
|
257
|
+
## `WeighWindow`
|
|
258
|
+
|
|
259
|
+
Adaptive weighted symbol window that Oodle1 dictionaries use to model symbol probabilities.
|
|
260
|
+
|
|
261
|
+
- Export: `None`
|
|
262
|
+
- Source: `src/formats/gr2/core/oodle1.js`
|
|
263
|
+
- Visibility: Internal
|
|
264
|
+
- Kind: Internal implementation class
|
|
265
|
+
|
|
266
|
+
### jpeg
|
|
267
|
+
|
|
268
|
+
<!-- class:CjsJpegFormat -->
|
|
269
|
+
## `CjsJpegFormat`
|
|
270
|
+
|
|
271
|
+
JPEG format profile that inspects marker and header metadata and reads baseline JPEG bytes into raw, debug JSON, or RGBA payloads through the in-project baseline decoder.
|
|
272
|
+
|
|
273
|
+
- Export: `@carbonenginejs/runtime-resource/formats/jpeg`
|
|
274
|
+
- Source: `src/formats/jpeg/CjsJpegFormat.js`
|
|
275
|
+
- Visibility: Public
|
|
276
|
+
- Kind: Original CarbonEngineJS class
|
|
277
|
+
|
|
278
|
+
<!-- class:BaselineJpegDecoder -->
|
|
279
|
+
## `BaselineJpegDecoder`
|
|
280
|
+
|
|
281
|
+
Pure-JS baseline sequential JPEG decoder that parses markers, quantization and Huffman tables, and entropy-coded scans into RGBA pixels.
|
|
282
|
+
|
|
283
|
+
- Export: `None`
|
|
284
|
+
- Source: `src/formats/jpeg/core/jpeg.js`
|
|
285
|
+
- Visibility: Internal
|
|
286
|
+
- Kind: Internal implementation class
|
|
287
|
+
|
|
288
|
+
<!-- class:EntropyReader -->
|
|
289
|
+
## `EntropyReader`
|
|
290
|
+
|
|
291
|
+
Bit-level reader over JPEG entropy-coded data that handles byte stuffing and restart markers for the baseline decoder.
|
|
292
|
+
|
|
293
|
+
- Export: `None`
|
|
294
|
+
- Source: `src/formats/jpeg/core/jpeg.js`
|
|
295
|
+
- Visibility: Internal
|
|
296
|
+
- Kind: Internal implementation class
|
|
297
|
+
|
|
298
|
+
### mp3
|
|
299
|
+
|
|
300
|
+
<!-- class:CjsMp3Format -->
|
|
301
|
+
## `CjsMp3Format`
|
|
302
|
+
|
|
303
|
+
MP3 audio format profile that inspects frame and tag metadata and emits raw container bytes or debug JSON, with PCM decoding not implemented.
|
|
304
|
+
|
|
305
|
+
- Export: `@carbonenginejs/runtime-resource/formats/mp3`
|
|
306
|
+
- Source: `src/formats/mp3/CjsMp3Format.js`
|
|
307
|
+
- Visibility: Public
|
|
308
|
+
- Kind: Original CarbonEngineJS class
|
|
309
|
+
|
|
310
|
+
### mp4
|
|
311
|
+
|
|
312
|
+
<!-- class:CjsMp4Format -->
|
|
313
|
+
## `CjsMp4Format`
|
|
314
|
+
|
|
315
|
+
MP4 container format profile that inspects box and track structure and emits raw bytes, debug JSON, or a container-only video payload with codec and duration summaries but no frame decoding.
|
|
316
|
+
|
|
317
|
+
- Export: `@carbonenginejs/runtime-resource/formats/mp4`
|
|
318
|
+
- Source: `src/formats/mp4/CjsMp4Format.js`
|
|
319
|
+
- Visibility: Public
|
|
320
|
+
- Kind: Original CarbonEngineJS class
|
|
321
|
+
|
|
322
|
+
### obj
|
|
323
|
+
|
|
324
|
+
<!-- class:CjsObjFormat -->
|
|
325
|
+
## `CjsObjFormat`
|
|
326
|
+
|
|
327
|
+
OBJ format class that parses Wavefront OBJ text and rebuilds it into shared-mesh, GR2, or CMF output plus debug JSON through its core helpers.
|
|
328
|
+
|
|
329
|
+
- Export: `@carbonenginejs/runtime-resource/formats/obj`
|
|
330
|
+
- Source: `src/formats/obj/CjsObjFormat.js`
|
|
331
|
+
- Visibility: Public
|
|
332
|
+
- Kind: Original CarbonEngineJS class
|
|
333
|
+
|
|
334
|
+
### ogg
|
|
335
|
+
|
|
336
|
+
<!-- class:CjsOggFormat -->
|
|
337
|
+
## `CjsOggFormat`
|
|
338
|
+
|
|
339
|
+
Ogg container format profile that inspects page and stream metadata and decodes Ogg Vorbis audio to PCM with the in-project pure-JS Vorbis decoder, alongside raw and debug JSON output.
|
|
340
|
+
|
|
341
|
+
- Export: `@carbonenginejs/runtime-resource/formats/ogg`
|
|
342
|
+
- Source: `src/formats/ogg/CjsOggFormat.js`
|
|
343
|
+
- Visibility: Public
|
|
344
|
+
- Kind: Original CarbonEngineJS class
|
|
345
|
+
|
|
346
|
+
<!-- class:Codebook -->
|
|
347
|
+
## `Codebook`
|
|
348
|
+
|
|
349
|
+
Vorbis codebook that builds Huffman decode trees and VQ lookup vectors for scalar and vector packet decoding.
|
|
350
|
+
|
|
351
|
+
- Export: `None`
|
|
352
|
+
- Source: `src/formats/ogg/core/vorbis.js`
|
|
353
|
+
- Visibility: Internal
|
|
354
|
+
- Kind: Internal implementation class
|
|
355
|
+
|
|
356
|
+
<!-- class:PacketReader -->
|
|
357
|
+
## `PacketReader`
|
|
358
|
+
|
|
359
|
+
LSB-first bit reader over one Vorbis packet's bytes for the pure-JS Vorbis decoder.
|
|
360
|
+
|
|
361
|
+
- Export: `None`
|
|
362
|
+
- Source: `src/formats/ogg/core/vorbis.js`
|
|
363
|
+
- Visibility: Internal
|
|
364
|
+
- Kind: Internal implementation class
|
|
365
|
+
|
|
366
|
+
### png
|
|
367
|
+
|
|
368
|
+
<!-- class:CjsPngFormat -->
|
|
369
|
+
## `CjsPngFormat`
|
|
370
|
+
|
|
371
|
+
PNG format profile that synchronously inspects chunk and header metadata and emits raw bytes or debug JSON, with RGBA decoding available on the asynchronous read path.
|
|
372
|
+
|
|
373
|
+
- Export: `@carbonenginejs/runtime-resource/formats/png`
|
|
374
|
+
- Source: `src/formats/png/CjsPngFormat.js`
|
|
375
|
+
- Visibility: Public
|
|
376
|
+
- Kind: Original CarbonEngineJS class
|
|
377
|
+
|
|
378
|
+
### red
|
|
379
|
+
|
|
380
|
+
<!-- class:CjsRedFormat -->
|
|
381
|
+
## `CjsRedFormat`
|
|
382
|
+
|
|
383
|
+
Red format profile that reads type-discriminated, self-referential Red YAML object graphs and emits a compact public payload, a neutral raw graph, or caller-supplied runtime classes through the core-types hydration adapter.
|
|
384
|
+
|
|
385
|
+
- Export: `@carbonenginejs/runtime-resource/formats/red`
|
|
386
|
+
- Source: `src/formats/red/CjsRedFormat.js`
|
|
387
|
+
- Visibility: Public
|
|
388
|
+
- Kind: Original CarbonEngineJS class
|
|
389
|
+
|
|
390
|
+
<!-- class:CjsRedReader -->
|
|
391
|
+
## `CjsRedReader`
|
|
392
|
+
|
|
393
|
+
Reader that walks a Red (YAML) type-discriminated, self-referential graph into payload, raw, or runtime shapes, sharing repeated nodes and stripping authoring-tool keys.
|
|
394
|
+
|
|
395
|
+
- Export: `None`
|
|
396
|
+
- Source: `src/formats/red/core/CjsRedReader.js`
|
|
397
|
+
- Visibility: Internal
|
|
398
|
+
- Kind: Internal implementation class
|
|
399
|
+
|
|
400
|
+
### stl
|
|
401
|
+
|
|
402
|
+
<!-- class:CjsStlFormat -->
|
|
403
|
+
## `CjsStlFormat`
|
|
404
|
+
|
|
405
|
+
STL format class that parses ASCII and binary STL, writes STL from shared meshes, and inspects printability, emitting shared-mesh, GR2, or CMF output plus debug JSON.
|
|
406
|
+
|
|
407
|
+
- Export: `@carbonenginejs/runtime-resource/formats/stl`
|
|
408
|
+
- Source: `src/formats/stl/CjsStlFormat.js`
|
|
409
|
+
- Visibility: Public
|
|
410
|
+
- Kind: Original CarbonEngineJS class
|
|
411
|
+
|
|
412
|
+
<!-- class:DisjointSet -->
|
|
413
|
+
## `DisjointSet`
|
|
414
|
+
|
|
415
|
+
Union-find structure with path compression used to group edge-connected triangles during STL printability inspection.
|
|
416
|
+
|
|
417
|
+
- Export: `None`
|
|
418
|
+
- Source: `src/formats/stl/core/stl.js`
|
|
419
|
+
- Visibility: Internal
|
|
420
|
+
- Kind: Internal implementation class
|
|
421
|
+
|
|
422
|
+
### tga
|
|
423
|
+
|
|
424
|
+
<!-- class:CjsTgaFormat -->
|
|
425
|
+
## `CjsTgaFormat`
|
|
426
|
+
|
|
427
|
+
TGA format profile that inspects header metadata and reads TGA bytes into raw, debug JSON, or decoded RGBA image payloads.
|
|
428
|
+
|
|
429
|
+
- Export: `@carbonenginejs/runtime-resource/formats/tga`
|
|
430
|
+
- Source: `src/formats/tga/CjsTgaFormat.js`
|
|
431
|
+
- Visibility: Public
|
|
432
|
+
- Kind: Original CarbonEngineJS class
|
|
433
|
+
|
|
434
|
+
### wav
|
|
435
|
+
|
|
436
|
+
<!-- class:CjsWavFormat -->
|
|
437
|
+
## `CjsWavFormat`
|
|
438
|
+
|
|
439
|
+
WAV audio format profile that inspects RIFF chunk metadata and reads supported WAV bytes into PCM or audio payloads, alongside raw and debug JSON output.
|
|
440
|
+
|
|
441
|
+
- Export: `@carbonenginejs/runtime-resource/formats/wav`
|
|
442
|
+
- Source: `src/formats/wav/CjsWavFormat.js`
|
|
443
|
+
- Visibility: Public
|
|
444
|
+
- Kind: Original CarbonEngineJS class
|
|
445
|
+
|
|
446
|
+
### webm
|
|
447
|
+
|
|
448
|
+
<!-- class:CjsWebmFormat -->
|
|
449
|
+
## `CjsWebmFormat`
|
|
450
|
+
|
|
451
|
+
WebM container format profile that inspects EBML segment and track structure and emits raw bytes, debug JSON, or a container-only video payload with codec and duration summaries but no frame decoding.
|
|
452
|
+
|
|
453
|
+
- Export: `@carbonenginejs/runtime-resource/formats/webm`
|
|
454
|
+
- Source: `src/formats/webm/CjsWebmFormat.js`
|
|
455
|
+
- Visibility: Public
|
|
456
|
+
- Kind: Original CarbonEngineJS class
|
|
457
|
+
|
|
458
|
+
### webp
|
|
459
|
+
|
|
460
|
+
<!-- class:CjsWebpFormat -->
|
|
461
|
+
## `CjsWebpFormat`
|
|
462
|
+
|
|
463
|
+
Metadata-only WebP format profile that inspects RIFF chunk headers and emits raw container bytes or debug JSON without decoding pixels.
|
|
464
|
+
|
|
465
|
+
- Export: `@carbonenginejs/runtime-resource/formats/webp`
|
|
466
|
+
- Source: `src/formats/webp/CjsWebpFormat.js`
|
|
467
|
+
- Visibility: Public
|
|
468
|
+
- Kind: Original CarbonEngineJS class
|
|
469
|
+
|
|
470
|
+
### wem
|
|
471
|
+
|
|
472
|
+
<!-- class:CjsWemFormat -->
|
|
473
|
+
## `CjsWemFormat`
|
|
474
|
+
|
|
475
|
+
Reader for Audiokinetic Wwise media (`.wem`) containers that inspects codec, channel/rate layout, and Vorbis duration, and reads out raw container bytes, a ww2ogg-style Ogg repack of Wwise Vorbis, or decoded PCM.
|
|
476
|
+
|
|
477
|
+
- Export: `@carbonenginejs/runtime-resource/formats/wem`
|
|
478
|
+
- Source: `src/formats/wem/CjsWemFormat.js`
|
|
479
|
+
- Visibility: Public
|
|
480
|
+
- Kind: Original CarbonEngineJS class
|
|
481
|
+
|
|
482
|
+
<!-- class:BitReader -->
|
|
483
|
+
## `BitReader`
|
|
484
|
+
|
|
485
|
+
LSB-first bit reader over Wwise Vorbis packet bytes for the Ogg repacking path.
|
|
486
|
+
|
|
487
|
+
- Export: `None`
|
|
488
|
+
- Source: `src/formats/wem/core/bitStream.js`
|
|
489
|
+
- Visibility: Internal
|
|
490
|
+
- Kind: Internal implementation class
|
|
491
|
+
|
|
492
|
+
<!-- class:OggPageWriter -->
|
|
493
|
+
## `OggPageWriter`
|
|
494
|
+
|
|
495
|
+
LSB-first bit writer that assembles repacked Wwise Vorbis packets into standard Ogg pages, one page per packet, matching ww2ogg behavior.
|
|
496
|
+
|
|
497
|
+
- Export: `None`
|
|
498
|
+
- Source: `src/formats/wem/core/bitStream.js`
|
|
499
|
+
- Visibility: Internal
|
|
500
|
+
- Kind: Internal implementation class
|
|
501
|
+
|
|
502
|
+
### yaml
|
|
503
|
+
|
|
504
|
+
<!-- class:CjsYamlFormat -->
|
|
505
|
+
## `CjsYamlFormat`
|
|
506
|
+
|
|
507
|
+
YAML format profile that parses YAML text into payload, JSON-graph, raw, or document output with configurable tag policies, alias limits, and identity/reference markers.
|
|
508
|
+
|
|
509
|
+
- Export: `@carbonenginejs/runtime-resource/formats/yaml`
|
|
510
|
+
- Source: `src/formats/yaml/CjsYamlFormat.js`
|
|
511
|
+
- Visibility: Public
|
|
512
|
+
- Kind: Original CarbonEngineJS class
|
|
513
|
+
|
|
514
|
+
<!-- class:CjsYamlReader -->
|
|
515
|
+
## `CjsYamlReader`
|
|
516
|
+
|
|
517
|
+
Construction-bound reader that parses one YAML source with the `yaml` library and produces the format's payload, raw, or document graphs while enforcing tag policy and alias limits.
|
|
518
|
+
|
|
519
|
+
- Export: `None`
|
|
520
|
+
- Source: `src/formats/yaml/core/CjsYamlReader.js`
|
|
521
|
+
- Visibility: Internal
|
|
522
|
+
- Kind: Internal implementation class
|