@imferno/node 3.0.2-fix-review-cpl-parse-appid.2d24a40 → 3.0.2-fix-review-extension-sequences.640dc89
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/codes.d.ts +6 -3
- package/codes.js +6 -3
- package/package.json +7 -7
- package/types.d.ts +21 -6
package/codes.d.ts
CHANGED
|
@@ -44,8 +44,6 @@ export declare const codes: {
|
|
|
44
44
|
};
|
|
45
45
|
readonly ST2067_2: {
|
|
46
46
|
readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
|
|
47
|
-
readonly ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing";
|
|
48
|
-
readonly ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate";
|
|
49
47
|
readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
|
|
50
48
|
readonly NoPackingList: "ST2067-2/NoPackingList";
|
|
51
49
|
readonly NoCpls: "ST2067-2/NoCpls";
|
|
@@ -127,6 +125,10 @@ export declare const codes: {
|
|
|
127
125
|
readonly TrackFileId: "ST2067-3/TrackFileId";
|
|
128
126
|
readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
|
|
129
127
|
readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
|
|
128
|
+
readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
|
|
129
|
+
readonly ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType";
|
|
130
|
+
readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
|
|
131
|
+
readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
|
|
130
132
|
readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
|
|
131
133
|
readonly CplMediaType: "ST2067-3/CplMediaType";
|
|
132
134
|
readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
|
|
@@ -270,6 +272,8 @@ export declare const codes: {
|
|
|
270
272
|
readonly NotValidated: "XSD/NotValidated";
|
|
271
273
|
};
|
|
272
274
|
readonly IMFERNO: {
|
|
275
|
+
readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
|
|
276
|
+
readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
|
|
273
277
|
readonly EditionAssumed: "IMFERNO/EditionAssumed";
|
|
274
278
|
readonly EditionConflict: "IMFERNO/EditionConflict";
|
|
275
279
|
readonly EditionPinned: "IMFERNO/EditionPinned";
|
|
@@ -287,7 +291,6 @@ export declare const codes: {
|
|
|
287
291
|
readonly ParseError: "IMFERNO/ParseError";
|
|
288
292
|
readonly PklParseError: "IMFERNO/PklParseError";
|
|
289
293
|
readonly XmlAssetParseError: "IMFERNO/XmlAssetParseError";
|
|
290
|
-
readonly CplUnparseable: "IMFERNO/CplUnparseable";
|
|
291
294
|
readonly XmlReadError: "IMFERNO/XmlReadError";
|
|
292
295
|
readonly ReadDirError: "IMFERNO/ReadDirError";
|
|
293
296
|
readonly DirEntryError: "IMFERNO/DirEntryError";
|
package/codes.js
CHANGED
|
@@ -44,8 +44,6 @@ const codes = {
|
|
|
44
44
|
},
|
|
45
45
|
ST2067_2: {
|
|
46
46
|
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
47
|
-
ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
|
|
48
|
-
ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
|
|
49
47
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
50
48
|
NoPackingList: "ST2067-2/NoPackingList",
|
|
51
49
|
NoCpls: "ST2067-2/NoCpls",
|
|
@@ -127,6 +125,10 @@ const codes = {
|
|
|
127
125
|
TrackFileId: "ST2067-3/TrackFileId",
|
|
128
126
|
SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
|
|
129
127
|
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
128
|
+
VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
|
|
129
|
+
ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType",
|
|
130
|
+
ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
|
|
131
|
+
MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
|
|
130
132
|
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
131
133
|
CplMediaType: "ST2067-3/CplMediaType",
|
|
132
134
|
UniqueSequenceId: "ST2067-3/UniqueSequenceId",
|
|
@@ -270,6 +272,8 @@ const codes = {
|
|
|
270
272
|
NotValidated: "XSD/NotValidated",
|
|
271
273
|
},
|
|
272
274
|
IMFERNO: {
|
|
275
|
+
ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
|
|
276
|
+
SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
|
|
273
277
|
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
274
278
|
EditionConflict: "IMFERNO/EditionConflict",
|
|
275
279
|
EditionPinned: "IMFERNO/EditionPinned",
|
|
@@ -287,7 +291,6 @@ const codes = {
|
|
|
287
291
|
ParseError: "IMFERNO/ParseError",
|
|
288
292
|
PklParseError: "IMFERNO/PklParseError",
|
|
289
293
|
XmlAssetParseError: "IMFERNO/XmlAssetParseError",
|
|
290
|
-
CplUnparseable: "IMFERNO/CplUnparseable",
|
|
291
294
|
XmlReadError: "IMFERNO/XmlReadError",
|
|
292
295
|
ReadDirError: "IMFERNO/ReadDirError",
|
|
293
296
|
DirEntryError: "IMFERNO/DirEntryError",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-fix-review-
|
|
3
|
+
"version": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
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-fix-review-
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-fix-review-
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-fix-review-
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-fix-review-
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-fix-review-extension-sequences.640dc89",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-extension-sequences.640dc89"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -355,6 +355,10 @@ export interface ValidationReport {
|
|
|
355
355
|
* Whether the package is compliant with base SMPTE standards
|
|
356
356
|
*/
|
|
357
357
|
is_compliant: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* 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.
|
|
360
|
+
*/
|
|
361
|
+
is_fully_validated: boolean;
|
|
358
362
|
/**
|
|
359
363
|
* Whether the package is playable despite issues
|
|
360
364
|
*/
|
|
@@ -916,9 +920,9 @@ export interface IABEssenceDescriptor {
|
|
|
916
920
|
*/
|
|
917
921
|
ContainerFormat?: string | null;
|
|
918
922
|
/**
|
|
919
|
-
* ST 2067-201 §5.9:
|
|
923
|
+
* ST 2067-201 §5.9: ElectrospatialFormulation shall NOT be present.
|
|
920
924
|
*/
|
|
921
|
-
ElectrospatialFormulation?:
|
|
925
|
+
ElectrospatialFormulation?: number | null;
|
|
922
926
|
InstanceID?: string | null;
|
|
923
927
|
LinkedTrackID?: number | null;
|
|
924
928
|
/**
|
|
@@ -1117,9 +1121,6 @@ export interface SoundfieldGroupLabelSubDescriptor {
|
|
|
1117
1121
|
*/
|
|
1118
1122
|
RFC5646SpokenLanguage?: LanguageTag | null;
|
|
1119
1123
|
}
|
|
1120
|
-
/**
|
|
1121
|
-
* The CPL's `ExtensionProperties`: ApplicationIdentification (the Application IDs of every ST 2067-2 instance, space-separated), MaxCLL and MaxFALL.
|
|
1122
|
-
*/
|
|
1123
1124
|
export interface ExtensionProperties {
|
|
1124
1125
|
ApplicationIdentification?: string | null;
|
|
1125
1126
|
MaxCLL?: number | null;
|
|
@@ -1168,6 +1169,10 @@ export interface Segment {
|
|
|
1168
1169
|
SequenceList: SequenceList;
|
|
1169
1170
|
}
|
|
1170
1171
|
export interface SequenceList {
|
|
1172
|
+
/**
|
|
1173
|
+
* 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.
|
|
1174
|
+
*/
|
|
1175
|
+
ExtensionSequence?: ExtensionSequence[];
|
|
1171
1176
|
ForcedNarrativeSequence?: ForcedNarrativeSequence[];
|
|
1172
1177
|
HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
|
|
1173
1178
|
IABSequence?: IABSequence[];
|
|
@@ -1177,8 +1182,13 @@ export interface SequenceList {
|
|
|
1177
1182
|
MarkerSequence?: MarkerSequence[];
|
|
1178
1183
|
SubtitlesSequence?: SubtitlesSequence[];
|
|
1179
1184
|
}
|
|
1180
|
-
|
|
1185
|
+
/**
|
|
1186
|
+
* 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).
|
|
1187
|
+
*/
|
|
1188
|
+
export interface ExtensionSequence {
|
|
1181
1189
|
Id: ImfUuid;
|
|
1190
|
+
Name?: string;
|
|
1191
|
+
Namespace?: string | null;
|
|
1182
1192
|
ResourceList: ResourceList;
|
|
1183
1193
|
TrackId: ImfUuid;
|
|
1184
1194
|
}
|
|
@@ -1222,6 +1232,11 @@ export interface MarkerInfo {
|
|
|
1222
1232
|
Label: MarkerLabelElement;
|
|
1223
1233
|
Offset: number;
|
|
1224
1234
|
}
|
|
1235
|
+
export interface ForcedNarrativeSequence {
|
|
1236
|
+
Id: ImfUuid;
|
|
1237
|
+
ResourceList: ResourceList;
|
|
1238
|
+
TrackId: ImfUuid;
|
|
1239
|
+
}
|
|
1225
1240
|
export interface HearingImpairedCaptionsSequence {
|
|
1226
1241
|
Id: ImfUuid;
|
|
1227
1242
|
ResourceList: ResourceList;
|