@imferno/node 3.0.2-beta.65802f9 → 3.0.2-beta.659f131
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/README.md +31 -2
- package/codes.d.ts +206 -0
- package/codes.js +206 -0
- package/index.d.ts +71 -6
- package/index.mjs +4 -0
- package/package.json +7 -7
- package/types.d.ts +192 -37
package/README.md
CHANGED
|
@@ -35,6 +35,26 @@ for (const issue of validation.errors) {
|
|
|
35
35
|
console.log("CPLs:", Object.keys(pkg.compositionPlaylists).length);
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
`validatePath` hashes every asset (several at a time, like the CLI) and
|
|
39
|
+
blocks until done. To keep the event loop running, use the async variant:
|
|
40
|
+
same arguments, same result, on the libuv thread pool.
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { validatePathAsync } from "@imferno/node";
|
|
44
|
+
|
|
45
|
+
const { validation } = await validatePathAsync("./my-imp");
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`validateUriAsync`, `buildReportFromPathAsync` and `buildReportFromUriAsync`
|
|
49
|
+
work the same way.
|
|
50
|
+
|
|
51
|
+
Each running `…Async` call holds one libuv worker thread for its whole run
|
|
52
|
+
(the hashing itself runs on imferno's own threads). The pool has 4 workers
|
|
53
|
+
by default and is shared with `fs`, `dns.lookup`, `crypto` and `zlib`, so
|
|
54
|
+
more than a few concurrent validations queue each other and that I/O. To
|
|
55
|
+
run more at once, raise the pool size before Node starts it, e.g.
|
|
56
|
+
`UV_THREADPOOL_SIZE=16 node app.js` (max 1024).
|
|
57
|
+
|
|
38
58
|
### Validate from a URI (filesystem or S3)
|
|
39
59
|
|
|
40
60
|
```js
|
|
@@ -46,6 +66,8 @@ const result2 = validateUri("file:///abs/path/to/my-imp");
|
|
|
46
66
|
|
|
47
67
|
// S3 — prebuilt npm binaries include S3 support; uses the default AWS
|
|
48
68
|
// credential chain (env vars, profile, or EC2/ECS/EKS IMDS)
|
|
69
|
+
// Only the XML is read from S3: presence, size and hash checks do not run,
|
|
70
|
+
// and the result says so (IMFERNO:Package/DiskChecksNotRun).
|
|
49
71
|
const result3 = validateUri("s3://my-bucket/path/to/imp/");
|
|
50
72
|
|
|
51
73
|
// Same options object as validatePath
|
|
@@ -127,13 +149,20 @@ console.log(getVersion()); // e.g. "2.0.0"
|
|
|
127
149
|
| `app2eSpec` | `"auto" \| "none" \| "v2014" \| "v2016" \| "v2020" \| "v2023" \| "v2026"` | Application spec version |
|
|
128
150
|
| `rules` | `Record<string, "off" \| "info" \| "warn" \| "error" \| "critical">` | ESLint-style per-rule severity overrides |
|
|
129
151
|
| `aggregateRepeats` | `boolean` | Collapse repeated identical findings into one issue with `additional_instances` |
|
|
130
|
-
| `skipDiskChecks` | `boolean` | Skip
|
|
152
|
+
| `skipDiskChecks` | `boolean` | Skip every disk read: asset existence, size and hash checks and MXF checks (path / URI functions only; in-memory input never touches disk) |
|
|
153
|
+
| `skipHashes` | `boolean` | Skip hashing the assets; existence and size are still checked (path / URI functions only). Hashes are verified by default, like the CLI |
|
|
131
154
|
| `credentials` | `S3Credentials \| null` | Explicit S3 credentials (URI functions only) |
|
|
132
155
|
|
|
156
|
+
An option the function does not accept, or a value of the wrong type, throws.
|
|
157
|
+
`null` and `undefined` mean not set for every option in the table, also one
|
|
158
|
+
the function does not take; an unknown key throws even as `null`, so a typo
|
|
159
|
+
like `{ skipHash: null }` is caught.
|
|
160
|
+
|
|
133
161
|
### TypeScript
|
|
134
162
|
|
|
135
163
|
The package ships precise declarations, generated from the Rust types (no
|
|
136
|
-
`any`). Every function is synchronous
|
|
164
|
+
`any`). Every function is synchronous, except the `…Async` variants, which
|
|
165
|
+
return a Promise. All value types are exported from the
|
|
137
166
|
main entry:
|
|
138
167
|
|
|
139
168
|
```ts
|
package/codes.d.ts
CHANGED
|
@@ -8,6 +8,16 @@ export declare const codes: {
|
|
|
8
8
|
readonly HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen";
|
|
9
9
|
readonly MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata";
|
|
10
10
|
readonly StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing";
|
|
11
|
+
readonly FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing";
|
|
12
|
+
readonly PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete";
|
|
13
|
+
readonly PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete";
|
|
14
|
+
readonly OpenPartitionEssenceContainersIncomplete: "ST377-1/OpenPartitionEssenceContainersIncomplete";
|
|
15
|
+
readonly FooterPartitionMissing: "ST377-1/FooterPartitionMissing";
|
|
16
|
+
readonly RunInPresent: "ST377-1/RunInPresent";
|
|
17
|
+
readonly OperationalPatternMarkerBit: "ST377-1/OperationalPatternMarkerBit";
|
|
18
|
+
readonly SequenceDurationMismatch: "ST377-1/SequenceDurationMismatch";
|
|
19
|
+
readonly StaticTrackComponentDuration: "ST377-1/StaticTrackComponentDuration";
|
|
20
|
+
readonly StaticTrackDmComponentDuration: "ST377-1/StaticTrackDmComponentDuration";
|
|
11
21
|
};
|
|
12
22
|
readonly ST377_4: {
|
|
13
23
|
readonly MCALinkIDMissing: "ST377-4/MCALinkIDMissing";
|
|
@@ -19,6 +29,7 @@ export declare const codes: {
|
|
|
19
29
|
readonly ST429_8: {
|
|
20
30
|
readonly SizeMismatch: "ST429-8/SizeMismatch";
|
|
21
31
|
readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
|
|
32
|
+
readonly MalformedXml: "ST429-8/MalformedXml";
|
|
22
33
|
};
|
|
23
34
|
readonly ST429_9: {
|
|
24
35
|
readonly AssetListEmpty: "ST429-9/AssetListEmpty";
|
|
@@ -33,10 +44,21 @@ export declare const codes: {
|
|
|
33
44
|
readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
|
|
34
45
|
readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
|
|
35
46
|
readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
|
|
47
|
+
readonly PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl";
|
|
48
|
+
readonly VolumeCountNotOne: "ST429-9/VolumeCountNotOne";
|
|
49
|
+
readonly ChunkCountNotOne: "ST429-9/ChunkCountNotOne";
|
|
50
|
+
readonly ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne";
|
|
51
|
+
readonly ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero";
|
|
52
|
+
readonly ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch";
|
|
53
|
+
readonly SymbolicLink: "ST429-9/SymbolicLink";
|
|
36
54
|
};
|
|
37
55
|
readonly ST2067_2: {
|
|
38
56
|
readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
|
|
57
|
+
readonly ApplicationCplMismatch: "ST2067-2/ApplicationCplMismatch";
|
|
58
|
+
readonly ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing";
|
|
59
|
+
readonly ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate";
|
|
39
60
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
61
|
+
readonly NoPackingList: "ST2067-2/NoPackingList";
|
|
40
62
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
41
63
|
readonly SizeMismatch: "ST2067-2/SizeMismatch";
|
|
42
64
|
readonly FileNotFound: "ST2067-2/FileNotFound";
|
|
@@ -58,6 +80,8 @@ export declare const codes: {
|
|
|
58
80
|
readonly SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount";
|
|
59
81
|
readonly DigitalSignature: "ST2067-2/DigitalSignature";
|
|
60
82
|
readonly EssenceDescriptorList: "ST2067-2/EssenceDescriptorList";
|
|
83
|
+
readonly EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing";
|
|
84
|
+
readonly EssenceDescriptorDiffersFromTrackFile: "ST2067-2/EssenceDescriptorDiffersFromTrackFile";
|
|
61
85
|
readonly CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch";
|
|
62
86
|
readonly OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A";
|
|
63
87
|
readonly SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM";
|
|
@@ -86,8 +110,23 @@ export declare const codes: {
|
|
|
86
110
|
readonly TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC";
|
|
87
111
|
readonly TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported";
|
|
88
112
|
readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
|
|
113
|
+
readonly TimedTextDataEssenceCodingPresent: "ST2067-2/TimedTextDataEssenceCodingPresent";
|
|
114
|
+
readonly TopLevelFilePackageOriginNotZero: "ST2067-2/TopLevelFilePackageOriginNotZero";
|
|
115
|
+
readonly TopLevelFilePackageFiller: "ST2067-2/TopLevelFilePackageFiller";
|
|
89
116
|
readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
|
|
90
117
|
readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
|
|
118
|
+
readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
|
|
119
|
+
readonly CompositionEditRateMismatch: "ST2067-2/CompositionEditRateMismatch";
|
|
120
|
+
readonly MainImageEditRateMismatch: "ST2067-2/MainImageEditRateMismatch";
|
|
121
|
+
readonly AudioEditRateMismatch: "ST2067-2/AudioEditRateMismatch";
|
|
122
|
+
readonly ContentVersionMissing: "ST2067-2/ContentVersionMissing";
|
|
123
|
+
readonly ReferenceImageEditRateMissing: "ST2067-2/ReferenceImageEditRateMissing";
|
|
124
|
+
readonly ReferenceImageEditRateMismatch: "ST2067-2/ReferenceImageEditRateMismatch";
|
|
125
|
+
readonly AssetIdPackageUidMismatch: "ST2067-2/AssetIdPackageUidMismatch";
|
|
126
|
+
readonly TrackFileIdPackageUidMismatch: "ST2067-2/TrackFileIdPackageUidMismatch";
|
|
127
|
+
readonly PackageUidForm: "ST2067-2/PackageUidForm";
|
|
128
|
+
readonly UuidNotVersion4: "ST2067-2/UuidNotVersion4";
|
|
129
|
+
readonly AssetIdNotType5: "ST2067-2/AssetIdNotType5";
|
|
91
130
|
};
|
|
92
131
|
readonly ST2067_3: {
|
|
93
132
|
readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
|
|
@@ -113,11 +152,27 @@ export declare const codes: {
|
|
|
113
152
|
readonly ResourceDuration: "ST2067-3/ResourceDuration";
|
|
114
153
|
readonly RepeatCount: "ST2067-3/RepeatCount";
|
|
115
154
|
readonly TrackFileId: "ST2067-3/TrackFileId";
|
|
155
|
+
readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
|
|
116
156
|
readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
|
|
157
|
+
readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
|
|
158
|
+
readonly ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType";
|
|
159
|
+
readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
|
|
160
|
+
readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
|
|
117
161
|
readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
|
|
162
|
+
readonly CplMediaType: "ST2067-3/CplMediaType";
|
|
163
|
+
readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
|
|
164
|
+
readonly ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate";
|
|
165
|
+
readonly LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid";
|
|
166
|
+
readonly SignerWithoutSignature: "ST2067-3/SignerWithoutSignature";
|
|
167
|
+
readonly SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner";
|
|
168
|
+
readonly HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing";
|
|
169
|
+
readonly HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash";
|
|
170
|
+
readonly ResourceHashMismatch: "ST2067-3/ResourceHashMismatch";
|
|
118
171
|
};
|
|
119
172
|
readonly ST2067_5: {
|
|
120
173
|
readonly OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier";
|
|
174
|
+
readonly KagSizeNotOne: "ST2067-5/KagSizeNotOne";
|
|
175
|
+
readonly EssenceContainerLabelNotSingle: "ST2067-5/EssenceContainerLabelNotSingle";
|
|
121
176
|
};
|
|
122
177
|
readonly ST2067_9: {
|
|
123
178
|
readonly MalformedXml: "ST2067-9/MalformedXml";
|
|
@@ -129,6 +184,57 @@ export declare const codes: {
|
|
|
129
184
|
readonly CplNotFound: "ST2067-9/CplNotFound";
|
|
130
185
|
readonly DuplicateCplId: "ST2067-9/DuplicateCplId";
|
|
131
186
|
};
|
|
187
|
+
readonly ST2067_20: {
|
|
188
|
+
readonly ApplicationIdentification: "ST2067-20/ApplicationIdentification";
|
|
189
|
+
readonly AppIdMismatch: "ST2067-20/AppIdMismatch";
|
|
190
|
+
readonly ImageCharacteristics: "ST2067-20/ImageCharacteristics";
|
|
191
|
+
readonly TransferCharacteristic: "ST2067-20/TransferCharacteristic";
|
|
192
|
+
readonly CodingEquations: "ST2067-20/CodingEquations";
|
|
193
|
+
readonly ColorPrimaries: "ST2067-20/ColorPrimaries";
|
|
194
|
+
readonly J2KRequired: "ST2067-20/J2KRequired";
|
|
195
|
+
readonly PictureEssenceCoding: "ST2067-20/PictureEssenceCoding";
|
|
196
|
+
readonly FrameLayout: "ST2067-20/FrameLayout";
|
|
197
|
+
readonly StoredF2Offset: "ST2067-20/StoredF2Offset";
|
|
198
|
+
readonly SampledWidth: "ST2067-20/SampledWidth";
|
|
199
|
+
readonly SampledHeight: "ST2067-20/SampledHeight";
|
|
200
|
+
readonly SampledXOffset: "ST2067-20/SampledXOffset";
|
|
201
|
+
readonly SampledYOffset: "ST2067-20/SampledYOffset";
|
|
202
|
+
readonly DisplayF2Offset: "ST2067-20/DisplayF2Offset";
|
|
203
|
+
readonly AlphaTransparency: "ST2067-20/AlphaTransparency";
|
|
204
|
+
readonly ImageAlignmentOffset: "ST2067-20/ImageAlignmentOffset";
|
|
205
|
+
readonly ImageStartOffset: "ST2067-20/ImageStartOffset";
|
|
206
|
+
readonly ImageEndOffset: "ST2067-20/ImageEndOffset";
|
|
207
|
+
readonly FieldDominance: "ST2067-20/FieldDominance";
|
|
208
|
+
readonly TransferCharacteristicMissing: "ST2067-20/TransferCharacteristicMissing";
|
|
209
|
+
readonly ColorPrimariesMissing: "ST2067-20/ColorPrimariesMissing";
|
|
210
|
+
readonly CodingEquationsMissing: "ST2067-20/CodingEquationsMissing";
|
|
211
|
+
readonly RequiredPictureCompression: "ST2067-20/RequiredPictureCompression";
|
|
212
|
+
readonly ComponentMaxRef: "ST2067-20/ComponentMaxRef";
|
|
213
|
+
readonly ComponentMinRef: "ST2067-20/ComponentMinRef";
|
|
214
|
+
readonly AlphaMaxRef: "ST2067-20/AlphaMaxRef";
|
|
215
|
+
readonly AlphaMinRef: "ST2067-20/AlphaMinRef";
|
|
216
|
+
readonly ScanningDirection: "ST2067-20/ScanningDirection";
|
|
217
|
+
readonly Palette: "ST2067-20/Palette";
|
|
218
|
+
readonly PaletteLayout: "ST2067-20/PaletteLayout";
|
|
219
|
+
readonly ComponentRefValues: "ST2067-20/ComponentRefValues";
|
|
220
|
+
readonly ComponentDepth: "ST2067-20/ComponentDepth";
|
|
221
|
+
readonly VerticalSubsampling: "ST2067-20/VerticalSubsampling";
|
|
222
|
+
readonly ColorSiting: "ST2067-20/ColorSiting";
|
|
223
|
+
readonly ReversedByteOrder: "ST2067-20/ReversedByteOrder";
|
|
224
|
+
readonly PaddingBits: "ST2067-20/PaddingBits";
|
|
225
|
+
readonly AlphaSampleDepth: "ST2067-20/AlphaSampleDepth";
|
|
226
|
+
readonly RefLevelMissing: "ST2067-20/RefLevelMissing";
|
|
227
|
+
readonly HorizontalSubsampling: "ST2067-20/HorizontalSubsampling";
|
|
228
|
+
readonly BlackRefLevel: "ST2067-20/BlackRefLevel";
|
|
229
|
+
readonly WhiteRefLevel: "ST2067-20/WhiteRefLevel";
|
|
230
|
+
readonly ColorRange: "ST2067-20/ColorRange";
|
|
231
|
+
readonly Jpeg2000SubDescriptor: "ST2067-20/Jpeg2000SubDescriptor";
|
|
232
|
+
readonly CodingStyle: "ST2067-20/CodingStyle";
|
|
233
|
+
readonly J2CLayout: "ST2067-20/J2CLayout";
|
|
234
|
+
readonly J2CLayoutValue: "ST2067-20/J2CLayoutValue";
|
|
235
|
+
readonly HomogeneousImageEssence: "ST2067-20/HomogeneousImageEssence";
|
|
236
|
+
readonly SegmentDurationMultiple: "ST2067-20/SegmentDurationMultiple";
|
|
237
|
+
};
|
|
132
238
|
readonly ST2067_21: {
|
|
133
239
|
readonly ColorSystem: "ST2067-21/ColorSystem";
|
|
134
240
|
readonly BlackRefLevel: "ST2067-21/BlackRefLevel";
|
|
@@ -195,6 +301,37 @@ export declare const codes: {
|
|
|
195
301
|
readonly HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax";
|
|
196
302
|
readonly HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended";
|
|
197
303
|
readonly J2K8KResolution: "ST2067-21/J2K8KResolution";
|
|
304
|
+
readonly RefLevelMissing: "ST2067-21/RefLevelMissing";
|
|
305
|
+
readonly DisplayF2Offset: "ST2067-21/DisplayF2Offset";
|
|
306
|
+
readonly J2CLayoutValue: "ST2067-21/J2CLayoutValue";
|
|
307
|
+
readonly PictureEssenceCoding: "ST2067-21/PictureEssenceCoding";
|
|
308
|
+
readonly HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints";
|
|
309
|
+
};
|
|
310
|
+
readonly ST2067_50: {
|
|
311
|
+
readonly ApplicationIdentification: "ST2067-50/ApplicationIdentification";
|
|
312
|
+
readonly ImageDescriptorNotRgba: "ST2067-50/ImageDescriptorNotRgba";
|
|
313
|
+
readonly EssenceContainer: "ST2067-50/EssenceContainer";
|
|
314
|
+
readonly PictureEssenceCoding: "ST2067-50/PictureEssenceCoding";
|
|
315
|
+
readonly TransferCharacteristic: "ST2067-50/TransferCharacteristic";
|
|
316
|
+
readonly ColorPrimaries: "ST2067-50/ColorPrimaries";
|
|
317
|
+
readonly DescriptorItemNotAllowed: "ST2067-50/DescriptorItemNotAllowed";
|
|
318
|
+
readonly FrameLayout: "ST2067-50/FrameLayout";
|
|
319
|
+
readonly SampledArea: "ST2067-50/SampledArea";
|
|
320
|
+
readonly VideoLineMap: "ST2067-50/VideoLineMap";
|
|
321
|
+
readonly ScanningDirection: "ST2067-50/ScanningDirection";
|
|
322
|
+
readonly PixelLayout: "ST2067-50/PixelLayout";
|
|
323
|
+
readonly ContainerConstraintsSubDescriptorMissing: "ST2067-50/ContainerConstraintsSubDescriptorMissing";
|
|
324
|
+
readonly FrameRate: "ST2067-50/FrameRate";
|
|
325
|
+
readonly HomogeneousImageEssence: "ST2067-50/HomogeneousImageEssence";
|
|
326
|
+
readonly SegmentDuration: "ST2067-50/SegmentDuration";
|
|
327
|
+
readonly MasteringDisplayItems: "ST2067-50/MasteringDisplayItems";
|
|
328
|
+
readonly TargetFrameCount: "ST2067-50/TargetFrameCount";
|
|
329
|
+
readonly TargetFrameItemsMissing: "ST2067-50/TargetFrameItemsMissing";
|
|
330
|
+
readonly TargetFrameAncillaryResourceId: "ST2067-50/TargetFrameAncillaryResourceId";
|
|
331
|
+
readonly TargetFrameMediaType: "ST2067-50/TargetFrameMediaType";
|
|
332
|
+
readonly TargetFrameIndex: "ST2067-50/TargetFrameIndex";
|
|
333
|
+
readonly TargetFrameAcesReference: "ST2067-50/TargetFrameAcesReference";
|
|
334
|
+
readonly TargetFrameViewingEnvironment: "ST2067-50/TargetFrameViewingEnvironment";
|
|
198
335
|
};
|
|
199
336
|
readonly ST2067_201: {
|
|
200
337
|
readonly CodecForbidden: "ST2067-201/CodecForbidden";
|
|
@@ -221,7 +358,11 @@ export declare const codes: {
|
|
|
221
358
|
readonly SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate";
|
|
222
359
|
readonly MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden";
|
|
223
360
|
readonly EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple";
|
|
361
|
+
readonly ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate";
|
|
224
362
|
readonly IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended";
|
|
363
|
+
readonly ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing";
|
|
364
|
+
readonly ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid";
|
|
365
|
+
readonly EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous";
|
|
225
366
|
};
|
|
226
367
|
readonly ST2067_202: {
|
|
227
368
|
readonly NamespaceUriMissing: "ST2067-202/NamespaceUriMissing";
|
|
@@ -232,6 +373,64 @@ export declare const codes: {
|
|
|
232
373
|
readonly ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing";
|
|
233
374
|
readonly DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing";
|
|
234
375
|
readonly DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid";
|
|
376
|
+
readonly EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid";
|
|
377
|
+
};
|
|
378
|
+
readonly ST2067_203: {
|
|
379
|
+
readonly SequenceResourceNotTrackFile: "ST2067-203/SequenceResourceNotTrackFile";
|
|
380
|
+
readonly VirtualTrackParameterSetMissing: "ST2067-203/VirtualTrackParameterSetMissing";
|
|
381
|
+
readonly VirtualTrackParameterSetDuplicate: "ST2067-203/VirtualTrackParameterSetDuplicate";
|
|
382
|
+
readonly VirtualTrackParameterSetIdDuplicate: "ST2067-203/VirtualTrackParameterSetIdDuplicate";
|
|
383
|
+
readonly VirtualTrackParameterSetOrphaned: "ST2067-203/VirtualTrackParameterSetOrphaned";
|
|
384
|
+
readonly VirtualTrackParameterSetInvalid: "ST2067-203/VirtualTrackParameterSetInvalid";
|
|
385
|
+
readonly OperationalModeUnknown: "ST2067-203/OperationalModeUnknown";
|
|
386
|
+
readonly OperationalModeNotRecognized: "ST2067-203/OperationalModeNotRecognized";
|
|
387
|
+
readonly SoundfieldGroupSelectorDuplicate: "ST2067-203/SoundfieldGroupSelectorDuplicate";
|
|
388
|
+
readonly SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-203/SoundfieldGroupSelectorResourceIdOrphaned";
|
|
389
|
+
readonly SoundfieldGroupLinkIdDuplicate: "ST2067-203/SoundfieldGroupLinkIdDuplicate";
|
|
390
|
+
readonly EditRateNotHomogeneous: "ST2067-203/EditRateNotHomogeneous";
|
|
391
|
+
readonly EditRateNotMultipleOfMainImage: "ST2067-203/EditRateNotMultipleOfMainImage";
|
|
392
|
+
readonly TrackFileNotMGA: "ST2067-203/TrackFileNotMGA";
|
|
393
|
+
readonly TrackFileAudioSampleRate: "ST2067-203/TrackFileAudioSampleRate";
|
|
394
|
+
readonly TrackFileQuantizationBits: "ST2067-203/TrackFileQuantizationBits";
|
|
395
|
+
readonly TrackFileSoundCompression: "ST2067-203/TrackFileSoundCompression";
|
|
396
|
+
readonly TrackFileReferenceItemMissing: "ST2067-203/TrackFileReferenceItemMissing";
|
|
397
|
+
readonly TrackFileNotClipWrapped: "ST2067-203/TrackFileNotClipWrapped";
|
|
398
|
+
readonly ContainerConstraintsSubDescriptorMissing: "ST2067-203/ContainerConstraintsSubDescriptorMissing";
|
|
399
|
+
readonly SADMSectionCount: "ST2067-203/SADMSectionCount";
|
|
400
|
+
readonly SADMSectionIdentifier: "ST2067-203/SADMSectionIdentifier";
|
|
401
|
+
readonly SADMSectionNotFirst: "ST2067-203/SADMSectionNotFirst";
|
|
402
|
+
readonly AudioMetadataPackUsed: "ST2067-203/AudioMetadataPackUsed";
|
|
403
|
+
readonly SADMSubDescriptorMismatch: "ST2067-203/SADMSubDescriptorMismatch";
|
|
404
|
+
readonly SADMProfileLevelULBatchMissing: "ST2067-203/SADMProfileLevelULBatchMissing";
|
|
405
|
+
readonly ForbiddenMCASubDescriptor: "ST2067-203/ForbiddenMCASubDescriptor";
|
|
406
|
+
readonly SoundfieldGroupLabelForSupplementalSection: "ST2067-203/SoundfieldGroupLabelForSupplementalSection";
|
|
407
|
+
readonly SoundfieldGroupLabelValue: "ST2067-203/SoundfieldGroupLabelValue";
|
|
408
|
+
readonly MCATagNameMissing: "ST2067-203/MCATagNameMissing";
|
|
409
|
+
readonly MCAChannelIDPresent: "ST2067-203/MCAChannelIDPresent";
|
|
410
|
+
readonly SoundfieldGroupLabelItemMissing: "ST2067-203/SoundfieldGroupLabelItemMissing";
|
|
411
|
+
readonly ResourceEditRateNotTrackFile: "ST2067-203/ResourceEditRateNotTrackFile";
|
|
412
|
+
readonly AudioSampleRateNotHomogeneous: "ST2067-203/AudioSampleRateNotHomogeneous";
|
|
413
|
+
readonly SoundfieldGroupLinkIdNotInTrackFile: "ST2067-203/SoundfieldGroupLinkIdNotInTrackFile";
|
|
414
|
+
readonly OperationalModeALabelItems: "ST2067-203/OperationalModeALabelItems";
|
|
415
|
+
};
|
|
416
|
+
readonly ST2067_204: {
|
|
417
|
+
readonly SequenceResourceNotTrackFile: "ST2067-204/SequenceResourceNotTrackFile";
|
|
418
|
+
readonly VirtualTrackParameterSetMissing: "ST2067-204/VirtualTrackParameterSetMissing";
|
|
419
|
+
readonly VirtualTrackParameterSetDuplicate: "ST2067-204/VirtualTrackParameterSetDuplicate";
|
|
420
|
+
readonly VirtualTrackParameterSetIdDuplicate: "ST2067-204/VirtualTrackParameterSetIdDuplicate";
|
|
421
|
+
readonly VirtualTrackParameterSetOrphaned: "ST2067-204/VirtualTrackParameterSetOrphaned";
|
|
422
|
+
readonly VirtualTrackParameterSetInvalid: "ST2067-204/VirtualTrackParameterSetInvalid";
|
|
423
|
+
readonly OperationalModeUnknown: "ST2067-204/OperationalModeUnknown";
|
|
424
|
+
readonly OperationalModeNotRecognized: "ST2067-204/OperationalModeNotRecognized";
|
|
425
|
+
readonly SoundfieldGroupSelectorDuplicate: "ST2067-204/SoundfieldGroupSelectorDuplicate";
|
|
426
|
+
readonly SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-204/SoundfieldGroupSelectorResourceIdOrphaned";
|
|
427
|
+
readonly SoundfieldGroupLinkIdDuplicate: "ST2067-204/SoundfieldGroupLinkIdDuplicate";
|
|
428
|
+
readonly EditRateNotHomogeneous: "ST2067-204/EditRateNotHomogeneous";
|
|
429
|
+
readonly TrackFileNotWAVEPCM: "ST2067-204/TrackFileNotWAVEPCM";
|
|
430
|
+
readonly TrackFileChannelAssignment: "ST2067-204/TrackFileChannelAssignment";
|
|
431
|
+
readonly ForbiddenMCASubDescriptor: "ST2067-204/ForbiddenMCASubDescriptor";
|
|
432
|
+
readonly ResourceEditRateNotTrackFile: "ST2067-204/ResourceEditRateNotTrackFile";
|
|
433
|
+
readonly AudioSampleRateNotHomogeneous: "ST2067-204/AudioSampleRateNotHomogeneous";
|
|
235
434
|
};
|
|
236
435
|
readonly XSD: {
|
|
237
436
|
readonly ElementMissing: "XSD/ElementMissing";
|
|
@@ -243,15 +442,20 @@ export declare const codes: {
|
|
|
243
442
|
readonly NotValidated: "XSD/NotValidated";
|
|
244
443
|
};
|
|
245
444
|
readonly IMFERNO: {
|
|
445
|
+
readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
|
|
446
|
+
readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
|
|
447
|
+
readonly TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated";
|
|
246
448
|
readonly EditionAssumed: "IMFERNO/EditionAssumed";
|
|
247
449
|
readonly EditionConflict: "IMFERNO/EditionConflict";
|
|
248
450
|
readonly EditionPinned: "IMFERNO/EditionPinned";
|
|
249
451
|
readonly PinNotApplied: "IMFERNO/PinNotApplied";
|
|
250
452
|
readonly DeliveryNotChecked: "IMFERNO/DeliveryNotChecked";
|
|
453
|
+
readonly DiskChecksNotRun: "IMFERNO/DiskChecksNotRun";
|
|
251
454
|
readonly OpenFailed: "IMFERNO/OpenFailed";
|
|
252
455
|
readonly PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed";
|
|
253
456
|
readonly RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed";
|
|
254
457
|
readonly MxfHeaderUnreadable: "IMFERNO/MxfHeaderUnreadable";
|
|
458
|
+
readonly MxfFooterNotLocated: "IMFERNO/MxfFooterNotLocated";
|
|
255
459
|
readonly EssenceContainersDetected: "IMFERNO/EssenceContainersDetected";
|
|
256
460
|
readonly IoError: "IMFERNO/IoError";
|
|
257
461
|
readonly UnreferencedAsset: "IMFERNO/UnreferencedAsset";
|
|
@@ -259,11 +463,13 @@ export declare const codes: {
|
|
|
259
463
|
readonly ParseError: "IMFERNO/ParseError";
|
|
260
464
|
readonly PklParseError: "IMFERNO/PklParseError";
|
|
261
465
|
readonly XmlAssetParseError: "IMFERNO/XmlAssetParseError";
|
|
466
|
+
readonly CplUnparseable: "IMFERNO/CplUnparseable";
|
|
262
467
|
readonly XmlReadError: "IMFERNO/XmlReadError";
|
|
263
468
|
readonly ReadDirError: "IMFERNO/ReadDirError";
|
|
264
469
|
readonly DirEntryError: "IMFERNO/DirEntryError";
|
|
265
470
|
readonly PathTraversal: "IMFERNO/PathTraversal";
|
|
266
471
|
readonly ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated";
|
|
472
|
+
readonly ApplicationNotFullyValidated: "IMFERNO/ApplicationNotFullyValidated";
|
|
267
473
|
readonly RuleNotInEdition: "IMFERNO/RuleNotInEdition";
|
|
268
474
|
}
|
|
269
475
|
};
|
package/codes.js
CHANGED
|
@@ -8,6 +8,16 @@ const codes = {
|
|
|
8
8
|
HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen",
|
|
9
9
|
MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata",
|
|
10
10
|
StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing",
|
|
11
|
+
FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing",
|
|
12
|
+
PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete",
|
|
13
|
+
PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete",
|
|
14
|
+
OpenPartitionEssenceContainersIncomplete: "ST377-1/OpenPartitionEssenceContainersIncomplete",
|
|
15
|
+
FooterPartitionMissing: "ST377-1/FooterPartitionMissing",
|
|
16
|
+
RunInPresent: "ST377-1/RunInPresent",
|
|
17
|
+
OperationalPatternMarkerBit: "ST377-1/OperationalPatternMarkerBit",
|
|
18
|
+
SequenceDurationMismatch: "ST377-1/SequenceDurationMismatch",
|
|
19
|
+
StaticTrackComponentDuration: "ST377-1/StaticTrackComponentDuration",
|
|
20
|
+
StaticTrackDmComponentDuration: "ST377-1/StaticTrackDmComponentDuration",
|
|
11
21
|
},
|
|
12
22
|
ST377_4: {
|
|
13
23
|
MCALinkIDMissing: "ST377-4/MCALinkIDMissing",
|
|
@@ -19,6 +29,7 @@ const codes = {
|
|
|
19
29
|
ST429_8: {
|
|
20
30
|
SizeMismatch: "ST429-8/SizeMismatch",
|
|
21
31
|
ChecksumMismatch: "ST429-8/ChecksumMismatch",
|
|
32
|
+
MalformedXml: "ST429-8/MalformedXml",
|
|
22
33
|
},
|
|
23
34
|
ST429_9: {
|
|
24
35
|
AssetListEmpty: "ST429-9/AssetListEmpty",
|
|
@@ -33,10 +44,21 @@ const codes = {
|
|
|
33
44
|
AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
|
|
34
45
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
35
46
|
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
47
|
+
PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
|
|
48
|
+
VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
|
|
49
|
+
ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
|
|
50
|
+
ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
|
|
51
|
+
ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
|
|
52
|
+
ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
|
|
53
|
+
SymbolicLink: "ST429-9/SymbolicLink",
|
|
36
54
|
},
|
|
37
55
|
ST2067_2: {
|
|
38
56
|
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
57
|
+
ApplicationCplMismatch: "ST2067-2/ApplicationCplMismatch",
|
|
58
|
+
ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
|
|
59
|
+
ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
|
|
39
60
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
61
|
+
NoPackingList: "ST2067-2/NoPackingList",
|
|
40
62
|
NoCpls: "ST2067-2/NoCpls",
|
|
41
63
|
SizeMismatch: "ST2067-2/SizeMismatch",
|
|
42
64
|
FileNotFound: "ST2067-2/FileNotFound",
|
|
@@ -58,6 +80,8 @@ const codes = {
|
|
|
58
80
|
SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount",
|
|
59
81
|
DigitalSignature: "ST2067-2/DigitalSignature",
|
|
60
82
|
EssenceDescriptorList: "ST2067-2/EssenceDescriptorList",
|
|
83
|
+
EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing",
|
|
84
|
+
EssenceDescriptorDiffersFromTrackFile: "ST2067-2/EssenceDescriptorDiffersFromTrackFile",
|
|
61
85
|
CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch",
|
|
62
86
|
OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A",
|
|
63
87
|
SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM",
|
|
@@ -86,8 +110,23 @@ const codes = {
|
|
|
86
110
|
TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC",
|
|
87
111
|
TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported",
|
|
88
112
|
TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
|
|
113
|
+
TimedTextDataEssenceCodingPresent: "ST2067-2/TimedTextDataEssenceCodingPresent",
|
|
114
|
+
TopLevelFilePackageOriginNotZero: "ST2067-2/TopLevelFilePackageOriginNotZero",
|
|
115
|
+
TopLevelFilePackageFiller: "ST2067-2/TopLevelFilePackageFiller",
|
|
89
116
|
MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
|
|
90
117
|
AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
|
|
118
|
+
TrackFileMediaType: "ST2067-2/TrackFileMediaType",
|
|
119
|
+
CompositionEditRateMismatch: "ST2067-2/CompositionEditRateMismatch",
|
|
120
|
+
MainImageEditRateMismatch: "ST2067-2/MainImageEditRateMismatch",
|
|
121
|
+
AudioEditRateMismatch: "ST2067-2/AudioEditRateMismatch",
|
|
122
|
+
ContentVersionMissing: "ST2067-2/ContentVersionMissing",
|
|
123
|
+
ReferenceImageEditRateMissing: "ST2067-2/ReferenceImageEditRateMissing",
|
|
124
|
+
ReferenceImageEditRateMismatch: "ST2067-2/ReferenceImageEditRateMismatch",
|
|
125
|
+
AssetIdPackageUidMismatch: "ST2067-2/AssetIdPackageUidMismatch",
|
|
126
|
+
TrackFileIdPackageUidMismatch: "ST2067-2/TrackFileIdPackageUidMismatch",
|
|
127
|
+
PackageUidForm: "ST2067-2/PackageUidForm",
|
|
128
|
+
UuidNotVersion4: "ST2067-2/UuidNotVersion4",
|
|
129
|
+
AssetIdNotType5: "ST2067-2/AssetIdNotType5",
|
|
91
130
|
},
|
|
92
131
|
ST2067_3: {
|
|
93
132
|
ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
|
|
@@ -113,11 +152,27 @@ const codes = {
|
|
|
113
152
|
ResourceDuration: "ST2067-3/ResourceDuration",
|
|
114
153
|
RepeatCount: "ST2067-3/RepeatCount",
|
|
115
154
|
TrackFileId: "ST2067-3/TrackFileId",
|
|
155
|
+
SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
|
|
116
156
|
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
157
|
+
VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
|
|
158
|
+
ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType",
|
|
159
|
+
ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
|
|
160
|
+
MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
|
|
117
161
|
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
162
|
+
CplMediaType: "ST2067-3/CplMediaType",
|
|
163
|
+
UniqueSequenceId: "ST2067-3/UniqueSequenceId",
|
|
164
|
+
ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
|
|
165
|
+
LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
|
|
166
|
+
SignerWithoutSignature: "ST2067-3/SignerWithoutSignature",
|
|
167
|
+
SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner",
|
|
168
|
+
HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing",
|
|
169
|
+
HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash",
|
|
170
|
+
ResourceHashMismatch: "ST2067-3/ResourceHashMismatch",
|
|
118
171
|
},
|
|
119
172
|
ST2067_5: {
|
|
120
173
|
OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
|
|
174
|
+
KagSizeNotOne: "ST2067-5/KagSizeNotOne",
|
|
175
|
+
EssenceContainerLabelNotSingle: "ST2067-5/EssenceContainerLabelNotSingle",
|
|
121
176
|
},
|
|
122
177
|
ST2067_9: {
|
|
123
178
|
MalformedXml: "ST2067-9/MalformedXml",
|
|
@@ -129,6 +184,57 @@ const codes = {
|
|
|
129
184
|
CplNotFound: "ST2067-9/CplNotFound",
|
|
130
185
|
DuplicateCplId: "ST2067-9/DuplicateCplId",
|
|
131
186
|
},
|
|
187
|
+
ST2067_20: {
|
|
188
|
+
ApplicationIdentification: "ST2067-20/ApplicationIdentification",
|
|
189
|
+
AppIdMismatch: "ST2067-20/AppIdMismatch",
|
|
190
|
+
ImageCharacteristics: "ST2067-20/ImageCharacteristics",
|
|
191
|
+
TransferCharacteristic: "ST2067-20/TransferCharacteristic",
|
|
192
|
+
CodingEquations: "ST2067-20/CodingEquations",
|
|
193
|
+
ColorPrimaries: "ST2067-20/ColorPrimaries",
|
|
194
|
+
J2KRequired: "ST2067-20/J2KRequired",
|
|
195
|
+
PictureEssenceCoding: "ST2067-20/PictureEssenceCoding",
|
|
196
|
+
FrameLayout: "ST2067-20/FrameLayout",
|
|
197
|
+
StoredF2Offset: "ST2067-20/StoredF2Offset",
|
|
198
|
+
SampledWidth: "ST2067-20/SampledWidth",
|
|
199
|
+
SampledHeight: "ST2067-20/SampledHeight",
|
|
200
|
+
SampledXOffset: "ST2067-20/SampledXOffset",
|
|
201
|
+
SampledYOffset: "ST2067-20/SampledYOffset",
|
|
202
|
+
DisplayF2Offset: "ST2067-20/DisplayF2Offset",
|
|
203
|
+
AlphaTransparency: "ST2067-20/AlphaTransparency",
|
|
204
|
+
ImageAlignmentOffset: "ST2067-20/ImageAlignmentOffset",
|
|
205
|
+
ImageStartOffset: "ST2067-20/ImageStartOffset",
|
|
206
|
+
ImageEndOffset: "ST2067-20/ImageEndOffset",
|
|
207
|
+
FieldDominance: "ST2067-20/FieldDominance",
|
|
208
|
+
TransferCharacteristicMissing: "ST2067-20/TransferCharacteristicMissing",
|
|
209
|
+
ColorPrimariesMissing: "ST2067-20/ColorPrimariesMissing",
|
|
210
|
+
CodingEquationsMissing: "ST2067-20/CodingEquationsMissing",
|
|
211
|
+
RequiredPictureCompression: "ST2067-20/RequiredPictureCompression",
|
|
212
|
+
ComponentMaxRef: "ST2067-20/ComponentMaxRef",
|
|
213
|
+
ComponentMinRef: "ST2067-20/ComponentMinRef",
|
|
214
|
+
AlphaMaxRef: "ST2067-20/AlphaMaxRef",
|
|
215
|
+
AlphaMinRef: "ST2067-20/AlphaMinRef",
|
|
216
|
+
ScanningDirection: "ST2067-20/ScanningDirection",
|
|
217
|
+
Palette: "ST2067-20/Palette",
|
|
218
|
+
PaletteLayout: "ST2067-20/PaletteLayout",
|
|
219
|
+
ComponentRefValues: "ST2067-20/ComponentRefValues",
|
|
220
|
+
ComponentDepth: "ST2067-20/ComponentDepth",
|
|
221
|
+
VerticalSubsampling: "ST2067-20/VerticalSubsampling",
|
|
222
|
+
ColorSiting: "ST2067-20/ColorSiting",
|
|
223
|
+
ReversedByteOrder: "ST2067-20/ReversedByteOrder",
|
|
224
|
+
PaddingBits: "ST2067-20/PaddingBits",
|
|
225
|
+
AlphaSampleDepth: "ST2067-20/AlphaSampleDepth",
|
|
226
|
+
RefLevelMissing: "ST2067-20/RefLevelMissing",
|
|
227
|
+
HorizontalSubsampling: "ST2067-20/HorizontalSubsampling",
|
|
228
|
+
BlackRefLevel: "ST2067-20/BlackRefLevel",
|
|
229
|
+
WhiteRefLevel: "ST2067-20/WhiteRefLevel",
|
|
230
|
+
ColorRange: "ST2067-20/ColorRange",
|
|
231
|
+
Jpeg2000SubDescriptor: "ST2067-20/Jpeg2000SubDescriptor",
|
|
232
|
+
CodingStyle: "ST2067-20/CodingStyle",
|
|
233
|
+
J2CLayout: "ST2067-20/J2CLayout",
|
|
234
|
+
J2CLayoutValue: "ST2067-20/J2CLayoutValue",
|
|
235
|
+
HomogeneousImageEssence: "ST2067-20/HomogeneousImageEssence",
|
|
236
|
+
SegmentDurationMultiple: "ST2067-20/SegmentDurationMultiple",
|
|
237
|
+
},
|
|
132
238
|
ST2067_21: {
|
|
133
239
|
ColorSystem: "ST2067-21/ColorSystem",
|
|
134
240
|
BlackRefLevel: "ST2067-21/BlackRefLevel",
|
|
@@ -195,6 +301,37 @@ const codes = {
|
|
|
195
301
|
HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax",
|
|
196
302
|
HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended",
|
|
197
303
|
J2K8KResolution: "ST2067-21/J2K8KResolution",
|
|
304
|
+
RefLevelMissing: "ST2067-21/RefLevelMissing",
|
|
305
|
+
DisplayF2Offset: "ST2067-21/DisplayF2Offset",
|
|
306
|
+
J2CLayoutValue: "ST2067-21/J2CLayoutValue",
|
|
307
|
+
PictureEssenceCoding: "ST2067-21/PictureEssenceCoding",
|
|
308
|
+
HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints",
|
|
309
|
+
},
|
|
310
|
+
ST2067_50: {
|
|
311
|
+
ApplicationIdentification: "ST2067-50/ApplicationIdentification",
|
|
312
|
+
ImageDescriptorNotRgba: "ST2067-50/ImageDescriptorNotRgba",
|
|
313
|
+
EssenceContainer: "ST2067-50/EssenceContainer",
|
|
314
|
+
PictureEssenceCoding: "ST2067-50/PictureEssenceCoding",
|
|
315
|
+
TransferCharacteristic: "ST2067-50/TransferCharacteristic",
|
|
316
|
+
ColorPrimaries: "ST2067-50/ColorPrimaries",
|
|
317
|
+
DescriptorItemNotAllowed: "ST2067-50/DescriptorItemNotAllowed",
|
|
318
|
+
FrameLayout: "ST2067-50/FrameLayout",
|
|
319
|
+
SampledArea: "ST2067-50/SampledArea",
|
|
320
|
+
VideoLineMap: "ST2067-50/VideoLineMap",
|
|
321
|
+
ScanningDirection: "ST2067-50/ScanningDirection",
|
|
322
|
+
PixelLayout: "ST2067-50/PixelLayout",
|
|
323
|
+
ContainerConstraintsSubDescriptorMissing: "ST2067-50/ContainerConstraintsSubDescriptorMissing",
|
|
324
|
+
FrameRate: "ST2067-50/FrameRate",
|
|
325
|
+
HomogeneousImageEssence: "ST2067-50/HomogeneousImageEssence",
|
|
326
|
+
SegmentDuration: "ST2067-50/SegmentDuration",
|
|
327
|
+
MasteringDisplayItems: "ST2067-50/MasteringDisplayItems",
|
|
328
|
+
TargetFrameCount: "ST2067-50/TargetFrameCount",
|
|
329
|
+
TargetFrameItemsMissing: "ST2067-50/TargetFrameItemsMissing",
|
|
330
|
+
TargetFrameAncillaryResourceId: "ST2067-50/TargetFrameAncillaryResourceId",
|
|
331
|
+
TargetFrameMediaType: "ST2067-50/TargetFrameMediaType",
|
|
332
|
+
TargetFrameIndex: "ST2067-50/TargetFrameIndex",
|
|
333
|
+
TargetFrameAcesReference: "ST2067-50/TargetFrameAcesReference",
|
|
334
|
+
TargetFrameViewingEnvironment: "ST2067-50/TargetFrameViewingEnvironment",
|
|
198
335
|
},
|
|
199
336
|
ST2067_201: {
|
|
200
337
|
CodecForbidden: "ST2067-201/CodecForbidden",
|
|
@@ -221,7 +358,11 @@ const codes = {
|
|
|
221
358
|
SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate",
|
|
222
359
|
MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden",
|
|
223
360
|
EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple",
|
|
361
|
+
ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate",
|
|
224
362
|
IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended",
|
|
363
|
+
ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing",
|
|
364
|
+
ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid",
|
|
365
|
+
EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous",
|
|
225
366
|
},
|
|
226
367
|
ST2067_202: {
|
|
227
368
|
NamespaceUriMissing: "ST2067-202/NamespaceUriMissing",
|
|
@@ -232,6 +373,64 @@ const codes = {
|
|
|
232
373
|
ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing",
|
|
233
374
|
DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing",
|
|
234
375
|
DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid",
|
|
376
|
+
EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid",
|
|
377
|
+
},
|
|
378
|
+
ST2067_203: {
|
|
379
|
+
SequenceResourceNotTrackFile: "ST2067-203/SequenceResourceNotTrackFile",
|
|
380
|
+
VirtualTrackParameterSetMissing: "ST2067-203/VirtualTrackParameterSetMissing",
|
|
381
|
+
VirtualTrackParameterSetDuplicate: "ST2067-203/VirtualTrackParameterSetDuplicate",
|
|
382
|
+
VirtualTrackParameterSetIdDuplicate: "ST2067-203/VirtualTrackParameterSetIdDuplicate",
|
|
383
|
+
VirtualTrackParameterSetOrphaned: "ST2067-203/VirtualTrackParameterSetOrphaned",
|
|
384
|
+
VirtualTrackParameterSetInvalid: "ST2067-203/VirtualTrackParameterSetInvalid",
|
|
385
|
+
OperationalModeUnknown: "ST2067-203/OperationalModeUnknown",
|
|
386
|
+
OperationalModeNotRecognized: "ST2067-203/OperationalModeNotRecognized",
|
|
387
|
+
SoundfieldGroupSelectorDuplicate: "ST2067-203/SoundfieldGroupSelectorDuplicate",
|
|
388
|
+
SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-203/SoundfieldGroupSelectorResourceIdOrphaned",
|
|
389
|
+
SoundfieldGroupLinkIdDuplicate: "ST2067-203/SoundfieldGroupLinkIdDuplicate",
|
|
390
|
+
EditRateNotHomogeneous: "ST2067-203/EditRateNotHomogeneous",
|
|
391
|
+
EditRateNotMultipleOfMainImage: "ST2067-203/EditRateNotMultipleOfMainImage",
|
|
392
|
+
TrackFileNotMGA: "ST2067-203/TrackFileNotMGA",
|
|
393
|
+
TrackFileAudioSampleRate: "ST2067-203/TrackFileAudioSampleRate",
|
|
394
|
+
TrackFileQuantizationBits: "ST2067-203/TrackFileQuantizationBits",
|
|
395
|
+
TrackFileSoundCompression: "ST2067-203/TrackFileSoundCompression",
|
|
396
|
+
TrackFileReferenceItemMissing: "ST2067-203/TrackFileReferenceItemMissing",
|
|
397
|
+
TrackFileNotClipWrapped: "ST2067-203/TrackFileNotClipWrapped",
|
|
398
|
+
ContainerConstraintsSubDescriptorMissing: "ST2067-203/ContainerConstraintsSubDescriptorMissing",
|
|
399
|
+
SADMSectionCount: "ST2067-203/SADMSectionCount",
|
|
400
|
+
SADMSectionIdentifier: "ST2067-203/SADMSectionIdentifier",
|
|
401
|
+
SADMSectionNotFirst: "ST2067-203/SADMSectionNotFirst",
|
|
402
|
+
AudioMetadataPackUsed: "ST2067-203/AudioMetadataPackUsed",
|
|
403
|
+
SADMSubDescriptorMismatch: "ST2067-203/SADMSubDescriptorMismatch",
|
|
404
|
+
SADMProfileLevelULBatchMissing: "ST2067-203/SADMProfileLevelULBatchMissing",
|
|
405
|
+
ForbiddenMCASubDescriptor: "ST2067-203/ForbiddenMCASubDescriptor",
|
|
406
|
+
SoundfieldGroupLabelForSupplementalSection: "ST2067-203/SoundfieldGroupLabelForSupplementalSection",
|
|
407
|
+
SoundfieldGroupLabelValue: "ST2067-203/SoundfieldGroupLabelValue",
|
|
408
|
+
MCATagNameMissing: "ST2067-203/MCATagNameMissing",
|
|
409
|
+
MCAChannelIDPresent: "ST2067-203/MCAChannelIDPresent",
|
|
410
|
+
SoundfieldGroupLabelItemMissing: "ST2067-203/SoundfieldGroupLabelItemMissing",
|
|
411
|
+
ResourceEditRateNotTrackFile: "ST2067-203/ResourceEditRateNotTrackFile",
|
|
412
|
+
AudioSampleRateNotHomogeneous: "ST2067-203/AudioSampleRateNotHomogeneous",
|
|
413
|
+
SoundfieldGroupLinkIdNotInTrackFile: "ST2067-203/SoundfieldGroupLinkIdNotInTrackFile",
|
|
414
|
+
OperationalModeALabelItems: "ST2067-203/OperationalModeALabelItems",
|
|
415
|
+
},
|
|
416
|
+
ST2067_204: {
|
|
417
|
+
SequenceResourceNotTrackFile: "ST2067-204/SequenceResourceNotTrackFile",
|
|
418
|
+
VirtualTrackParameterSetMissing: "ST2067-204/VirtualTrackParameterSetMissing",
|
|
419
|
+
VirtualTrackParameterSetDuplicate: "ST2067-204/VirtualTrackParameterSetDuplicate",
|
|
420
|
+
VirtualTrackParameterSetIdDuplicate: "ST2067-204/VirtualTrackParameterSetIdDuplicate",
|
|
421
|
+
VirtualTrackParameterSetOrphaned: "ST2067-204/VirtualTrackParameterSetOrphaned",
|
|
422
|
+
VirtualTrackParameterSetInvalid: "ST2067-204/VirtualTrackParameterSetInvalid",
|
|
423
|
+
OperationalModeUnknown: "ST2067-204/OperationalModeUnknown",
|
|
424
|
+
OperationalModeNotRecognized: "ST2067-204/OperationalModeNotRecognized",
|
|
425
|
+
SoundfieldGroupSelectorDuplicate: "ST2067-204/SoundfieldGroupSelectorDuplicate",
|
|
426
|
+
SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-204/SoundfieldGroupSelectorResourceIdOrphaned",
|
|
427
|
+
SoundfieldGroupLinkIdDuplicate: "ST2067-204/SoundfieldGroupLinkIdDuplicate",
|
|
428
|
+
EditRateNotHomogeneous: "ST2067-204/EditRateNotHomogeneous",
|
|
429
|
+
TrackFileNotWAVEPCM: "ST2067-204/TrackFileNotWAVEPCM",
|
|
430
|
+
TrackFileChannelAssignment: "ST2067-204/TrackFileChannelAssignment",
|
|
431
|
+
ForbiddenMCASubDescriptor: "ST2067-204/ForbiddenMCASubDescriptor",
|
|
432
|
+
ResourceEditRateNotTrackFile: "ST2067-204/ResourceEditRateNotTrackFile",
|
|
433
|
+
AudioSampleRateNotHomogeneous: "ST2067-204/AudioSampleRateNotHomogeneous",
|
|
235
434
|
},
|
|
236
435
|
XSD: {
|
|
237
436
|
ElementMissing: "XSD/ElementMissing",
|
|
@@ -243,15 +442,20 @@ const codes = {
|
|
|
243
442
|
NotValidated: "XSD/NotValidated",
|
|
244
443
|
},
|
|
245
444
|
IMFERNO: {
|
|
445
|
+
ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
|
|
446
|
+
SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
|
|
447
|
+
TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated",
|
|
246
448
|
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
247
449
|
EditionConflict: "IMFERNO/EditionConflict",
|
|
248
450
|
EditionPinned: "IMFERNO/EditionPinned",
|
|
249
451
|
PinNotApplied: "IMFERNO/PinNotApplied",
|
|
250
452
|
DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
|
|
453
|
+
DiskChecksNotRun: "IMFERNO/DiskChecksNotRun",
|
|
251
454
|
OpenFailed: "IMFERNO/OpenFailed",
|
|
252
455
|
PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
|
|
253
456
|
RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed",
|
|
254
457
|
MxfHeaderUnreadable: "IMFERNO/MxfHeaderUnreadable",
|
|
458
|
+
MxfFooterNotLocated: "IMFERNO/MxfFooterNotLocated",
|
|
255
459
|
EssenceContainersDetected: "IMFERNO/EssenceContainersDetected",
|
|
256
460
|
IoError: "IMFERNO/IoError",
|
|
257
461
|
UnreferencedAsset: "IMFERNO/UnreferencedAsset",
|
|
@@ -259,11 +463,13 @@ const codes = {
|
|
|
259
463
|
ParseError: "IMFERNO/ParseError",
|
|
260
464
|
PklParseError: "IMFERNO/PklParseError",
|
|
261
465
|
XmlAssetParseError: "IMFERNO/XmlAssetParseError",
|
|
466
|
+
CplUnparseable: "IMFERNO/CplUnparseable",
|
|
262
467
|
XmlReadError: "IMFERNO/XmlReadError",
|
|
263
468
|
ReadDirError: "IMFERNO/ReadDirError",
|
|
264
469
|
DirEntryError: "IMFERNO/DirEntryError",
|
|
265
470
|
PathTraversal: "IMFERNO/PathTraversal",
|
|
266
471
|
ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated",
|
|
472
|
+
ApplicationNotFullyValidated: "IMFERNO/ApplicationNotFullyValidated",
|
|
267
473
|
RuleNotInEdition: "IMFERNO/RuleNotInEdition",
|
|
268
474
|
}
|
|
269
475
|
};
|
package/index.d.ts
CHANGED
|
@@ -13,10 +13,18 @@ import type {
|
|
|
13
13
|
export * from "./types";
|
|
14
14
|
export { codes } from "./codes";
|
|
15
15
|
|
|
16
|
-
/** Options for validating a package on disk (`validatePath`, `buildReportFromPath`). */
|
|
16
|
+
/** Options for validating a package on disk (`validatePath`, `buildReportFromPath` and their `…Async` variants). */
|
|
17
17
|
export interface PathValidateOptions extends ValidateOptions {
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Skip every disk read: asset presence, size and hash checks and MXF
|
|
20
|
+
* header checks (implies `skipHashes`). Only the XML is validated. Default: `false`.
|
|
21
|
+
*/
|
|
19
22
|
skipDiskChecks?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Skip hashing the assets against their Packing List `<Hash>`; presence and
|
|
25
|
+
* size are still checked. Hashing reads every asset. Default: `false`.
|
|
26
|
+
*/
|
|
27
|
+
skipHashes?: boolean;
|
|
20
28
|
}
|
|
21
29
|
|
|
22
30
|
/** Explicit S3 credentials for `s3://` URIs. Omit to use the default AWS credential chain. */
|
|
@@ -28,7 +36,12 @@ export interface S3Credentials {
|
|
|
28
36
|
endpoint?: string;
|
|
29
37
|
}
|
|
30
38
|
|
|
31
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Options for `validateUri` / `buildReportFromUri` (and their `…Async` variants).
|
|
41
|
+
* For an `s3://` URI only the XML is read: the disk checks do not run, and the
|
|
42
|
+
* result carries an `IMFERNO:Package/DiskChecksNotRun` notice unless
|
|
43
|
+
* `skipDiskChecks` is set.
|
|
44
|
+
*/
|
|
32
45
|
export interface UriValidateOptions extends PathValidateOptions {
|
|
33
46
|
/** Ignored for filesystem URIs. */
|
|
34
47
|
credentials?: S3Credentials | null;
|
|
@@ -58,13 +71,26 @@ export declare function buildReport(files: Record<string, string>, options?: Val
|
|
|
58
71
|
* Validate an IMF package directory on disk, returning the legacy
|
|
59
72
|
* `ImfReport` summary. Prefer `validatePath` for new code.
|
|
60
73
|
*
|
|
74
|
+
* Hashes the assets in parallel and blocks until done; see
|
|
75
|
+
* `buildReportFromPathAsync`.
|
|
76
|
+
*
|
|
61
77
|
* @param path - Path to the IMP directory
|
|
62
|
-
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
|
|
78
|
+
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `skipHashes`, `rules`, `aggregateRepeats`)
|
|
63
79
|
* @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
|
|
64
80
|
* @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
|
|
65
81
|
*/
|
|
66
82
|
export declare function buildReportFromPath(path: string, options?: PathValidateOptions | undefined | null): ImfReport
|
|
67
83
|
|
|
84
|
+
/**
|
|
85
|
+
* `buildReportFromPath` on the libuv thread pool: the event loop keeps
|
|
86
|
+
* running while the assets are hashed.
|
|
87
|
+
*
|
|
88
|
+
* @param path - Path to the IMP directory
|
|
89
|
+
* @param options - Optional validation options, as for `buildReportFromPath`
|
|
90
|
+
* @returns A Promise of the `ImfReport`; rejects where `buildReportFromPath` throws.
|
|
91
|
+
*/
|
|
92
|
+
export declare function buildReportFromPathAsync(path: string, options?: PathValidateOptions | undefined | null): Promise<ImfReport>
|
|
93
|
+
|
|
68
94
|
/**
|
|
69
95
|
* Build the legacy `ImfReport` summary from a URI. Accepts the same URI forms
|
|
70
96
|
* as `validateUri`; prefer `validateUri` for new code.
|
|
@@ -76,6 +102,15 @@ export declare function buildReportFromPath(path: string, options?: PathValidate
|
|
|
76
102
|
*/
|
|
77
103
|
export declare function buildReportFromUri(uri: string, options?: UriValidateOptions | undefined | null): ImfReport
|
|
78
104
|
|
|
105
|
+
/**
|
|
106
|
+
* `buildReportFromUri` on the libuv thread pool.
|
|
107
|
+
*
|
|
108
|
+
* @param uri - Path or URI to the IMP
|
|
109
|
+
* @param options - Optional validation options, as for `buildReportFromUri`
|
|
110
|
+
* @returns A Promise of the `ImfReport`; rejects where `buildReportFromUri` throws.
|
|
111
|
+
*/
|
|
112
|
+
export declare function buildReportFromUriAsync(uri: string, options?: UriValidateOptions | undefined | null): Promise<ImfReport>
|
|
113
|
+
|
|
79
114
|
/**
|
|
80
115
|
* Pretty-print a validation result as a human-readable string.
|
|
81
116
|
*
|
|
@@ -139,25 +174,44 @@ export declare function toSarif(report: ValidationResult | ValidationReport): Sa
|
|
|
139
174
|
* @param files - A map of filename to XML content
|
|
140
175
|
* @param options - Optional validation options
|
|
141
176
|
* @returns `{ package, validation }` — the full parsed package and all findings.
|
|
142
|
-
* @throws Only if the options are invalid.
|
|
177
|
+
* @throws Only if the options are invalid (wrong type, unknown key).
|
|
143
178
|
*/
|
|
144
179
|
export declare function validate(files: Record<string, string>, options?: ValidateOptions | undefined | null): ValidationResult
|
|
145
180
|
|
|
146
181
|
/**
|
|
147
182
|
* Parse and validate an IMF package directory on disk.
|
|
148
183
|
*
|
|
184
|
+
* Like the CLI, checks every asset's presence and size and hashes it against
|
|
185
|
+
* its Packing List `<Hash>` unless `skipHashes` (or `skipDiskChecks`) is set.
|
|
186
|
+
* Hashing reads every asset (several at a time) and blocks until done; use
|
|
187
|
+
* `validatePathAsync` to keep the event loop running.
|
|
188
|
+
*
|
|
149
189
|
* @param path - Path to the IMP directory
|
|
150
190
|
* @param options - Optional validation options
|
|
151
191
|
* @returns `{ package, validation }` — the full parsed package and all findings.
|
|
152
|
-
* @throws If the directory cannot be read or the options are invalid
|
|
192
|
+
* @throws If the directory cannot be read or the options are invalid
|
|
193
|
+
* (wrong type, unknown key).
|
|
153
194
|
*/
|
|
154
195
|
export declare function validatePath(path: string, options?: PathValidateOptions | undefined | null): ValidationResult
|
|
155
196
|
|
|
197
|
+
/**
|
|
198
|
+
* `validatePath` on the libuv thread pool: the event loop keeps running
|
|
199
|
+
* while the assets are hashed. Same result as `validatePath`.
|
|
200
|
+
*
|
|
201
|
+
* @param path - Path to the IMP directory
|
|
202
|
+
* @param options - Optional validation options, as for `validatePath`
|
|
203
|
+
* @returns A Promise of `{ package, validation }`; rejects where `validatePath` throws.
|
|
204
|
+
*/
|
|
205
|
+
export declare function validatePathAsync(path: string, options?: PathValidateOptions | undefined | null): Promise<ValidationResult>
|
|
206
|
+
|
|
156
207
|
/**
|
|
157
208
|
* Parse and validate an IMF package from a URI.
|
|
158
209
|
*
|
|
159
210
|
* Accepts `file://` URIs, bare filesystem paths, and (when built with the
|
|
160
211
|
* `aws-s3` feature, as the prebuilt npm binaries are) `s3://bucket/prefix/`.
|
|
212
|
+
* Local packages get the disk checks of `validatePath`. An `s3://` package
|
|
213
|
+
* has only its XML read: presence, size and hash checks are not run, and the
|
|
214
|
+
* result says so with an `IMFERNO:Package/DiskChecksNotRun` notice.
|
|
161
215
|
*
|
|
162
216
|
* @param uri - Path or URI to the IMP
|
|
163
217
|
* @param options - Optional validation options (plus `credentials` for S3)
|
|
@@ -165,3 +219,14 @@ export declare function validatePath(path: string, options?: PathValidateOptions
|
|
|
165
219
|
* @throws If the URI cannot be read or the options are invalid.
|
|
166
220
|
*/
|
|
167
221
|
export declare function validateUri(uri: string, options?: UriValidateOptions | undefined | null): ValidationResult
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* `validateUri` on the libuv thread pool: the event loop keeps running
|
|
225
|
+
* while the package is read and its assets are hashed. Same result as
|
|
226
|
+
* `validateUri`.
|
|
227
|
+
*
|
|
228
|
+
* @param uri - Path or URI to the IMP
|
|
229
|
+
* @param options - Optional validation options (plus `credentials` for S3)
|
|
230
|
+
* @returns A Promise of `{ package, validation }`; rejects where `validateUri` throws.
|
|
231
|
+
*/
|
|
232
|
+
export declare function validateUriAsync(uri: string, options?: UriValidateOptions | undefined | null): Promise<ValidationResult>
|
package/index.mjs
CHANGED
|
@@ -49,12 +49,16 @@ export const {
|
|
|
49
49
|
buildReport,
|
|
50
50
|
buildReportFromPath,
|
|
51
51
|
buildReportFromUri,
|
|
52
|
+
buildReportFromPathAsync,
|
|
53
|
+
buildReportFromUriAsync,
|
|
52
54
|
formatReport,
|
|
53
55
|
parsePackage,
|
|
54
56
|
parsePackageFromPath,
|
|
55
57
|
validate,
|
|
56
58
|
validatePath,
|
|
57
59
|
validateUri,
|
|
60
|
+
validatePathAsync,
|
|
61
|
+
validateUriAsync,
|
|
58
62
|
listRules,
|
|
59
63
|
toSarif,
|
|
60
64
|
} = nativeModule;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.659f131",
|
|
4
4
|
"description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@imferno/node-darwin-arm64": "3.0.2-beta.
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-beta.
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-beta.
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-beta.
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-beta.
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-beta.
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-beta.659f131",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-beta.659f131",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-beta.659f131",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-beta.659f131",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-beta.659f131",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-beta.659f131"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -6,6 +6,18 @@
|
|
|
6
6
|
* ship their own copy: the WASM build serialises some CPL fields in camelCase.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
export type RuleValidationReason =
|
|
10
|
+
| {
|
|
11
|
+
kind: "unknown_source";
|
|
12
|
+
variant: string;
|
|
13
|
+
}
|
|
14
|
+
| {
|
|
15
|
+
kind: "matches_nothing";
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
hint: string;
|
|
19
|
+
kind: "unsupported_pattern";
|
|
20
|
+
};
|
|
9
21
|
/**
|
|
10
22
|
* A SMPTE IMF UUID, serialised as a bare UUID string (e.g. "0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85")
|
|
11
23
|
*/
|
|
@@ -54,9 +66,13 @@ export type Spec =
|
|
|
54
66
|
| "ST2067-3"
|
|
55
67
|
| "ST2067-5"
|
|
56
68
|
| "ST2067-9"
|
|
69
|
+
| "ST2067-20"
|
|
57
70
|
| "ST2067-21"
|
|
71
|
+
| "ST2067-50"
|
|
58
72
|
| "ST2067-201"
|
|
59
73
|
| "ST2067-202"
|
|
74
|
+
| "ST2067-203"
|
|
75
|
+
| "ST2067-204"
|
|
60
76
|
| "XSD"
|
|
61
77
|
| "IMFERNO";
|
|
62
78
|
/**
|
|
@@ -103,6 +119,7 @@ export type ColorPrimaries =
|
|
|
103
119
|
| "Bt2020"
|
|
104
120
|
| "DciP3"
|
|
105
121
|
| "P3D65"
|
|
122
|
+
| "Aces"
|
|
106
123
|
| {
|
|
107
124
|
Unknown: string;
|
|
108
125
|
};
|
|
@@ -120,12 +137,14 @@ export type VideoCodec =
|
|
|
120
137
|
| "Jpeg2000Imf8k"
|
|
121
138
|
| "Jpeg2000Broadcast"
|
|
122
139
|
| "Jpeg2000Ht"
|
|
140
|
+
| "Jpeg2000HtNode"
|
|
123
141
|
| "Vc5"
|
|
124
142
|
| "Mpeg2"
|
|
125
143
|
| "H264"
|
|
126
144
|
| "H265"
|
|
127
145
|
| "ProRes"
|
|
128
146
|
| "Av1"
|
|
147
|
+
| "Aces"
|
|
129
148
|
| {
|
|
130
149
|
Unknown: string;
|
|
131
150
|
};
|
|
@@ -206,18 +225,6 @@ export type MimeType =
|
|
|
206
225
|
* Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
|
|
207
226
|
*/
|
|
208
227
|
export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
|
|
209
|
-
export type RuleValidationReason =
|
|
210
|
-
| {
|
|
211
|
-
kind: "unknown_source";
|
|
212
|
-
variant: string;
|
|
213
|
-
}
|
|
214
|
-
| {
|
|
215
|
-
kind: "matches_nothing";
|
|
216
|
-
}
|
|
217
|
-
| {
|
|
218
|
-
hint: string;
|
|
219
|
-
kind: "unsupported_pattern";
|
|
220
|
-
};
|
|
221
228
|
|
|
222
229
|
/**
|
|
223
230
|
* @deprecated
|
|
@@ -228,6 +235,10 @@ export type RuleValidationReason =
|
|
|
228
235
|
export interface ImfReport {
|
|
229
236
|
cpls: CplReport[];
|
|
230
237
|
package: PackageSummary;
|
|
238
|
+
/**
|
|
239
|
+
* Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
|
|
240
|
+
*/
|
|
241
|
+
ruleWarnings?: RuleValidationWarning[];
|
|
231
242
|
validation: ValidationReport;
|
|
232
243
|
}
|
|
233
244
|
export interface CplReport {
|
|
@@ -318,6 +329,18 @@ export interface UnreferencedAsset {
|
|
|
318
329
|
id: string;
|
|
319
330
|
path: string;
|
|
320
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* A diagnostic about a `RulesConfig` key that the engine couldn't match.
|
|
334
|
+
*
|
|
335
|
+
* Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
|
|
336
|
+
*/
|
|
337
|
+
export interface RuleValidationWarning {
|
|
338
|
+
/**
|
|
339
|
+
* The configured key that triggered the warning.
|
|
340
|
+
*/
|
|
341
|
+
key: string;
|
|
342
|
+
reason: RuleValidationReason;
|
|
343
|
+
}
|
|
321
344
|
/**
|
|
322
345
|
* Comprehensive validation report
|
|
323
346
|
*/
|
|
@@ -338,6 +361,10 @@ export interface ValidationReport {
|
|
|
338
361
|
* Whether the package is compliant with base SMPTE standards
|
|
339
362
|
*/
|
|
340
363
|
is_compliant: boolean;
|
|
364
|
+
/**
|
|
365
|
+
* Whether everything in the package was validated. False when a finding says part of it was not (e.g. `IMFERNO:Cpl/ExtensionSequenceNotValidated` for S-ADM audio): then `is_compliant` only covers what was checked. A rule override that switches such a finding `off` moves it to `suppressed` but keeps this false.
|
|
366
|
+
*/
|
|
367
|
+
is_fully_validated: boolean;
|
|
341
368
|
/**
|
|
342
369
|
* Whether the package is playable despite issues
|
|
343
370
|
*/
|
|
@@ -383,13 +410,17 @@ export interface ValidationIssue {
|
|
|
383
410
|
context: {
|
|
384
411
|
[k: string]: string | undefined;
|
|
385
412
|
};
|
|
413
|
+
/**
|
|
414
|
+
* Technical detail behind the message: the values, identifiers, URIs, file paths and clause text a person needs to locate or verify the finding. Shown after the message and the suggestion.
|
|
415
|
+
*/
|
|
416
|
+
detail?: string | null;
|
|
386
417
|
/**
|
|
387
418
|
* Edition of the spec that was applied (`"2016"`; empty for single-edition pseudo-specs).
|
|
388
419
|
*/
|
|
389
420
|
edition: string;
|
|
390
421
|
location: Location;
|
|
391
422
|
/**
|
|
392
|
-
*
|
|
423
|
+
* What is wrong, in one short plain sentence for a person to read.
|
|
393
424
|
*/
|
|
394
425
|
message: string;
|
|
395
426
|
/**
|
|
@@ -401,7 +432,7 @@ export interface ValidationIssue {
|
|
|
401
432
|
spec: Spec;
|
|
402
433
|
strength: Strength;
|
|
403
434
|
/**
|
|
404
|
-
*
|
|
435
|
+
* What to do about it.
|
|
405
436
|
*/
|
|
406
437
|
suggestion?: string | null;
|
|
407
438
|
}
|
|
@@ -539,10 +570,21 @@ export interface ChunkList {
|
|
|
539
570
|
* A single file path entry in a ChunkList.
|
|
540
571
|
*/
|
|
541
572
|
export interface Chunk {
|
|
573
|
+
/**
|
|
574
|
+
* `<Length>` in bytes, when present.
|
|
575
|
+
*/
|
|
576
|
+
length?: number | null;
|
|
577
|
+
/**
|
|
578
|
+
* `<Offset>` in bytes, when present.
|
|
579
|
+
*/
|
|
580
|
+
offset?: number | null;
|
|
542
581
|
/**
|
|
543
582
|
* File path relative to the IMP root directory.
|
|
544
583
|
*/
|
|
545
584
|
path: string;
|
|
585
|
+
/**
|
|
586
|
+
* `<VolumeIndex>`; 1 when absent.
|
|
587
|
+
*/
|
|
546
588
|
volumeIndex: number;
|
|
547
589
|
}
|
|
548
590
|
/**
|
|
@@ -638,6 +680,10 @@ export interface CDCIDescriptor {
|
|
|
638
680
|
*/
|
|
639
681
|
ColorSiting?: number | null;
|
|
640
682
|
ComponentDepth?: number | null;
|
|
683
|
+
/**
|
|
684
|
+
* File Descriptor: Essence Container label
|
|
685
|
+
*/
|
|
686
|
+
ContainerFormat?: string | null;
|
|
641
687
|
/**
|
|
642
688
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
643
689
|
*/
|
|
@@ -718,6 +764,14 @@ export interface CDCIDescriptor {
|
|
|
718
764
|
* SubDescriptors for video (RGBA/CDCI) descriptors
|
|
719
765
|
*/
|
|
720
766
|
export interface VideoSubDescriptors {
|
|
767
|
+
/**
|
|
768
|
+
* ST 2067-50 §8.2.4 ACES Picture SubDescriptors
|
|
769
|
+
*/
|
|
770
|
+
ACESPictureSubDescriptor?: AcesPictureSubDescriptor[];
|
|
771
|
+
/**
|
|
772
|
+
* ST 379-2 §7 Container Constraints Sub Descriptor
|
|
773
|
+
*/
|
|
774
|
+
ContainerConstraintsSubDescriptor?: ContainerConstraintsSubDescriptor | null;
|
|
721
775
|
/**
|
|
722
776
|
* JPEG 2000 Picture Sub Descriptor — Table 14 constraints
|
|
723
777
|
*/
|
|
@@ -726,6 +780,40 @@ export interface VideoSubDescriptors {
|
|
|
726
780
|
* Presence indicates Dolby Vision HDR
|
|
727
781
|
*/
|
|
728
782
|
PHDRMetadataTrackSubDescriptor?: PHDRMetadataTrackSubDescriptor | null;
|
|
783
|
+
/**
|
|
784
|
+
* ST 2067-50 §8.2.5 Target Frame SubDescriptors
|
|
785
|
+
*/
|
|
786
|
+
TargetFrameSubDescriptor?: TargetFrameSubDescriptor[];
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* ACES Picture SubDescriptor (ST 2067-50:2018 §8.2.4, Table 5).
|
|
790
|
+
*/
|
|
791
|
+
export interface AcesPictureSubDescriptor {
|
|
792
|
+
ACESAuthoringInformation?: string | null;
|
|
793
|
+
ACESMasteringDisplayMaximumLuminance?: string | null;
|
|
794
|
+
ACESMasteringDisplayMinimumLuminance?: string | null;
|
|
795
|
+
ACESMasteringDisplayPrimaries?: ThreeColorPrimaries | null;
|
|
796
|
+
ACESMasteringDisplayWhitePointChromaticity?: Chromaticity | null;
|
|
797
|
+
InstanceID?: string | null;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Three color primaries (ThreeColorPrimaries).
|
|
801
|
+
*/
|
|
802
|
+
export interface ThreeColorPrimaries {
|
|
803
|
+
ColorPrimary?: Chromaticity[];
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* A chromaticity coordinate pair, kept as text (presence is what is checked).
|
|
807
|
+
*/
|
|
808
|
+
export interface Chromaticity {
|
|
809
|
+
X?: string | null;
|
|
810
|
+
Y?: string | null;
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* ContainerConstraintsSubDescriptor — presence required by ST 2067-202 §5
|
|
814
|
+
*/
|
|
815
|
+
export interface ContainerConstraintsSubDescriptor {
|
|
816
|
+
InstanceID?: string | null;
|
|
729
817
|
}
|
|
730
818
|
/**
|
|
731
819
|
* JPEG 2000 Picture Sub Descriptor (ST 422 / ST 2067-21 Table 14)
|
|
@@ -860,6 +948,22 @@ export interface PHDRMetadataTrackSubDescriptor {
|
|
|
860
948
|
PHDRMetadataTrackSubDescriptor_SimplePayloadSID?: number | null;
|
|
861
949
|
PHDRMetadataTrackSubDescriptor_SourceTrackID?: number | null;
|
|
862
950
|
}
|
|
951
|
+
/**
|
|
952
|
+
* Target Frame SubDescriptor (ST 2067-50:2018 §8.2.5, Table 7). Values are kept as text so that a malformed value is reported, not a parse failure.
|
|
953
|
+
*/
|
|
954
|
+
export interface TargetFrameSubDescriptor {
|
|
955
|
+
ACESPictureSubDescriptorInstanceID?: string | null;
|
|
956
|
+
InstanceID?: string | null;
|
|
957
|
+
MediaType?: string | null;
|
|
958
|
+
TargetFrameAncillaryResourceID?: string | null;
|
|
959
|
+
TargetFrameColorPrimaries?: string | null;
|
|
960
|
+
TargetFrameComponentMaxRef?: string | null;
|
|
961
|
+
TargetFrameComponentMinRef?: string | null;
|
|
962
|
+
TargetFrameEssenceStreamID?: string | null;
|
|
963
|
+
TargetFrameIndex?: string | null;
|
|
964
|
+
TargetFrameTransferCharacteristic?: string | null;
|
|
965
|
+
TargetFrameViewingEnvironment?: string | null;
|
|
966
|
+
}
|
|
863
967
|
/**
|
|
864
968
|
* DC Timed Text descriptor (subtitles/captions)
|
|
865
969
|
*/
|
|
@@ -888,9 +992,9 @@ export interface IABEssenceDescriptor {
|
|
|
888
992
|
*/
|
|
889
993
|
ContainerFormat?: string | null;
|
|
890
994
|
/**
|
|
891
|
-
* ST 2067-201 §5.9: ElectrospatialFormulation shall
|
|
995
|
+
* ST 2067-201 §5.9: if present, ElectrospatialFormulation shall be 15 (multi-channel mode default). Kept as written: RegXML writes the enumeration as its register symbol (`ElectroSpatialFormulation_MultiChannelMode`), some writers as the number. See `IABEssenceDescriptor::electrospatial_formulation_value`.
|
|
892
996
|
*/
|
|
893
|
-
ElectrospatialFormulation?:
|
|
997
|
+
ElectrospatialFormulation?: string | null;
|
|
894
998
|
InstanceID?: string | null;
|
|
895
999
|
LinkedTrackID?: number | null;
|
|
896
1000
|
/**
|
|
@@ -914,7 +1018,7 @@ export interface IABSubDescriptors {
|
|
|
914
1018
|
/**
|
|
915
1019
|
* Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.
|
|
916
1020
|
*
|
|
917
|
-
* The 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended`
|
|
1021
|
+
* The 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended` notice, so the inner shape is intentionally permissive — any nested content deserialises into the catch-all map without affecting presence.
|
|
918
1022
|
*/
|
|
919
1023
|
export interface IABChannelSubDescriptor {
|
|
920
1024
|
/**
|
|
@@ -940,9 +1044,13 @@ export interface IABSoundfieldLabelSubDescriptor {
|
|
|
940
1044
|
RFC5646SpokenLanguage?: LanguageTag | null;
|
|
941
1045
|
}
|
|
942
1046
|
/**
|
|
943
|
-
* ISXD (
|
|
1047
|
+
* ISXD (Isochronous Stream of XML Documents, ST 2067-202) data essence descriptor
|
|
944
1048
|
*/
|
|
945
1049
|
export interface ISXDDataEssenceDescriptor {
|
|
1050
|
+
/**
|
|
1051
|
+
* ST 2067-202 §9.1: the Essence Container UL shall be the Frame Wrapped ISXD Container UL (Table 3).
|
|
1052
|
+
*/
|
|
1053
|
+
ContainerFormat?: string | null;
|
|
946
1054
|
DataEssenceCoding?: string | null;
|
|
947
1055
|
InstanceID?: string | null;
|
|
948
1056
|
LinkedTrackID?: number | null;
|
|
@@ -959,16 +1067,14 @@ export interface IsxdSubDescriptors {
|
|
|
959
1067
|
*/
|
|
960
1068
|
ContainerConstraintsSubDescriptor?: ContainerConstraintsSubDescriptor | null;
|
|
961
1069
|
}
|
|
962
|
-
/**
|
|
963
|
-
* ContainerConstraintsSubDescriptor — presence required by ST 2067-202 §5
|
|
964
|
-
*/
|
|
965
|
-
export interface ContainerConstraintsSubDescriptor {
|
|
966
|
-
InstanceID?: string | null;
|
|
967
|
-
}
|
|
968
1070
|
/**
|
|
969
1071
|
* RGBA video descriptor (JPEG 2000 RGB content)
|
|
970
1072
|
*/
|
|
971
1073
|
export interface RGBADescriptor {
|
|
1074
|
+
/**
|
|
1075
|
+
* Generic Picture Essence Descriptor: Active Format Descriptor (ST 2065-5:2016 Table 10: shall not be present)
|
|
1076
|
+
*/
|
|
1077
|
+
ActiveFormatDescriptor?: string | null;
|
|
972
1078
|
/**
|
|
973
1079
|
* Table 10: AlphaMaxRef — shall not be present
|
|
974
1080
|
*/
|
|
@@ -991,6 +1097,10 @@ export interface RGBADescriptor {
|
|
|
991
1097
|
* RGBA Descriptor: Component Min Ref (Table 10/11)
|
|
992
1098
|
*/
|
|
993
1099
|
ComponentMinRef?: number | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* File Descriptor: Essence Container label
|
|
1102
|
+
*/
|
|
1103
|
+
ContainerFormat?: string | null;
|
|
994
1104
|
/**
|
|
995
1105
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
996
1106
|
*/
|
|
@@ -1029,6 +1139,10 @@ export interface RGBADescriptor {
|
|
|
1029
1139
|
*/
|
|
1030
1140
|
PaletteLayout?: string | null;
|
|
1031
1141
|
PictureCompression?: VideoCodec | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* RGBA Descriptor: Pixel Layout
|
|
1144
|
+
*/
|
|
1145
|
+
PixelLayout?: J2CLayout | null;
|
|
1032
1146
|
SampleRate?: EditRate | null;
|
|
1033
1147
|
/**
|
|
1034
1148
|
* Table 8: SampledHeight — shall not be present or shall be equal to StoredHeight
|
|
@@ -1050,6 +1164,10 @@ export interface RGBADescriptor {
|
|
|
1050
1164
|
* RGBA Descriptor: Scanning Direction (Table 10) Shall be "ScanningDirection_LeftToRightTopToBottom" (00h)
|
|
1051
1165
|
*/
|
|
1052
1166
|
ScanningDirection?: string | null;
|
|
1167
|
+
/**
|
|
1168
|
+
* Generic Picture Essence Descriptor: Signal Standard (ST 2065-5:2016 Table 10: shall not be present)
|
|
1169
|
+
*/
|
|
1170
|
+
SignalStandard?: string | null;
|
|
1053
1171
|
/**
|
|
1054
1172
|
* Table 8: StoredF2Offset — shall not be present
|
|
1055
1173
|
*/
|
|
@@ -1058,6 +1176,16 @@ export interface RGBADescriptor {
|
|
|
1058
1176
|
StoredWidth?: number | null;
|
|
1059
1177
|
SubDescriptors?: VideoSubDescriptors | null;
|
|
1060
1178
|
TransferCharacteristic?: TransferCharacteristic | null;
|
|
1179
|
+
/**
|
|
1180
|
+
* Generic Picture Essence Descriptor: Video Line Map
|
|
1181
|
+
*/
|
|
1182
|
+
VideoLineMap?: VideoLineMap | null;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Video Line Map of a Generic Picture Essence Descriptor (ST 377-1).
|
|
1186
|
+
*/
|
|
1187
|
+
export interface VideoLineMap {
|
|
1188
|
+
Int32?: number[];
|
|
1061
1189
|
}
|
|
1062
1190
|
/**
|
|
1063
1191
|
* WAVE PCM audio descriptor
|
|
@@ -1068,6 +1196,10 @@ export interface WAVEPCMDescriptor {
|
|
|
1068
1196
|
InstanceID?: string | null;
|
|
1069
1197
|
LinkedTrackID?: number | null;
|
|
1070
1198
|
QuantizationBits?: number | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* ST 2067-2 Annex F (2013, 2016) / Annex E (2020): the edit rate of the image the audio is designed to sync to (§5.3.5 Table 6).
|
|
1201
|
+
*/
|
|
1202
|
+
ReferenceImageEditRate?: EditRate | null;
|
|
1071
1203
|
SampleRate?: EditRate | null;
|
|
1072
1204
|
SubDescriptors?: AudioSubDescriptors | null;
|
|
1073
1205
|
}
|
|
@@ -1089,6 +1221,9 @@ export interface SoundfieldGroupLabelSubDescriptor {
|
|
|
1089
1221
|
*/
|
|
1090
1222
|
RFC5646SpokenLanguage?: LanguageTag | null;
|
|
1091
1223
|
}
|
|
1224
|
+
/**
|
|
1225
|
+
* The CPL's `ExtensionProperties`: ApplicationIdentification (the Application IDs of every ST 2067-2 instance, space-separated), MaxCLL and MaxFALL.
|
|
1226
|
+
*/
|
|
1092
1227
|
export interface ExtensionProperties {
|
|
1093
1228
|
ApplicationIdentification?: string | null;
|
|
1094
1229
|
MaxCLL?: number | null;
|
|
@@ -1137,6 +1272,10 @@ export interface Segment {
|
|
|
1137
1272
|
SequenceList: SequenceList;
|
|
1138
1273
|
}
|
|
1139
1274
|
export interface SequenceList {
|
|
1275
|
+
/**
|
|
1276
|
+
* Sequences whose element imferno does not model (ST 2067-3 §6.9.3 Extension Sequences, e.g. ST 2067-203 `MGASADMSignalSequence` or ST 2067-2 `CommentarySequence`), in document order. Filled by `parse_cpl` from the source XML so their EssenceDescriptor and Track File references resolve; no other rules are applied to them.
|
|
1277
|
+
*/
|
|
1278
|
+
ExtensionSequence?: ExtensionSequence[];
|
|
1140
1279
|
ForcedNarrativeSequence?: ForcedNarrativeSequence[];
|
|
1141
1280
|
HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
|
|
1142
1281
|
IABSequence?: IABSequence[];
|
|
@@ -1146,8 +1285,13 @@ export interface SequenceList {
|
|
|
1146
1285
|
MarkerSequence?: MarkerSequence[];
|
|
1147
1286
|
SubtitlesSequence?: SubtitlesSequence[];
|
|
1148
1287
|
}
|
|
1149
|
-
|
|
1288
|
+
/**
|
|
1289
|
+
* A Sequence of a kind imferno does not model (ST 2067-3 §6.9.3 Extension Sequence). Every Sequence derives from SequenceType, so its Id, TrackId and Resources are kept; the element is named by `name` (local name) and `namespace` (namespace URI; null when the element has no namespace).
|
|
1290
|
+
*/
|
|
1291
|
+
export interface ExtensionSequence {
|
|
1150
1292
|
Id: ImfUuid;
|
|
1293
|
+
Name?: string;
|
|
1294
|
+
Namespace?: string | null;
|
|
1151
1295
|
ResourceList: ResourceList;
|
|
1152
1296
|
TrackId: ImfUuid;
|
|
1153
1297
|
}
|
|
@@ -1162,17 +1306,40 @@ export interface Resource {
|
|
|
1162
1306
|
Id: ImfUuid;
|
|
1163
1307
|
IntrinsicDuration: number;
|
|
1164
1308
|
KeyId?: ImfUuid | null;
|
|
1309
|
+
/**
|
|
1310
|
+
* `LeftEye` of a `cc:StereoImageTrackFileResourceType` resource (ST 2067-2:2013, :2016 and :2020). A stereo resource carries its SourceEncoding and TrackFileId per eye, not on the resource itself.
|
|
1311
|
+
*/
|
|
1312
|
+
LeftEye?: StereoEye | null;
|
|
1165
1313
|
Marker?: MarkerInfo[];
|
|
1166
1314
|
RepeatCount?: number | null;
|
|
1315
|
+
/**
|
|
1316
|
+
* `RightEye` of a `cc:StereoImageTrackFileResourceType` resource.
|
|
1317
|
+
*/
|
|
1318
|
+
RightEye?: StereoEye | null;
|
|
1167
1319
|
SourceDuration?: number | null;
|
|
1168
1320
|
SourceEncoding?: ImfUuid | null;
|
|
1169
1321
|
TrackFileId?: ImfUuid | null;
|
|
1170
1322
|
}
|
|
1323
|
+
/**
|
|
1324
|
+
* One eye of a stereo resource: a `cpl:TrackFileResourceType` (ST 2067-2). Only the track file reference fields are kept; the eye's timing fields are checked by the XSD layer.
|
|
1325
|
+
*/
|
|
1326
|
+
export interface StereoEye {
|
|
1327
|
+
Hash?: string | null;
|
|
1328
|
+
Id?: ImfUuid | null;
|
|
1329
|
+
KeyId?: ImfUuid | null;
|
|
1330
|
+
SourceEncoding?: ImfUuid | null;
|
|
1331
|
+
TrackFileId?: ImfUuid | null;
|
|
1332
|
+
}
|
|
1171
1333
|
export interface MarkerInfo {
|
|
1172
1334
|
Annotation?: string | null;
|
|
1173
1335
|
Label: MarkerLabelElement;
|
|
1174
1336
|
Offset: number;
|
|
1175
1337
|
}
|
|
1338
|
+
export interface ForcedNarrativeSequence {
|
|
1339
|
+
Id: ImfUuid;
|
|
1340
|
+
ResourceList: ResourceList;
|
|
1341
|
+
TrackId: ImfUuid;
|
|
1342
|
+
}
|
|
1176
1343
|
export interface HearingImpairedCaptionsSequence {
|
|
1177
1344
|
Id: ImfUuid;
|
|
1178
1345
|
ResourceList: ResourceList;
|
|
@@ -1444,18 +1611,6 @@ export interface ValidationResult {
|
|
|
1444
1611
|
rule_warnings?: RuleValidationWarning[];
|
|
1445
1612
|
validation: ValidationReport;
|
|
1446
1613
|
}
|
|
1447
|
-
/**
|
|
1448
|
-
* A diagnostic about a `RulesConfig` key that the engine couldn't match.
|
|
1449
|
-
*
|
|
1450
|
-
* Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
|
|
1451
|
-
*/
|
|
1452
|
-
export interface RuleValidationWarning {
|
|
1453
|
-
/**
|
|
1454
|
-
* The configured key that triggered the warning.
|
|
1455
|
-
*/
|
|
1456
|
-
key: string;
|
|
1457
|
-
reason: RuleValidationReason;
|
|
1458
|
-
}
|
|
1459
1614
|
|
|
1460
1615
|
/**
|
|
1461
1616
|
* Core constraints (ST 2067-2) edition to validate against. `"auto"` detects
|