@imferno/node 3.0.2-beta.117d187 → 3.0.2-beta.192bf8f
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 +27 -0
- package/codes.js +27 -0
- package/package.json +7 -7
- package/types.d.ts +91 -6
package/codes.d.ts
CHANGED
|
@@ -307,6 +307,32 @@ export declare const codes: {
|
|
|
307
307
|
readonly PictureEssenceCoding: "ST2067-21/PictureEssenceCoding";
|
|
308
308
|
readonly HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints";
|
|
309
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";
|
|
335
|
+
};
|
|
310
336
|
readonly ST2067_201: {
|
|
311
337
|
readonly CodecForbidden: "ST2067-201/CodecForbidden";
|
|
312
338
|
readonly ElectrospatialFormulationInvalid: "ST2067-201/ElectrospatialFormulationInvalid";
|
|
@@ -443,6 +469,7 @@ export declare const codes: {
|
|
|
443
469
|
readonly DirEntryError: "IMFERNO/DirEntryError";
|
|
444
470
|
readonly PathTraversal: "IMFERNO/PathTraversal";
|
|
445
471
|
readonly ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated";
|
|
472
|
+
readonly ApplicationNotFullyValidated: "IMFERNO/ApplicationNotFullyValidated";
|
|
446
473
|
readonly RuleNotInEdition: "IMFERNO/RuleNotInEdition";
|
|
447
474
|
}
|
|
448
475
|
};
|
package/codes.js
CHANGED
|
@@ -307,6 +307,32 @@ const codes = {
|
|
|
307
307
|
PictureEssenceCoding: "ST2067-21/PictureEssenceCoding",
|
|
308
308
|
HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints",
|
|
309
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",
|
|
335
|
+
},
|
|
310
336
|
ST2067_201: {
|
|
311
337
|
CodecForbidden: "ST2067-201/CodecForbidden",
|
|
312
338
|
ElectrospatialFormulationInvalid: "ST2067-201/ElectrospatialFormulationInvalid",
|
|
@@ -443,6 +469,7 @@ const codes = {
|
|
|
443
469
|
DirEntryError: "IMFERNO/DirEntryError",
|
|
444
470
|
PathTraversal: "IMFERNO/PathTraversal",
|
|
445
471
|
ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated",
|
|
472
|
+
ApplicationNotFullyValidated: "IMFERNO/ApplicationNotFullyValidated",
|
|
446
473
|
RuleNotInEdition: "IMFERNO/RuleNotInEdition",
|
|
447
474
|
}
|
|
448
475
|
};
|
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.192bf8f",
|
|
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.192bf8f",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-beta.192bf8f",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-beta.192bf8f",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-beta.192bf8f",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-beta.192bf8f",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-beta.192bf8f"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
package/types.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export type Spec =
|
|
|
68
68
|
| "ST2067-9"
|
|
69
69
|
| "ST2067-20"
|
|
70
70
|
| "ST2067-21"
|
|
71
|
+
| "ST2067-50"
|
|
71
72
|
| "ST2067-201"
|
|
72
73
|
| "ST2067-202"
|
|
73
74
|
| "ST2067-203"
|
|
@@ -118,6 +119,7 @@ export type ColorPrimaries =
|
|
|
118
119
|
| "Bt2020"
|
|
119
120
|
| "DciP3"
|
|
120
121
|
| "P3D65"
|
|
122
|
+
| "Aces"
|
|
121
123
|
| {
|
|
122
124
|
Unknown: string;
|
|
123
125
|
};
|
|
@@ -142,6 +144,7 @@ export type VideoCodec =
|
|
|
142
144
|
| "H265"
|
|
143
145
|
| "ProRes"
|
|
144
146
|
| "Av1"
|
|
147
|
+
| "Aces"
|
|
145
148
|
| {
|
|
146
149
|
Unknown: string;
|
|
147
150
|
};
|
|
@@ -677,6 +680,10 @@ export interface CDCIDescriptor {
|
|
|
677
680
|
*/
|
|
678
681
|
ColorSiting?: number | null;
|
|
679
682
|
ComponentDepth?: number | null;
|
|
683
|
+
/**
|
|
684
|
+
* File Descriptor: Essence Container label
|
|
685
|
+
*/
|
|
686
|
+
ContainerFormat?: string | null;
|
|
680
687
|
/**
|
|
681
688
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
682
689
|
*/
|
|
@@ -757,6 +764,14 @@ export interface CDCIDescriptor {
|
|
|
757
764
|
* SubDescriptors for video (RGBA/CDCI) descriptors
|
|
758
765
|
*/
|
|
759
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;
|
|
760
775
|
/**
|
|
761
776
|
* JPEG 2000 Picture Sub Descriptor — Table 14 constraints
|
|
762
777
|
*/
|
|
@@ -765,6 +780,40 @@ export interface VideoSubDescriptors {
|
|
|
765
780
|
* Presence indicates Dolby Vision HDR
|
|
766
781
|
*/
|
|
767
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;
|
|
768
817
|
}
|
|
769
818
|
/**
|
|
770
819
|
* JPEG 2000 Picture Sub Descriptor (ST 422 / ST 2067-21 Table 14)
|
|
@@ -899,6 +948,22 @@ export interface PHDRMetadataTrackSubDescriptor {
|
|
|
899
948
|
PHDRMetadataTrackSubDescriptor_SimplePayloadSID?: number | null;
|
|
900
949
|
PHDRMetadataTrackSubDescriptor_SourceTrackID?: number | null;
|
|
901
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
|
+
}
|
|
902
967
|
/**
|
|
903
968
|
* DC Timed Text descriptor (subtitles/captions)
|
|
904
969
|
*/
|
|
@@ -1002,16 +1067,14 @@ export interface IsxdSubDescriptors {
|
|
|
1002
1067
|
*/
|
|
1003
1068
|
ContainerConstraintsSubDescriptor?: ContainerConstraintsSubDescriptor | null;
|
|
1004
1069
|
}
|
|
1005
|
-
/**
|
|
1006
|
-
* ContainerConstraintsSubDescriptor — presence required by ST 2067-202 §5
|
|
1007
|
-
*/
|
|
1008
|
-
export interface ContainerConstraintsSubDescriptor {
|
|
1009
|
-
InstanceID?: string | null;
|
|
1010
|
-
}
|
|
1011
1070
|
/**
|
|
1012
1071
|
* RGBA video descriptor (JPEG 2000 RGB content)
|
|
1013
1072
|
*/
|
|
1014
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;
|
|
1015
1078
|
/**
|
|
1016
1079
|
* Table 10: AlphaMaxRef — shall not be present
|
|
1017
1080
|
*/
|
|
@@ -1034,6 +1097,10 @@ export interface RGBADescriptor {
|
|
|
1034
1097
|
* RGBA Descriptor: Component Min Ref (Table 10/11)
|
|
1035
1098
|
*/
|
|
1036
1099
|
ComponentMinRef?: number | null;
|
|
1100
|
+
/**
|
|
1101
|
+
* File Descriptor: Essence Container label
|
|
1102
|
+
*/
|
|
1103
|
+
ContainerFormat?: string | null;
|
|
1037
1104
|
/**
|
|
1038
1105
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
1039
1106
|
*/
|
|
@@ -1072,6 +1139,10 @@ export interface RGBADescriptor {
|
|
|
1072
1139
|
*/
|
|
1073
1140
|
PaletteLayout?: string | null;
|
|
1074
1141
|
PictureCompression?: VideoCodec | null;
|
|
1142
|
+
/**
|
|
1143
|
+
* RGBA Descriptor: Pixel Layout
|
|
1144
|
+
*/
|
|
1145
|
+
PixelLayout?: J2CLayout | null;
|
|
1075
1146
|
SampleRate?: EditRate | null;
|
|
1076
1147
|
/**
|
|
1077
1148
|
* Table 8: SampledHeight — shall not be present or shall be equal to StoredHeight
|
|
@@ -1093,6 +1164,10 @@ export interface RGBADescriptor {
|
|
|
1093
1164
|
* RGBA Descriptor: Scanning Direction (Table 10) Shall be "ScanningDirection_LeftToRightTopToBottom" (00h)
|
|
1094
1165
|
*/
|
|
1095
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;
|
|
1096
1171
|
/**
|
|
1097
1172
|
* Table 8: StoredF2Offset — shall not be present
|
|
1098
1173
|
*/
|
|
@@ -1101,6 +1176,16 @@ export interface RGBADescriptor {
|
|
|
1101
1176
|
StoredWidth?: number | null;
|
|
1102
1177
|
SubDescriptors?: VideoSubDescriptors | null;
|
|
1103
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[];
|
|
1104
1189
|
}
|
|
1105
1190
|
/**
|
|
1106
1191
|
* WAVE PCM audio descriptor
|