@libmedia/avutil 1.0.1 → 1.2.0

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.
Files changed (98) hide show
  1. package/dist/cjs/struct/audiosample.cjs +113 -111
  2. package/dist/cjs/struct/audiosample.js.map +1 -1
  3. package/dist/cjs/struct/avbuffer.cjs +274 -269
  4. package/dist/cjs/struct/avbuffer.js.map +1 -1
  5. package/dist/cjs/struct/avcodecparameters.cjs +328 -326
  6. package/dist/cjs/struct/avcodecparameters.js.map +1 -1
  7. package/dist/cjs/struct/avdict.cjs +56 -54
  8. package/dist/cjs/struct/avdict.js.map +1 -1
  9. package/dist/cjs/struct/avframe.cjs +630 -625
  10. package/dist/cjs/struct/avframe.js.map +1 -1
  11. package/dist/cjs/struct/avpacket.cjs +232 -228
  12. package/dist/cjs/struct/avpacket.js.map +1 -1
  13. package/dist/cjs/struct/avpcmbuffer.cjs +116 -113
  14. package/dist/cjs/struct/avpcmbuffer.js.map +1 -1
  15. package/dist/cjs/struct/encryption.cjs +214 -211
  16. package/dist/cjs/struct/encryption.js.map +1 -1
  17. package/dist/cjs/struct/rational.cjs +28 -26
  18. package/dist/cjs/struct/rational.js.map +1 -1
  19. package/dist/esm/AVStream.d.ts +4 -4
  20. package/dist/esm/AVStream.js +9 -7
  21. package/dist/esm/AVStream.js.map +1 -1
  22. package/dist/esm/codecs/aac.d.ts +2 -2
  23. package/dist/esm/codecs/av1.d.ts +2 -2
  24. package/dist/esm/codecs/flac.d.ts +2 -2
  25. package/dist/esm/codecs/h264.d.ts +3 -3
  26. package/dist/esm/codecs/hevc.d.ts +3 -3
  27. package/dist/esm/codecs/mp3.d.ts +2 -2
  28. package/dist/esm/codecs/mpeg4.d.ts +1 -1
  29. package/dist/esm/codecs/mpegvideo.d.ts +1 -1
  30. package/dist/esm/codecs/opus.d.ts +2 -2
  31. package/dist/esm/codecs/vp8.d.ts +3 -3
  32. package/dist/esm/codecs/vp9.d.ts +3 -3
  33. package/dist/esm/codecs/vvc.d.ts +3 -3
  34. package/dist/esm/constant.d.ts +1 -1
  35. package/dist/esm/function/analyzeAVFormat.d.ts +1 -1
  36. package/dist/esm/function/analyzeUrlIOLoader.d.ts +1 -1
  37. package/dist/esm/function/audioData2AVFrame.d.ts +1 -1
  38. package/dist/esm/function/avPCMBuffer2AVFrame.d.ts +2 -2
  39. package/dist/esm/function/avframe2AudioData.d.ts +1 -1
  40. package/dist/esm/function/avframe2VideoFrame.d.ts +2 -2
  41. package/dist/esm/function/avpacket2EncodedAudioChunk.d.ts +1 -1
  42. package/dist/esm/function/avpacket2EncodedVideoChunk.d.ts +1 -1
  43. package/dist/esm/function/constant/webcodecs.d.ts +1 -1
  44. package/dist/esm/function/encodedAudioChunk2AVPacket.d.ts +1 -1
  45. package/dist/esm/function/encodedVideoChunk2AVPacket.d.ts +1 -1
  46. package/dist/esm/function/getAudioCodec.d.ts +1 -1
  47. package/dist/esm/function/getAudioMimeType.d.ts +1 -1
  48. package/dist/esm/function/getVideoCodec.d.ts +1 -1
  49. package/dist/esm/function/getVideoMimeType.d.ts +1 -1
  50. package/dist/esm/function/getWasmUrl.d.ts +1 -1
  51. package/dist/esm/function/hasAlphaChannel.d.ts +1 -1
  52. package/dist/esm/function/isHdr.d.ts +1 -1
  53. package/dist/esm/function/videoFrame2AVFrame.d.ts +2 -2
  54. package/dist/esm/implement/AVFramePoolImpl.d.ts +2 -2
  55. package/dist/esm/implement/AVPCMBufferPoolImpl.d.ts +2 -2
  56. package/dist/esm/implement/AVPacketPoolImpl.d.ts +2 -2
  57. package/dist/esm/index.d.ts +54 -54
  58. package/dist/esm/internal.d.ts +26 -26
  59. package/dist/esm/pixelFormatDescriptor.d.ts +1 -1
  60. package/dist/esm/sampleFormatDescriptor.d.ts +1 -1
  61. package/dist/esm/stringEnum.d.ts +5 -5
  62. package/dist/esm/struct/audiosample.d.ts +1 -1
  63. package/dist/esm/struct/audiosample.js +105 -106
  64. package/dist/esm/struct/avbuffer.js +262 -265
  65. package/dist/esm/struct/avbuffer.js.map +1 -1
  66. package/dist/esm/struct/avcodecparameters.d.ts +7 -7
  67. package/dist/esm/struct/avcodecparameters.js +328 -326
  68. package/dist/esm/struct/avcodecparameters.js.map +1 -1
  69. package/dist/esm/struct/avdict.js +50 -51
  70. package/dist/esm/struct/avframe.d.ts +6 -6
  71. package/dist/esm/struct/avframe.js +621 -623
  72. package/dist/esm/struct/avframe.js.map +1 -1
  73. package/dist/esm/struct/avpacket.d.ts +3 -3
  74. package/dist/esm/struct/avpacket.js +222 -223
  75. package/dist/esm/struct/avpacket.js.map +1 -1
  76. package/dist/esm/struct/avpcmbuffer.d.ts +1 -1
  77. package/dist/esm/struct/avpcmbuffer.js +110 -111
  78. package/dist/esm/struct/avsubtitle.d.ts +1 -1
  79. package/dist/esm/struct/encryption.js +205 -207
  80. package/dist/esm/struct/encryption.js.map +1 -1
  81. package/dist/esm/struct/rational.js +25 -25
  82. package/dist/esm/util/avbuffer.d.ts +2 -2
  83. package/dist/esm/util/avdict.d.ts +2 -2
  84. package/dist/esm/util/avdict.js +8 -6
  85. package/dist/esm/util/avdict.js.map +1 -1
  86. package/dist/esm/util/avframe.d.ts +2 -2
  87. package/dist/esm/util/avpacket.d.ts +2 -2
  88. package/dist/esm/util/avpacket.js +6 -4
  89. package/dist/esm/util/avpacket.js.map +1 -1
  90. package/dist/esm/util/channel.d.ts +1 -1
  91. package/dist/esm/util/codecparameters.d.ts +3 -3
  92. package/dist/esm/util/encryption.d.ts +1 -1
  93. package/dist/esm/util/pcm.d.ts +1 -1
  94. package/dist/esm/util/pixel.d.ts +1 -1
  95. package/dist/esm/util/rational.d.ts +1 -1
  96. package/dist/esm/util/sample.d.ts +1 -1
  97. package/dist/esm/util/serialize.d.ts +6 -6
  98. package/package.json +4 -3
