@imferno/node 3.0.2-fix-review-cpl-core.b1953cf → 3.0.2-fix-review-package-loading.ad171d6
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 +11 -8
- package/codes.js +11 -8
- package/package.json +7 -7
- package/types.d.ts +29 -0
package/codes.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const codes: {
|
|
|
19
19
|
readonly ST429_8: {
|
|
20
20
|
readonly SizeMismatch: "ST429-8/SizeMismatch";
|
|
21
21
|
readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
|
|
22
|
+
readonly MalformedXml: "ST429-8/MalformedXml";
|
|
22
23
|
};
|
|
23
24
|
readonly ST429_9: {
|
|
24
25
|
readonly AssetListEmpty: "ST429-9/AssetListEmpty";
|
|
@@ -33,6 +34,13 @@ export declare const codes: {
|
|
|
33
34
|
readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
|
|
34
35
|
readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
|
|
35
36
|
readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
|
|
37
|
+
readonly PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl";
|
|
38
|
+
readonly VolumeCountNotOne: "ST429-9/VolumeCountNotOne";
|
|
39
|
+
readonly ChunkCountNotOne: "ST429-9/ChunkCountNotOne";
|
|
40
|
+
readonly ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne";
|
|
41
|
+
readonly ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero";
|
|
42
|
+
readonly ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch";
|
|
43
|
+
readonly SymbolicLink: "ST429-9/SymbolicLink";
|
|
36
44
|
};
|
|
37
45
|
readonly ST2067_2: {
|
|
38
46
|
readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
|
|
@@ -88,6 +96,7 @@ export declare const codes: {
|
|
|
88
96
|
readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
|
|
89
97
|
readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
|
|
90
98
|
readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
|
|
99
|
+
readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
|
|
91
100
|
};
|
|
92
101
|
readonly ST2067_3: {
|
|
93
102
|
readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
|
|
@@ -113,16 +122,10 @@ export declare const codes: {
|
|
|
113
122
|
readonly ResourceDuration: "ST2067-3/ResourceDuration";
|
|
114
123
|
readonly RepeatCount: "ST2067-3/RepeatCount";
|
|
115
124
|
readonly TrackFileId: "ST2067-3/TrackFileId";
|
|
125
|
+
readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
|
|
116
126
|
readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
|
|
117
127
|
readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
|
|
118
|
-
readonly
|
|
119
|
-
readonly ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate";
|
|
120
|
-
readonly LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid";
|
|
121
|
-
readonly SignerWithoutSignature: "ST2067-3/SignerWithoutSignature";
|
|
122
|
-
readonly SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner";
|
|
123
|
-
readonly HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing";
|
|
124
|
-
readonly HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash";
|
|
125
|
-
readonly ResourceHashMismatch: "ST2067-3/ResourceHashMismatch";
|
|
128
|
+
readonly CplMediaType: "ST2067-3/CplMediaType";
|
|
126
129
|
};
|
|
127
130
|
readonly ST2067_5: {
|
|
128
131
|
readonly OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier";
|
package/codes.js
CHANGED
|
@@ -19,6 +19,7 @@ const codes = {
|
|
|
19
19
|
ST429_8: {
|
|
20
20
|
SizeMismatch: "ST429-8/SizeMismatch",
|
|
21
21
|
ChecksumMismatch: "ST429-8/ChecksumMismatch",
|
|
22
|
+
MalformedXml: "ST429-8/MalformedXml",
|
|
22
23
|
},
|
|
23
24
|
ST429_9: {
|
|
24
25
|
AssetListEmpty: "ST429-9/AssetListEmpty",
|
|
@@ -33,6 +34,13 @@ const codes = {
|
|
|
33
34
|
AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
|
|
34
35
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
35
36
|
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
37
|
+
PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
|
|
38
|
+
VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
|
|
39
|
+
ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
|
|
40
|
+
ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
|
|
41
|
+
ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
|
|
42
|
+
ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
|
|
43
|
+
SymbolicLink: "ST429-9/SymbolicLink",
|
|
36
44
|
},
|
|
37
45
|
ST2067_2: {
|
|
38
46
|
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
@@ -88,6 +96,7 @@ const codes = {
|
|
|
88
96
|
TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
|
|
89
97
|
MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
|
|
90
98
|
AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
|
|
99
|
+
TrackFileMediaType: "ST2067-2/TrackFileMediaType",
|
|
91
100
|
},
|
|
92
101
|
ST2067_3: {
|
|
93
102
|
ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
|
|
@@ -113,16 +122,10 @@ const codes = {
|
|
|
113
122
|
ResourceDuration: "ST2067-3/ResourceDuration",
|
|
114
123
|
RepeatCount: "ST2067-3/RepeatCount",
|
|
115
124
|
TrackFileId: "ST2067-3/TrackFileId",
|
|
125
|
+
SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
|
|
116
126
|
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
117
127
|
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
118
|
-
|
|
119
|
-
ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
|
|
120
|
-
LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
|
|
121
|
-
SignerWithoutSignature: "ST2067-3/SignerWithoutSignature",
|
|
122
|
-
SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner",
|
|
123
|
-
HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing",
|
|
124
|
-
HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash",
|
|
125
|
-
ResourceHashMismatch: "ST2067-3/ResourceHashMismatch",
|
|
128
|
+
CplMediaType: "ST2067-3/CplMediaType",
|
|
126
129
|
},
|
|
127
130
|
ST2067_5: {
|
|
128
131
|
OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
|
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-package-loading.ad171d6",
|
|
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-package-loading.ad171d6",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-fix-review-package-loading.ad171d6",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-fix-review-package-loading.ad171d6",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-package-loading.ad171d6",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-fix-review-package-loading.ad171d6",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-package-loading.ad171d6"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -556,10 +556,21 @@ export interface ChunkList {
|
|
|
556
556
|
* A single file path entry in a ChunkList.
|
|
557
557
|
*/
|
|
558
558
|
export interface Chunk {
|
|
559
|
+
/**
|
|
560
|
+
* `<Length>` in bytes, when present.
|
|
561
|
+
*/
|
|
562
|
+
length?: number | null;
|
|
563
|
+
/**
|
|
564
|
+
* `<Offset>` in bytes, when present.
|
|
565
|
+
*/
|
|
566
|
+
offset?: number | null;
|
|
559
567
|
/**
|
|
560
568
|
* File path relative to the IMP root directory.
|
|
561
569
|
*/
|
|
562
570
|
path: string;
|
|
571
|
+
/**
|
|
572
|
+
* `<VolumeIndex>`; 1 when absent.
|
|
573
|
+
*/
|
|
563
574
|
volumeIndex: number;
|
|
564
575
|
}
|
|
565
576
|
/**
|
|
@@ -1179,12 +1190,30 @@ export interface Resource {
|
|
|
1179
1190
|
Id: ImfUuid;
|
|
1180
1191
|
IntrinsicDuration: number;
|
|
1181
1192
|
KeyId?: ImfUuid | null;
|
|
1193
|
+
/**
|
|
1194
|
+
* `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.
|
|
1195
|
+
*/
|
|
1196
|
+
LeftEye?: StereoEye | null;
|
|
1182
1197
|
Marker?: MarkerInfo[];
|
|
1183
1198
|
RepeatCount?: number | null;
|
|
1199
|
+
/**
|
|
1200
|
+
* `RightEye` of a `cc:StereoImageTrackFileResourceType` resource.
|
|
1201
|
+
*/
|
|
1202
|
+
RightEye?: StereoEye | null;
|
|
1184
1203
|
SourceDuration?: number | null;
|
|
1185
1204
|
SourceEncoding?: ImfUuid | null;
|
|
1186
1205
|
TrackFileId?: ImfUuid | null;
|
|
1187
1206
|
}
|
|
1207
|
+
/**
|
|
1208
|
+
* 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.
|
|
1209
|
+
*/
|
|
1210
|
+
export interface StereoEye {
|
|
1211
|
+
Hash?: string | null;
|
|
1212
|
+
Id?: ImfUuid | null;
|
|
1213
|
+
KeyId?: ImfUuid | null;
|
|
1214
|
+
SourceEncoding?: ImfUuid | null;
|
|
1215
|
+
TrackFileId?: ImfUuid | null;
|
|
1216
|
+
}
|
|
1188
1217
|
export interface MarkerInfo {
|
|
1189
1218
|
Annotation?: string | null;
|
|
1190
1219
|
Label: MarkerLabelElement;
|