@@ -16,124 +16,127 @@ class AVPCMBuffer {
16
16
  format;
17
17
  timestamp;
18
18
  duration;
19
+ static {
20
+ const prototype = this.prototype, map = new Map;
21
+ map.set("data", {
22
+ 0: 2,
23
+ 1: 1,
24
+ 2: 2,
25
+ 3: 0,
26
+ 4: 0,
27
+ 5: 0,
28
+ 6: 0,
29
+ 7: 0,
30
+ 8: 0
31
+ }), map.set("linesize", {
32
+ 0: 15,
33
+ 1: 0,
34
+ 2: 0,
35
+ 3: 0,
36
+ 4: 0,
37
+ 5: 0,
38
+ 6: 0,
39
+ 7: 4,
40
+ 8: 0
41
+ }), map.set("nbSamples", {
42
+ 0: 15,
43
+ 1: 0,
44
+ 2: 0,
45
+ 3: 0,
46
+ 4: 0,
47
+ 5: 0,
48
+ 6: 0,
49
+ 7: 8,
50
+ 8: 0
51
+ }), map.set("maxnbSamples", {
52
+ 0: 15,
53
+ 1: 0,
54
+ 2: 0,
55
+ 3: 0,
56
+ 4: 0,
57
+ 5: 0,
58
+ 6: 0,
59
+ 7: 12,
60
+ 8: 0
61
+ }), map.set("channels", {
62
+ 0: 15,
63
+ 1: 0,
64
+ 2: 0,
65
+ 3: 0,
66
+ 4: 0,
67
+ 5: 0,
68
+ 6: 0,
69
+ 7: 16,
70
+ 8: 0
71
+ }), map.set("sampleRate", {
72
+ 0: 15,
73
+ 1: 0,
74
+ 2: 0,
75
+ 3: 0,
76
+ 4: 0,
77
+ 5: 0,
78
+ 6: 0,
79
+ 7: 20,
80
+ 8: 0
81
+ }), map.set("format", {
82
+ 0: 15,
83
+ 1: 0,
84
+ 2: 0,
85
+ 3: 0,
86
+ 4: 0,
87
+ 5: 0,
88
+ 6: 0,
89
+ 7: 24,
90
+ 8: 0
91
+ }), map.set("timestamp", {
92
+ 0: 17,
93
+ 1: 0,
94
+ 2: 0,
95
+ 3: 0,
96
+ 4: 0,
97
+ 5: 0,
98
+ 6: 0,
99
+ 7: 32,
100
+ 8: 0
101
+ }), map.set("duration", {
102
+ 0: 19,
103
+ 1: 0,
104
+ 2: 0,
105
+ 3: 0,
106
+ 4: 0,
107
+ 5: 0,
108
+ 6: 0,
109
+ 7: 40,
110
+ 8: 0
111
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
112
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
113
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 48),
114
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
115
+ }
19
116
  }
20
117
 
21
- var prototype, map;
22
-
23
- exports.default = AVPCMBuffer, prototype = AVPCMBuffer.prototype, (map = new Map).set("data", {
24
- 0: 2,
25
- 1: 1,
26
- 2: 2,
27
- 3: 0,
28
- 4: 0,
29
- 5: 0,
30
- 6: 0,
31
- 7: 0,
32
- 8: 0
33
- }), map.set("linesize", {
34
- 0: 15,
35
- 1: 0,
36
- 2: 0,
37
- 3: 0,
38
- 4: 0,
39
- 5: 0,
40
- 6: 0,
41
- 7: 4,
42
- 8: 0
43
- }), map.set("nbSamples", {
44
- 0: 15,
45
- 1: 0,
46
- 2: 0,
47
- 3: 0,
48
- 4: 0,
49
- 5: 0,
50
- 6: 0,
51
- 7: 8,
52
- 8: 0
53
- }), map.set("maxnbSamples", {
54
- 0: 15,
55
- 1: 0,
56
- 2: 0,
57
- 3: 0,
58
- 4: 0,
59
- 5: 0,
60
- 6: 0,
61
- 7: 12,
62
- 8: 0
63
- }), map.set("channels", {
64
- 0: 15,
65
- 1: 0,
66
- 2: 0,
67
- 3: 0,
68
- 4: 0,
69
- 5: 0,
70
- 6: 0,
71
- 7: 16,
72
- 8: 0
73
- }), map.set("sampleRate", {
74
- 0: 15,
75
- 1: 0,
76
- 2: 0,
77
- 3: 0,
78
- 4: 0,
79
- 5: 0,
80
- 6: 0,
81
- 7: 20,
82
- 8: 0
83
- }), map.set("format", {
84
- 0: 15,
85
- 1: 0,
86
- 2: 0,
87
- 3: 0,
88
- 4: 0,
89
- 5: 0,
90
- 6: 0,
91
- 7: 24,
92
- 8: 0
93
- }), map.set("timestamp", {
94
- 0: 17,
95
- 1: 0,
96
- 2: 0,
97
- 3: 0,
98
- 4: 0,
99
- 5: 0,
100
- 6: 0,
101
- 7: 32,
102
- 8: 0
103
- }), map.set("duration", {
104
- 0: 19,
105
- 1: 0,
106
- 2: 0,
107
- 3: 0,
108
- 4: 0,
109
- 5: 0,
110
- 6: 0,
111
- 7: 40,
112
- 8: 0
113
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
114
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
115
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 48),
116
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
118
+ exports.default = AVPCMBuffer;
117
119
 
118
120
  class AVPCMBufferRef extends AVPCMBuffer {
119
121
  refCount;
122
+ static {
123
+ const prototype = this.prototype, map = new Map;
124
+ map.set("refCount", {
125
+ 0: 16,
126
+ 1: 0,
127
+ 2: 0,
128
+ 3: 0,
129
+ 4: 0,
130
+ 5: 0,
131
+ 6: 0,
132
+ 7: 48,
133
+ 8: 0
134
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
135
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
136
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 56),
137
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
138
+ }
120
139
  }
121
140
 
122
- exports.AVPCMBufferRef = AVPCMBufferRef, function(prototype) {
123
- var map = new Map;
124
- map.set("refCount", {
125
- 0: 16,
126
- 1: 0,
127
- 2: 0,
128
- 3: 0,
129
- 4: 0,
130
- 5: 0,
131
- 6: 0,
132
- 7: 48,
133
- 8: 0
134
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
135
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
136
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 56),
137
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
138
- }(AVPCMBufferRef.prototype);
141
+ exports.AVPCMBufferRef = AVPCMBufferRef;
139
142
  //# sourceMappingURL=avpcmbuffer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["AVPCMBuffer","data","linesize","nbSamples","maxnbSamples","channels","sampleRate","format","timestamp","duration","exports","default","AVPCMBufferRef","refCount"],"sources":["../../../src/struct/avpcmbuffer.ts"],"mappings":";;;;;;;;AA2BA,MACqBA;IAKnBC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;;;;;AAtCFC,QAAAC,UAAAX,a;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,MACaY,uBAAuBZ;IAClCa;;;AAFFH,QAAAE,iC","ignoreList":[]}
1
+ {"version":3,"names":["AVPCMBuffer","data","linesize","nbSamples","maxnbSamples","channels","sampleRate","format","timestamp","duration","AVPCMBufferRef","refCount"],"sources":["../../../src/struct/avpcmbuffer.ts"],"mappings":";;;;;;;;MA4BqBA;IAKnBC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;IAIAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIWC,uBAAuBV;IAClCW","ignoreList":[]}
@@ -9,35 +9,36 @@ const cheap__identifier__0 = require("@libmedia/cheap/internal");
9
9
  class AVSubsampleEncryptionInfo {
10
10
  bytesOfClearData;
11
11
  bytesOfProtectedData;
12
+ static {
13
+ const prototype = this.prototype, map = new Map;
14
+ map.set("bytesOfClearData", {
15
+ 0: 8,
16
+ 1: 0,
17
+ 2: 0,
18
+ 3: 0,
19
+ 4: 0,
20
+ 5: 0,
21
+ 6: 0,
22
+ 7: 0,
23
+ 8: 0
24
+ }), map.set("bytesOfProtectedData", {
25
+ 0: 8,
26
+ 1: 0,
27
+ 2: 0,
28
+ 3: 0,
29
+ 4: 0,
30
+ 5: 0,
31
+ 6: 0,
32
+ 7: 4,
33
+ 8: 0
34
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
35
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
36
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 8),
37
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
38
+ }
12
39
  }
13
40
 
14
- var prototype, map;
15
-
16
- exports.AVSubsampleEncryptionInfo = AVSubsampleEncryptionInfo, prototype = AVSubsampleEncryptionInfo.prototype,
17
- (map = new Map).set("bytesOfClearData", {
18
- 0: 8,
19
- 1: 0,
20
- 2: 0,
21
- 3: 0,
22
- 4: 0,
23
- 5: 0,
24
- 6: 0,
25
- 7: 0,
26
- 8: 0
27
- }), map.set("bytesOfProtectedData", {
28
- 0: 8,
29
- 1: 0,
30
- 2: 0,
31
- 3: 0,
32
- 4: 0,
33
- 5: 0,
34
- 6: 0,
35
- 7: 4,
36
- 8: 0
37
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
38
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
39
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 8),
40
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
41
+ exports.AVSubsampleEncryptionInfo = AVSubsampleEncryptionInfo;
41
42
 
42
43
  class AVEncryptionInfo {
43
44
  scheme;
@@ -49,105 +50,106 @@ class AVEncryptionInfo {
49
50
  ivSize;
50
51
  subsamples;
51
52
  subsampleCount;
53
+ static {
54
+ const prototype = this.prototype, map = new Map;
55
+ map.set("scheme", {
56
+ 0: 8,
57
+ 1: 0,
58
+ 2: 0,
59
+ 3: 0,
60
+ 4: 0,
61
+ 5: 0,
62
+ 6: 0,
63
+ 7: 0,
64
+ 8: 0
65
+ }), map.set("cryptByteBlock", {
66
+ 0: 8,
67
+ 1: 0,
68
+ 2: 0,
69
+ 3: 0,
70
+ 4: 0,
71
+ 5: 0,
72
+ 6: 0,
73
+ 7: 4,
74
+ 8: 0
75
+ }), map.set("skipByteBlock", {
76
+ 0: 8,
77
+ 1: 0,
78
+ 2: 0,
79
+ 3: 0,
80
+ 4: 0,
81
+ 5: 0,
82
+ 6: 0,
83
+ 7: 8,
84
+ 8: 0
85
+ }), map.set("keyId", {
86
+ 0: 2,
87
+ 1: 1,
88
+ 2: 1,
89
+ 3: 0,
90
+ 4: 0,
91
+ 5: 0,
92
+ 6: 0,
93
+ 7: 12,
94
+ 8: 0
95
+ }), map.set("keyIdSize", {
96
+ 0: 8,
97
+ 1: 0,
98
+ 2: 0,
99
+ 3: 0,
100
+ 4: 0,
101
+ 5: 0,
102
+ 6: 0,
103
+ 7: 16,
104
+ 8: 0
105
+ }), map.set("iv", {
106
+ 0: 2,
107
+ 1: 1,
108
+ 2: 1,
109
+ 3: 0,
110
+ 4: 0,
111
+ 5: 0,
112
+ 6: 0,
113
+ 7: 20,
114
+ 8: 0
115
+ }), map.set("ivSize", {
116
+ 0: 8,
117
+ 1: 0,
118
+ 2: 0,
119
+ 3: 0,
120
+ 4: 0,
121
+ 5: 0,
122
+ 6: 0,
123
+ 7: 24,
124
+ 8: 0
125
+ }), map.set("subsamples", {
126
+ 0: AVSubsampleEncryptionInfo,
127
+ 1: 1,
128
+ 2: 1,
129
+ 3: 0,
130
+ 4: 0,
131
+ 5: 0,
132
+ 6: 0,
133
+ 7: 28,
134
+ 8: 0
135
+ }), map.set("subsampleCount", {
136
+ 0: 8,
137
+ 1: 0,
138
+ 2: 0,
139
+ 3: 0,
140
+ 4: 0,
141
+ 5: 0,
142
+ 6: 0,
143
+ 7: 32,
144
+ 8: 0
145
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
146
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
147
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 36),
148
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
149
+ }
52
150
  }
53
151
 
54
- exports.AVEncryptionInfo = AVEncryptionInfo, function(prototype) {
55
- var map = new Map;
56
- map.set("scheme", {
57
- 0: 8,
58
- 1: 0,
59
- 2: 0,
60
- 3: 0,
61
- 4: 0,
62
- 5: 0,
63
- 6: 0,
64
- 7: 0,
65
- 8: 0
66
- }), map.set("cryptByteBlock", {
67
- 0: 8,
68
- 1: 0,
69
- 2: 0,
70
- 3: 0,
71
- 4: 0,
72
- 5: 0,
73
- 6: 0,
74
- 7: 4,
75
- 8: 0
76
- }), map.set("skipByteBlock", {
77
- 0: 8,
78
- 1: 0,
79
- 2: 0,
80
- 3: 0,
81
- 4: 0,
82
- 5: 0,
83
- 6: 0,
84
- 7: 8,
85
- 8: 0
86
- }), map.set("keyId", {
87
- 0: 2,
88
- 1: 1,
89
- 2: 1,
90
- 3: 0,
91
- 4: 0,
92
- 5: 0,
93
- 6: 0,
94
- 7: 12,
95
- 8: 0
96
- }), map.set("keyIdSize", {
97
- 0: 8,
98
- 1: 0,
99
- 2: 0,
100
- 3: 0,
101
- 4: 0,
102
- 5: 0,
103
- 6: 0,
104
- 7: 16,
105
- 8: 0
106
- }), map.set("iv", {
107
- 0: 2,
108
- 1: 1,
109
- 2: 1,
110
- 3: 0,
111
- 4: 0,
112
- 5: 0,
113
- 6: 0,
114
- 7: 20,
115
- 8: 0
116
- }), map.set("ivSize", {
117
- 0: 8,
118
- 1: 0,
119
- 2: 0,
120
- 3: 0,
121
- 4: 0,
122
- 5: 0,
123
- 6: 0,
124
- 7: 24,
125
- 8: 0
126
- }), map.set("subsamples", {
127
- 0: AVSubsampleEncryptionInfo,
128
- 1: 1,
129
- 2: 1,
130
- 3: 0,
131
- 4: 0,
132
- 5: 0,
133
- 6: 0,
134
- 7: 28,
135
- 8: 0
136
- }), map.set("subsampleCount", {
137
- 0: 8,
138
- 1: 0,
139
- 2: 0,
140
- 3: 0,
141
- 4: 0,
142
- 5: 0,
143
- 6: 0,
144
- 7: 32,
145
- 8: 0
146
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
147
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
148
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 36),
149
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
150
- }(AVEncryptionInfo.prototype);
152
+ exports.AVEncryptionInfo = AVEncryptionInfo;
151
153
 
152
154
  class AVEncryptionInitInfo {
153
155
  systemId;
@@ -158,93 +160,94 @@ class AVEncryptionInitInfo {
158
160
  data;
159
161
  dataSize;
160
162
  next;
163
+ static {
164
+ const prototype = this.prototype, map = new Map;
165
+ map.set("systemId", {
166
+ 0: 2,
167
+ 1: 1,
168
+ 2: 1,
169
+ 3: 0,
170
+ 4: 0,
171
+ 5: 0,
172
+ 6: 0,
173
+ 7: 0,
174
+ 8: 0
175
+ }), map.set("systemIdSize", {
176
+ 0: 8,
177
+ 1: 0,
178
+ 2: 0,
179
+ 3: 0,
180
+ 4: 0,
181
+ 5: 0,
182
+ 6: 0,
183
+ 7: 4,
184
+ 8: 0
185
+ }), map.set("keyIds", {
186
+ 0: 2,
187
+ 1: 1,
188
+ 2: 2,
189
+ 3: 0,
190
+ 4: 0,
191
+ 5: 0,
192
+ 6: 0,
193
+ 7: 8,
194
+ 8: 0
195
+ }), map.set("numKeyIds", {
196
+ 0: 8,
197
+ 1: 0,
198
+ 2: 0,
199
+ 3: 0,
200
+ 4: 0,
201
+ 5: 0,
202
+ 6: 0,
203
+ 7: 12,
204
+ 8: 0
205
+ }), map.set("keyIdSize", {
206
+ 0: 8,
207
+ 1: 0,
208
+ 2: 0,
209
+ 3: 0,
210
+ 4: 0,
211
+ 5: 0,
212
+ 6: 0,
213
+ 7: 16,
214
+ 8: 0
215
+ }), map.set("data", {
216
+ 0: 2,
217
+ 1: 1,
218
+ 2: 1,
219
+ 3: 0,
220
+ 4: 0,
221
+ 5: 0,
222
+ 6: 0,
223
+ 7: 20,
224
+ 8: 0
225
+ }), map.set("dataSize", {
226
+ 0: 8,
227
+ 1: 0,
228
+ 2: 0,
229
+ 3: 0,
230
+ 4: 0,
231
+ 5: 0,
232
+ 6: 0,
233
+ 7: 24,
234
+ 8: 0
235
+ }), map.set("next", {
236
+ 0: AVEncryptionInitInfo,
237
+ 1: 1,
238
+ 2: 1,
239
+ 3: 0,
240
+ 4: 0,
241
+ 5: 0,
242
+ 6: 0,
243
+ 7: 28,
244
+ 8: 0
245
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
246
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
247
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 32),
248
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
249
+ }
161
250
  }
162
251
 
163
- exports.AVEncryptionInitInfo = AVEncryptionInitInfo, function(prototype) {
164
- var map = new Map;
165
- map.set("systemId", {
166
- 0: 2,
167
- 1: 1,
168
- 2: 1,
169
- 3: 0,
170
- 4: 0,
171
- 5: 0,
172
- 6: 0,
173
- 7: 0,
174
- 8: 0
175
- }), map.set("systemIdSize", {
176
- 0: 8,
177
- 1: 0,
178
- 2: 0,
179
- 3: 0,
180
- 4: 0,
181
- 5: 0,
182
- 6: 0,
183
- 7: 4,
184
- 8: 0
185
- }), map.set("keyIds", {
186
- 0: 2,
187
- 1: 1,
188
- 2: 2,
189
- 3: 0,
190
- 4: 0,
191
- 5: 0,
192
- 6: 0,
193
- 7: 8,
194
- 8: 0
195
- }), map.set("numKeyIds", {
196
- 0: 8,
197
- 1: 0,
198
- 2: 0,
199
- 3: 0,
200
- 4: 0,
201
- 5: 0,
202
- 6: 0,
203
- 7: 12,
204
- 8: 0
205
- }), map.set("keyIdSize", {
206
- 0: 8,
207
- 1: 0,
208
- 2: 0,
209
- 3: 0,
210
- 4: 0,
211
- 5: 0,
212
- 6: 0,
213
- 7: 16,
214
- 8: 0
215
- }), map.set("data", {
216
- 0: 2,
217
- 1: 1,
218
- 2: 1,
219
- 3: 0,
220
- 4: 0,
221
- 5: 0,
222
- 6: 0,
223
- 7: 20,
224
- 8: 0
225
- }), map.set("dataSize", {
226
- 0: 8,
227
- 1: 0,
228
- 2: 0,
229
- 3: 0,
230
- 4: 0,
231
- 5: 0,
232
- 6: 0,
233
- 7: 24,
234
- 8: 0
235
- }), map.set("next", {
236
- 0: AVEncryptionInitInfo,
237
- 1: 1,
238
- 2: 1,
239
- 3: 0,
240
- 4: 0,
241
- 5: 0,
242
- 6: 0,
243
- 7: 28,
244
- 8: 0
245
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
246
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
247
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 32),
248
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
249
- }(AVEncryptionInitInfo.prototype);
252
+ exports.AVEncryptionInitInfo = AVEncryptionInitInfo;
250
253
  //# sourceMappingURL=encryption.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["AVSubsampleEncryptionInfo","bytesOfClearData","bytesOfProtectedData","exports","AVEncryptionInfo","scheme","cryptByteBlock","skipByteBlock","keyId","keyIdSize","iv","ivSize","subsamples","subsampleCount","AVEncryptionInitInfo","systemId","systemIdSize","keyIds","numKeyIds","data","dataSize","next"],"sources":["../../../src/struct/encryption.ts"],"mappings":";;;;;;;;AAyBA,MACaA;IAIXC;IAMAC;;;;;AAXFC,QAAAH,uD;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,MACaI;IAIXC;IAMAC;IAMAC;IAMAC;IACAC;IAOAC;IACAC;IAOAC;IACAC;;;AAxCFV,QAAAC,qC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEA,MACaU;IAMXC;IACAC;IAMAC;IAEAC;IAKAT;IAQAU;IACAC;IAIAC;;;AAlCFlB,QAAAW,6C","ignoreList":[]}
1
+ {"version":3,"names":["AVSubsampleEncryptionInfo","bytesOfClearData","bytesOfProtectedData","AVEncryptionInfo","scheme","cryptByteBlock","skipByteBlock","keyId","keyIdSize","iv","ivSize","subsamples","subsampleCount","AVEncryptionInitInfo","systemId","systemIdSize","keyIds","numKeyIds","data","dataSize","next"],"sources":["../../../src/struct/encryption.ts"],"mappings":";;;;;;;;MA0BaA;IAIXC;IAMAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2CWC;IAIXC;IAMAC;IAMAC;IAMAC;IACAC;IAOAC;IACAC;IAOAC;IACAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BWC;IAMXC;IACAC;IAMAC;IAEAC;IAKAT;IAQAU;IACAC;IAIAC","ignoreList":[]}