@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
@@ -12,65 +12,66 @@ class AVFrameSideData {
12
12
  size=0;
13
13
  metadata=0;
14
14
  buf=0;
15
+ static {
16
+ const prototype = this.prototype, map = new Map;
17
+ map.set("type", {
18
+ 0: 15,
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("data", {
28
+ 0: 2,
29
+ 1: 1,
30
+ 2: 1,
31
+ 3: 0,
32
+ 4: 0,
33
+ 5: 0,
34
+ 6: 0,
35
+ 7: 4,
36
+ 8: 0
37
+ }), map.set("size", {
38
+ 0: 25,
39
+ 1: 0,
40
+ 2: 0,
41
+ 3: 0,
42
+ 4: 0,
43
+ 5: 0,
44
+ 6: 0,
45
+ 7: 8,
46
+ 8: 0
47
+ }), map.set("metadata", {
48
+ 0: cheap__identifier__5.AVDictionary,
49
+ 1: 1,
50
+ 2: 1,
51
+ 3: 0,
52
+ 4: 0,
53
+ 5: 0,
54
+ 6: 0,
55
+ 7: 12,
56
+ 8: 0
57
+ }), map.set("buf", {
58
+ 0: cheap__identifier__6.AVBufferRef,
59
+ 1: 1,
60
+ 2: 1,
61
+ 3: 0,
62
+ 4: 0,
63
+ 5: 0,
64
+ 6: 0,
65
+ 7: 16,
66
+ 8: 0
67
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
68
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
69
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 20),
70
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
71
+ }
15
72
  }
16
73
 
17
- var prototype, map;
18
-
19
- exports.AVFrameSideData = AVFrameSideData, prototype = AVFrameSideData.prototype,
20
- (map = new Map).set("type", {
21
- 0: 15,
22
- 1: 0,
23
- 2: 0,
24
- 3: 0,
25
- 4: 0,
26
- 5: 0,
27
- 6: 0,
28
- 7: 0,
29
- 8: 0
30
- }), map.set("data", {
31
- 0: 2,
32
- 1: 1,
33
- 2: 1,
34
- 3: 0,
35
- 4: 0,
36
- 5: 0,
37
- 6: 0,
38
- 7: 4,
39
- 8: 0
40
- }), map.set("size", {
41
- 0: 25,
42
- 1: 0,
43
- 2: 0,
44
- 3: 0,
45
- 4: 0,
46
- 5: 0,
47
- 6: 0,
48
- 7: 8,
49
- 8: 0
50
- }), map.set("metadata", {
51
- 0: cheap__identifier__5.AVDictionary,
52
- 1: 1,
53
- 2: 1,
54
- 3: 0,
55
- 4: 0,
56
- 5: 0,
57
- 6: 0,
58
- 7: 12,
59
- 8: 0
60
- }), map.set("buf", {
61
- 0: cheap__identifier__6.AVBufferRef,
62
- 1: 1,
63
- 2: 1,
64
- 3: 0,
65
- 4: 0,
66
- 5: 0,
67
- 6: 0,
68
- 7: 16,
69
- 8: 0
70
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
71
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
72
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 20),
73
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
74
+ exports.AVFrameSideData = AVFrameSideData;
74
75
 
75
76
  class AVMasteringDisplayMetadata {
76
77
  displayPrimaries;
@@ -79,108 +80,110 @@ class AVMasteringDisplayMetadata {
79
80
  maxLuminance;
80
81
  hasPrimaries;
81
82
  hasLuminance;
83
+ static {
84
+ const prototype = this.prototype, map = new Map;
85
+ map.set("displayPrimaries", {
86
+ 0: cheap__identifier__12.AVRational,
87
+ 1: 0,
88
+ 2: 0,
89
+ 3: 1,
90
+ 4: 6,
91
+ 5: 0,
92
+ 6: 0,
93
+ 7: 0,
94
+ 8: 0
95
+ }), map.set("whitePoint", {
96
+ 0: cheap__identifier__12.AVRational,
97
+ 1: 0,
98
+ 2: 0,
99
+ 3: 1,
100
+ 4: 2,
101
+ 5: 0,
102
+ 6: 0,
103
+ 7: 48,
104
+ 8: 0
105
+ }), map.set("minLuminance", {
106
+ 0: cheap__identifier__12.AVRational,
107
+ 1: 0,
108
+ 2: 0,
109
+ 3: 0,
110
+ 4: 0,
111
+ 5: 0,
112
+ 6: 0,
113
+ 7: 64,
114
+ 8: 0
115
+ }), map.set("maxLuminance", {
116
+ 0: cheap__identifier__12.AVRational,
117
+ 1: 0,
118
+ 2: 0,
119
+ 3: 0,
120
+ 4: 0,
121
+ 5: 0,
122
+ 6: 0,
123
+ 7: 72,
124
+ 8: 0
125
+ }), map.set("hasPrimaries", {
126
+ 0: 15,
127
+ 1: 0,
128
+ 2: 0,
129
+ 3: 0,
130
+ 4: 0,
131
+ 5: 0,
132
+ 6: 0,
133
+ 7: 80,
134
+ 8: 0
135
+ }), map.set("hasLuminance", {
136
+ 0: 15,
137
+ 1: 0,
138
+ 2: 0,
139
+ 3: 0,
140
+ 4: 0,
141
+ 5: 0,
142
+ 6: 0,
143
+ 7: 84,
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, 88),
148
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
149
+ }
82
150
  }
83
151
 
84
- exports.AVMasteringDisplayMetadata = AVMasteringDisplayMetadata, function(prototype) {
85
- var map = new Map;
86
- map.set("displayPrimaries", {
87
- 0: cheap__identifier__12.AVRational,
88
- 1: 0,
89
- 2: 0,
90
- 3: 1,
91
- 4: 6,
92
- 5: 0,
93
- 6: 0,
94
- 7: 0,
95
- 8: 0
96
- }), map.set("whitePoint", {
97
- 0: cheap__identifier__12.AVRational,
98
- 1: 0,
99
- 2: 0,
100
- 3: 1,
101
- 4: 2,
102
- 5: 0,
103
- 6: 0,
104
- 7: 48,
105
- 8: 0
106
- }), map.set("minLuminance", {
107
- 0: cheap__identifier__12.AVRational,
108
- 1: 0,
109
- 2: 0,
110
- 3: 0,
111
- 4: 0,
112
- 5: 0,
113
- 6: 0,
114
- 7: 64,
115
- 8: 0
116
- }), map.set("maxLuminance", {
117
- 0: cheap__identifier__12.AVRational,
118
- 1: 0,
119
- 2: 0,
120
- 3: 0,
121
- 4: 0,
122
- 5: 0,
123
- 6: 0,
124
- 7: 72,
125
- 8: 0
126
- }), map.set("hasPrimaries", {
127
- 0: 15,
128
- 1: 0,
129
- 2: 0,
130
- 3: 0,
131
- 4: 0,
132
- 5: 0,
133
- 6: 0,
134
- 7: 80,
135
- 8: 0
136
- }), map.set("hasLuminance", {
137
- 0: 15,
138
- 1: 0,
139
- 2: 0,
140
- 3: 0,
141
- 4: 0,
142
- 5: 0,
143
- 6: 0,
144
- 7: 84,
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, 88),
149
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
150
- }(AVMasteringDisplayMetadata.prototype);
152
+ exports.AVMasteringDisplayMetadata = AVMasteringDisplayMetadata;
151
153
 
152
154
  class AVContentLightMetadata {
153
155
  maxCLL;
154
156
  maxFALL;
157
+ static {
158
+ const prototype = this.prototype, map = new Map;
159
+ map.set("maxCLL", {
160
+ 0: 8,
161
+ 1: 0,
162
+ 2: 0,
163
+ 3: 0,
164
+ 4: 0,
165
+ 5: 0,
166
+ 6: 0,
167
+ 7: 0,
168
+ 8: 0
169
+ }), map.set("maxFALL", {
170
+ 0: 8,
171
+ 1: 0,
172
+ 2: 0,
173
+ 3: 0,
174
+ 4: 0,
175
+ 5: 0,
176
+ 6: 0,
177
+ 7: 4,
178
+ 8: 0
179
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
180
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
181
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 8),
182
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
183
+ }
155
184
  }
156
185
 
157
- exports.AVContentLightMetadata = AVContentLightMetadata, function(prototype) {
158
- var map = new Map;
159
- map.set("maxCLL", {
160
- 0: 8,
161
- 1: 0,
162
- 2: 0,
163
- 3: 0,
164
- 4: 0,
165
- 5: 0,
166
- 6: 0,
167
- 7: 0,
168
- 8: 0
169
- }), map.set("maxFALL", {
170
- 0: 8,
171
- 1: 0,
172
- 2: 0,
173
- 3: 0,
174
- 4: 0,
175
- 5: 0,
176
- 6: 0,
177
- 7: 4,
178
- 8: 0
179
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
180
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 4),
181
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 8),
182
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
183
- }(AVContentLightMetadata.prototype);
186
+ exports.AVContentLightMetadata = AVContentLightMetadata;
184
187
 
185
188
  class AVFrame {
186
189
  data=new Array(constant_1.AV_NUM_DATA_POINTERS).fill(0, 0, constant_1.AV_NUM_DATA_POINTERS);
@@ -234,485 +237,487 @@ class AVFrame {
234
237
  close() {
235
238
  (0, avframe_1.unrefAVFrame)(this[cheap__identifier__0.symbolStructAddress]), cheap__identifier__22.unmake(this);
236
239
  }
240
+ static {
241
+ const prototype = this.prototype, map = new Map;
242
+ map.set("data", {
243
+ 0: 2,
244
+ 1: 1,
245
+ 2: 1,
246
+ 3: 1,
247
+ 4: 8,
248
+ 5: 0,
249
+ 6: 0,
250
+ 7: 0,
251
+ 8: 0
252
+ }), map.set("linesize", {
253
+ 0: 15,
254
+ 1: 0,
255
+ 2: 0,
256
+ 3: 1,
257
+ 4: 8,
258
+ 5: 0,
259
+ 6: 0,
260
+ 7: 32,
261
+ 8: 0
262
+ }), map.set("extendedData", {
263
+ 0: 2,
264
+ 1: 1,
265
+ 2: 2,
266
+ 3: 0,
267
+ 4: 0,
268
+ 5: 0,
269
+ 6: 0,
270
+ 7: 64,
271
+ 8: 0
272
+ }), map.set("width", {
273
+ 0: 15,
274
+ 1: 0,
275
+ 2: 0,
276
+ 3: 0,
277
+ 4: 0,
278
+ 5: 0,
279
+ 6: 0,
280
+ 7: 68,
281
+ 8: 0
282
+ }), map.set("height", {
283
+ 0: 15,
284
+ 1: 0,
285
+ 2: 0,
286
+ 3: 0,
287
+ 4: 0,
288
+ 5: 0,
289
+ 6: 0,
290
+ 7: 72,
291
+ 8: 0
292
+ }), map.set("nbSamples", {
293
+ 0: 15,
294
+ 1: 0,
295
+ 2: 0,
296
+ 3: 0,
297
+ 4: 0,
298
+ 5: 0,
299
+ 6: 0,
300
+ 7: 76,
301
+ 8: 0
302
+ }), map.set("format", {
303
+ 0: 15,
304
+ 1: 0,
305
+ 2: 0,
306
+ 3: 0,
307
+ 4: 0,
308
+ 5: 0,
309
+ 6: 0,
310
+ 7: 80,
311
+ 8: 0
312
+ }), map.set("keyFrame", {
313
+ 0: 15,
314
+ 1: 0,
315
+ 2: 0,
316
+ 3: 0,
317
+ 4: 0,
318
+ 5: 0,
319
+ 6: 0,
320
+ 7: 84,
321
+ 8: 0
322
+ }), map.set("pictType", {
323
+ 0: 15,
324
+ 1: 0,
325
+ 2: 0,
326
+ 3: 0,
327
+ 4: 0,
328
+ 5: 0,
329
+ 6: 0,
330
+ 7: 88,
331
+ 8: 0
332
+ }), map.set("sampleAspectRatio", {
333
+ 0: cheap__identifier__12.AVRational,
334
+ 1: 0,
335
+ 2: 0,
336
+ 3: 0,
337
+ 4: 0,
338
+ 5: 0,
339
+ 6: 0,
340
+ 7: 92,
341
+ 8: 0
342
+ }), map.set("pts", {
343
+ 0: 17,
344
+ 1: 0,
345
+ 2: 0,
346
+ 3: 0,
347
+ 4: 0,
348
+ 5: 0,
349
+ 6: 0,
350
+ 7: 104,
351
+ 8: 0
352
+ }), map.set("pktDts", {
353
+ 0: 17,
354
+ 1: 0,
355
+ 2: 0,
356
+ 3: 0,
357
+ 4: 0,
358
+ 5: 0,
359
+ 6: 0,
360
+ 7: 112,
361
+ 8: 0
362
+ }), map.set("timeBase", {
363
+ 0: cheap__identifier__12.AVRational,
364
+ 1: 0,
365
+ 2: 0,
366
+ 3: 0,
367
+ 4: 0,
368
+ 5: 0,
369
+ 6: 0,
370
+ 7: 120,
371
+ 8: 0
372
+ }), map.set("quality", {
373
+ 0: 15,
374
+ 1: 0,
375
+ 2: 0,
376
+ 3: 0,
377
+ 4: 0,
378
+ 5: 0,
379
+ 6: 0,
380
+ 7: 128,
381
+ 8: 0
382
+ }), map.set("opaque", {
383
+ 0: 1,
384
+ 1: 1,
385
+ 2: 1,
386
+ 3: 0,
387
+ 4: 0,
388
+ 5: 0,
389
+ 6: 0,
390
+ 7: 132,
391
+ 8: 0
392
+ }), map.set("repeatPict", {
393
+ 0: 15,
394
+ 1: 0,
395
+ 2: 0,
396
+ 3: 0,
397
+ 4: 0,
398
+ 5: 0,
399
+ 6: 0,
400
+ 7: 136,
401
+ 8: 0
402
+ }), map.set("interlacedFrame", {
403
+ 0: 15,
404
+ 1: 0,
405
+ 2: 0,
406
+ 3: 0,
407
+ 4: 0,
408
+ 5: 0,
409
+ 6: 0,
410
+ 7: 140,
411
+ 8: 0
412
+ }), map.set("topFieldFirst", {
413
+ 0: 15,
414
+ 1: 0,
415
+ 2: 0,
416
+ 3: 0,
417
+ 4: 0,
418
+ 5: 0,
419
+ 6: 0,
420
+ 7: 144,
421
+ 8: 0
422
+ }), map.set("paletteHasChanged", {
423
+ 0: 15,
424
+ 1: 0,
425
+ 2: 0,
426
+ 3: 0,
427
+ 4: 0,
428
+ 5: 0,
429
+ 6: 0,
430
+ 7: 148,
431
+ 8: 0
432
+ }), map.set("sampleRate", {
433
+ 0: 15,
434
+ 1: 0,
435
+ 2: 0,
436
+ 3: 0,
437
+ 4: 0,
438
+ 5: 0,
439
+ 6: 0,
440
+ 7: 152,
441
+ 8: 0
442
+ }), map.set("buf", {
443
+ 0: cheap__identifier__6.AVBufferRef,
444
+ 1: 1,
445
+ 2: 1,
446
+ 3: 1,
447
+ 4: 8,
448
+ 5: 0,
449
+ 6: 0,
450
+ 7: 156,
451
+ 8: 0
452
+ }), map.set("extendedBuf", {
453
+ 0: cheap__identifier__6.AVBufferRef,
454
+ 1: 1,
455
+ 2: 2,
456
+ 3: 0,
457
+ 4: 0,
458
+ 5: 0,
459
+ 6: 0,
460
+ 7: 188,
461
+ 8: 0
462
+ }), map.set("nbExtendedBuf", {
463
+ 0: 15,
464
+ 1: 0,
465
+ 2: 0,
466
+ 3: 0,
467
+ 4: 0,
468
+ 5: 0,
469
+ 6: 0,
470
+ 7: 192,
471
+ 8: 0
472
+ }), map.set("sideData", {
473
+ 0: AVFrameSideData,
474
+ 1: 1,
475
+ 2: 2,
476
+ 3: 0,
477
+ 4: 0,
478
+ 5: 0,
479
+ 6: 0,
480
+ 7: 196,
481
+ 8: 0
482
+ }), map.set("nbSideData", {
483
+ 0: 15,
484
+ 1: 0,
485
+ 2: 0,
486
+ 3: 0,
487
+ 4: 0,
488
+ 5: 0,
489
+ 6: 0,
490
+ 7: 200,
491
+ 8: 0
492
+ }), map.set("flags", {
493
+ 0: 15,
494
+ 1: 0,
495
+ 2: 0,
496
+ 3: 0,
497
+ 4: 0,
498
+ 5: 0,
499
+ 6: 0,
500
+ 7: 204,
501
+ 8: 0
502
+ }), map.set("colorRange", {
503
+ 0: 15,
504
+ 1: 0,
505
+ 2: 0,
506
+ 3: 0,
507
+ 4: 0,
508
+ 5: 0,
509
+ 6: 0,
510
+ 7: 208,
511
+ 8: 0
512
+ }), map.set("colorPrimaries", {
513
+ 0: 15,
514
+ 1: 0,
515
+ 2: 0,
516
+ 3: 0,
517
+ 4: 0,
518
+ 5: 0,
519
+ 6: 0,
520
+ 7: 212,
521
+ 8: 0
522
+ }), map.set("colorTrc", {
523
+ 0: 15,
524
+ 1: 0,
525
+ 2: 0,
526
+ 3: 0,
527
+ 4: 0,
528
+ 5: 0,
529
+ 6: 0,
530
+ 7: 216,
531
+ 8: 0
532
+ }), map.set("colorSpace", {
533
+ 0: 15,
534
+ 1: 0,
535
+ 2: 0,
536
+ 3: 0,
537
+ 4: 0,
538
+ 5: 0,
539
+ 6: 0,
540
+ 7: 220,
541
+ 8: 0
542
+ }), map.set("chromaLocation", {
543
+ 0: 15,
544
+ 1: 0,
545
+ 2: 0,
546
+ 3: 0,
547
+ 4: 0,
548
+ 5: 0,
549
+ 6: 0,
550
+ 7: 224,
551
+ 8: 0
552
+ }), map.set("bestEffortTimestamp", {
553
+ 0: 17,
554
+ 1: 0,
555
+ 2: 0,
556
+ 3: 0,
557
+ 4: 0,
558
+ 5: 0,
559
+ 6: 0,
560
+ 7: 232,
561
+ 8: 0
562
+ }), map.set("pktPos", {
563
+ 0: 17,
564
+ 1: 0,
565
+ 2: 0,
566
+ 3: 0,
567
+ 4: 0,
568
+ 5: 0,
569
+ 6: 0,
570
+ 7: 240,
571
+ 8: 0
572
+ }), map.set("metadata", {
573
+ 0: cheap__identifier__5.AVDictionary,
574
+ 1: 1,
575
+ 2: 1,
576
+ 3: 0,
577
+ 4: 0,
578
+ 5: 0,
579
+ 6: 0,
580
+ 7: 248,
581
+ 8: 0
582
+ }), map.set("decodeErrorFlags", {
583
+ 0: 15,
584
+ 1: 0,
585
+ 2: 0,
586
+ 3: 0,
587
+ 4: 0,
588
+ 5: 0,
589
+ 6: 0,
590
+ 7: 252,
591
+ 8: 0
592
+ }), map.set("pktSize", {
593
+ 0: 15,
594
+ 1: 0,
595
+ 2: 0,
596
+ 3: 0,
597
+ 4: 0,
598
+ 5: 0,
599
+ 6: 0,
600
+ 7: 256,
601
+ 8: 0
602
+ }), map.set("hwFramesCtx", {
603
+ 0: cheap__identifier__6.AVBufferRef,
604
+ 1: 1,
605
+ 2: 1,
606
+ 3: 0,
607
+ 4: 0,
608
+ 5: 0,
609
+ 6: 0,
610
+ 7: 260,
611
+ 8: 0
612
+ }), map.set("opaqueRef", {
613
+ 0: cheap__identifier__6.AVBufferRef,
614
+ 1: 1,
615
+ 2: 1,
616
+ 3: 0,
617
+ 4: 0,
618
+ 5: 0,
619
+ 6: 0,
620
+ 7: 264,
621
+ 8: 0
622
+ }), map.set("cropTop", {
623
+ 0: 25,
624
+ 1: 0,
625
+ 2: 0,
626
+ 3: 0,
627
+ 4: 0,
628
+ 5: 0,
629
+ 6: 0,
630
+ 7: 268,
631
+ 8: 0
632
+ }), map.set("cropBottom", {
633
+ 0: 25,
634
+ 1: 0,
635
+ 2: 0,
636
+ 3: 0,
637
+ 4: 0,
638
+ 5: 0,
639
+ 6: 0,
640
+ 7: 272,
641
+ 8: 0
642
+ }), map.set("cropLeft", {
643
+ 0: 25,
644
+ 1: 0,
645
+ 2: 0,
646
+ 3: 0,
647
+ 4: 0,
648
+ 5: 0,
649
+ 6: 0,
650
+ 7: 276,
651
+ 8: 0
652
+ }), map.set("cropRight", {
653
+ 0: 25,
654
+ 1: 0,
655
+ 2: 0,
656
+ 3: 0,
657
+ 4: 0,
658
+ 5: 0,
659
+ 6: 0,
660
+ 7: 280,
661
+ 8: 0
662
+ }), map.set("privateRef", {
663
+ 0: cheap__identifier__6.AVBufferRef,
664
+ 1: 1,
665
+ 2: 1,
666
+ 3: 0,
667
+ 4: 0,
668
+ 5: 0,
669
+ 6: 0,
670
+ 7: 284,
671
+ 8: 0
672
+ }), map.set("chLayout", {
673
+ 0: cheap__identifier__36.AVChannelLayout,
674
+ 1: 0,
675
+ 2: 0,
676
+ 3: 0,
677
+ 4: 0,
678
+ 5: 0,
679
+ 6: 0,
680
+ 7: 288,
681
+ 8: 0
682
+ }), map.set("duration", {
683
+ 0: 17,
684
+ 1: 0,
685
+ 2: 0,
686
+ 3: 0,
687
+ 4: 0,
688
+ 5: 0,
689
+ 6: 0,
690
+ 7: 312,
691
+ 8: 0
692
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
693
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
694
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 320),
695
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
696
+ }
237
697
  }
238
698
 
239
- exports.default = AVFrame, function(prototype) {
240
- var map = new Map;
241
- map.set("data", {
242
- 0: 2,
243
- 1: 1,
244
- 2: 1,
245
- 3: 1,
246
- 4: 8,
247
- 5: 0,
248
- 6: 0,
249
- 7: 0,
250
- 8: 0
251
- }), map.set("linesize", {
252
- 0: 15,
253
- 1: 0,
254
- 2: 0,
255
- 3: 1,
256
- 4: 8,
257
- 5: 0,
258
- 6: 0,
259
- 7: 32,
260
- 8: 0
261
- }), map.set("extendedData", {
262
- 0: 2,
263
- 1: 1,
264
- 2: 2,
265
- 3: 0,
266
- 4: 0,
267
- 5: 0,
268
- 6: 0,
269
- 7: 64,
270
- 8: 0
271
- }), map.set("width", {
272
- 0: 15,
273
- 1: 0,
274
- 2: 0,
275
- 3: 0,
276
- 4: 0,
277
- 5: 0,
278
- 6: 0,
279
- 7: 68,
280
- 8: 0
281
- }), map.set("height", {
282
- 0: 15,
283
- 1: 0,
284
- 2: 0,
285
- 3: 0,
286
- 4: 0,
287
- 5: 0,
288
- 6: 0,
289
- 7: 72,
290
- 8: 0
291
- }), map.set("nbSamples", {
292
- 0: 15,
293
- 1: 0,
294
- 2: 0,
295
- 3: 0,
296
- 4: 0,
297
- 5: 0,
298
- 6: 0,
299
- 7: 76,
300
- 8: 0
301
- }), map.set("format", {
302
- 0: 15,
303
- 1: 0,
304
- 2: 0,
305
- 3: 0,
306
- 4: 0,
307
- 5: 0,
308
- 6: 0,
309
- 7: 80,
310
- 8: 0
311
- }), map.set("keyFrame", {
312
- 0: 15,
313
- 1: 0,
314
- 2: 0,
315
- 3: 0,
316
- 4: 0,
317
- 5: 0,
318
- 6: 0,
319
- 7: 84,
320
- 8: 0
321
- }), map.set("pictType", {
322
- 0: 15,
323
- 1: 0,
324
- 2: 0,
325
- 3: 0,
326
- 4: 0,
327
- 5: 0,
328
- 6: 0,
329
- 7: 88,
330
- 8: 0
331
- }), map.set("sampleAspectRatio", {
332
- 0: cheap__identifier__12.AVRational,
333
- 1: 0,
334
- 2: 0,
335
- 3: 0,
336
- 4: 0,
337
- 5: 0,
338
- 6: 0,
339
- 7: 92,
340
- 8: 0
341
- }), map.set("pts", {
342
- 0: 17,
343
- 1: 0,
344
- 2: 0,
345
- 3: 0,
346
- 4: 0,
347
- 5: 0,
348
- 6: 0,
349
- 7: 104,
350
- 8: 0
351
- }), map.set("pktDts", {
352
- 0: 17,
353
- 1: 0,
354
- 2: 0,
355
- 3: 0,
356
- 4: 0,
357
- 5: 0,
358
- 6: 0,
359
- 7: 112,
360
- 8: 0
361
- }), map.set("timeBase", {
362
- 0: cheap__identifier__12.AVRational,
363
- 1: 0,
364
- 2: 0,
365
- 3: 0,
366
- 4: 0,
367
- 5: 0,
368
- 6: 0,
369
- 7: 120,
370
- 8: 0
371
- }), map.set("quality", {
372
- 0: 15,
373
- 1: 0,
374
- 2: 0,
375
- 3: 0,
376
- 4: 0,
377
- 5: 0,
378
- 6: 0,
379
- 7: 128,
380
- 8: 0
381
- }), map.set("opaque", {
382
- 0: 1,
383
- 1: 1,
384
- 2: 1,
385
- 3: 0,
386
- 4: 0,
387
- 5: 0,
388
- 6: 0,
389
- 7: 132,
390
- 8: 0
391
- }), map.set("repeatPict", {
392
- 0: 15,
393
- 1: 0,
394
- 2: 0,
395
- 3: 0,
396
- 4: 0,
397
- 5: 0,
398
- 6: 0,
399
- 7: 136,
400
- 8: 0
401
- }), map.set("interlacedFrame", {
402
- 0: 15,
403
- 1: 0,
404
- 2: 0,
405
- 3: 0,
406
- 4: 0,
407
- 5: 0,
408
- 6: 0,
409
- 7: 140,
410
- 8: 0
411
- }), map.set("topFieldFirst", {
412
- 0: 15,
413
- 1: 0,
414
- 2: 0,
415
- 3: 0,
416
- 4: 0,
417
- 5: 0,
418
- 6: 0,
419
- 7: 144,
420
- 8: 0
421
- }), map.set("paletteHasChanged", {
422
- 0: 15,
423
- 1: 0,
424
- 2: 0,
425
- 3: 0,
426
- 4: 0,
427
- 5: 0,
428
- 6: 0,
429
- 7: 148,
430
- 8: 0
431
- }), map.set("sampleRate", {
432
- 0: 15,
433
- 1: 0,
434
- 2: 0,
435
- 3: 0,
436
- 4: 0,
437
- 5: 0,
438
- 6: 0,
439
- 7: 152,
440
- 8: 0
441
- }), map.set("buf", {
442
- 0: cheap__identifier__6.AVBufferRef,
443
- 1: 1,
444
- 2: 1,
445
- 3: 1,
446
- 4: 8,
447
- 5: 0,
448
- 6: 0,
449
- 7: 156,
450
- 8: 0
451
- }), map.set("extendedBuf", {
452
- 0: cheap__identifier__6.AVBufferRef,
453
- 1: 1,
454
- 2: 2,
455
- 3: 0,
456
- 4: 0,
457
- 5: 0,
458
- 6: 0,
459
- 7: 188,
460
- 8: 0
461
- }), map.set("nbExtendedBuf", {
462
- 0: 15,
463
- 1: 0,
464
- 2: 0,
465
- 3: 0,
466
- 4: 0,
467
- 5: 0,
468
- 6: 0,
469
- 7: 192,
470
- 8: 0
471
- }), map.set("sideData", {
472
- 0: AVFrameSideData,
473
- 1: 1,
474
- 2: 2,
475
- 3: 0,
476
- 4: 0,
477
- 5: 0,
478
- 6: 0,
479
- 7: 196,
480
- 8: 0
481
- }), map.set("nbSideData", {
482
- 0: 15,
483
- 1: 0,
484
- 2: 0,
485
- 3: 0,
486
- 4: 0,
487
- 5: 0,
488
- 6: 0,
489
- 7: 200,
490
- 8: 0
491
- }), map.set("flags", {
492
- 0: 15,
493
- 1: 0,
494
- 2: 0,
495
- 3: 0,
496
- 4: 0,
497
- 5: 0,
498
- 6: 0,
499
- 7: 204,
500
- 8: 0
501
- }), map.set("colorRange", {
502
- 0: 15,
503
- 1: 0,
504
- 2: 0,
505
- 3: 0,
506
- 4: 0,
507
- 5: 0,
508
- 6: 0,
509
- 7: 208,
510
- 8: 0
511
- }), map.set("colorPrimaries", {
512
- 0: 15,
513
- 1: 0,
514
- 2: 0,
515
- 3: 0,
516
- 4: 0,
517
- 5: 0,
518
- 6: 0,
519
- 7: 212,
520
- 8: 0
521
- }), map.set("colorTrc", {
522
- 0: 15,
523
- 1: 0,
524
- 2: 0,
525
- 3: 0,
526
- 4: 0,
527
- 5: 0,
528
- 6: 0,
529
- 7: 216,
530
- 8: 0
531
- }), map.set("colorSpace", {
532
- 0: 15,
533
- 1: 0,
534
- 2: 0,
535
- 3: 0,
536
- 4: 0,
537
- 5: 0,
538
- 6: 0,
539
- 7: 220,
540
- 8: 0
541
- }), map.set("chromaLocation", {
542
- 0: 15,
543
- 1: 0,
544
- 2: 0,
545
- 3: 0,
546
- 4: 0,
547
- 5: 0,
548
- 6: 0,
549
- 7: 224,
550
- 8: 0
551
- }), map.set("bestEffortTimestamp", {
552
- 0: 17,
553
- 1: 0,
554
- 2: 0,
555
- 3: 0,
556
- 4: 0,
557
- 5: 0,
558
- 6: 0,
559
- 7: 232,
560
- 8: 0
561
- }), map.set("pktPos", {
562
- 0: 17,
563
- 1: 0,
564
- 2: 0,
565
- 3: 0,
566
- 4: 0,
567
- 5: 0,
568
- 6: 0,
569
- 7: 240,
570
- 8: 0
571
- }), map.set("metadata", {
572
- 0: cheap__identifier__5.AVDictionary,
573
- 1: 1,
574
- 2: 1,
575
- 3: 0,
576
- 4: 0,
577
- 5: 0,
578
- 6: 0,
579
- 7: 248,
580
- 8: 0
581
- }), map.set("decodeErrorFlags", {
582
- 0: 15,
583
- 1: 0,
584
- 2: 0,
585
- 3: 0,
586
- 4: 0,
587
- 5: 0,
588
- 6: 0,
589
- 7: 252,
590
- 8: 0
591
- }), map.set("pktSize", {
592
- 0: 15,
593
- 1: 0,
594
- 2: 0,
595
- 3: 0,
596
- 4: 0,
597
- 5: 0,
598
- 6: 0,
599
- 7: 256,
600
- 8: 0
601
- }), map.set("hwFramesCtx", {
602
- 0: cheap__identifier__6.AVBufferRef,
603
- 1: 1,
604
- 2: 1,
605
- 3: 0,
606
- 4: 0,
607
- 5: 0,
608
- 6: 0,
609
- 7: 260,
610
- 8: 0
611
- }), map.set("opaqueRef", {
612
- 0: cheap__identifier__6.AVBufferRef,
613
- 1: 1,
614
- 2: 1,
615
- 3: 0,
616
- 4: 0,
617
- 5: 0,
618
- 6: 0,
619
- 7: 264,
620
- 8: 0
621
- }), map.set("cropTop", {
622
- 0: 25,
623
- 1: 0,
624
- 2: 0,
625
- 3: 0,
626
- 4: 0,
627
- 5: 0,
628
- 6: 0,
629
- 7: 268,
630
- 8: 0
631
- }), map.set("cropBottom", {
632
- 0: 25,
633
- 1: 0,
634
- 2: 0,
635
- 3: 0,
636
- 4: 0,
637
- 5: 0,
638
- 6: 0,
639
- 7: 272,
640
- 8: 0
641
- }), map.set("cropLeft", {
642
- 0: 25,
643
- 1: 0,
644
- 2: 0,
645
- 3: 0,
646
- 4: 0,
647
- 5: 0,
648
- 6: 0,
649
- 7: 276,
650
- 8: 0
651
- }), map.set("cropRight", {
652
- 0: 25,
653
- 1: 0,
654
- 2: 0,
655
- 3: 0,
656
- 4: 0,
657
- 5: 0,
658
- 6: 0,
659
- 7: 280,
660
- 8: 0
661
- }), map.set("privateRef", {
662
- 0: cheap__identifier__6.AVBufferRef,
663
- 1: 1,
664
- 2: 1,
665
- 3: 0,
666
- 4: 0,
667
- 5: 0,
668
- 6: 0,
669
- 7: 284,
670
- 8: 0
671
- }), map.set("chLayout", {
672
- 0: cheap__identifier__36.AVChannelLayout,
673
- 1: 0,
674
- 2: 0,
675
- 3: 0,
676
- 4: 0,
677
- 5: 0,
678
- 6: 0,
679
- 7: 288,
680
- 8: 0
681
- }), map.set("duration", {
682
- 0: 17,
683
- 1: 0,
684
- 2: 0,
685
- 3: 0,
686
- 4: 0,
687
- 5: 0,
688
- 6: 0,
689
- 7: 312,
690
- 8: 0
691
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
692
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
693
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 320),
694
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
695
- }(AVFrame.prototype);
699
+ exports.default = AVFrame;
696
700
 
697
701
  class AVFrameRef extends AVFrame {
698
702
  refCount;
703
+ static {
704
+ const prototype = this.prototype, map = new Map;
705
+ map.set("refCount", {
706
+ 0: 16,
707
+ 1: 0,
708
+ 2: 0,
709
+ 3: 0,
710
+ 4: 0,
711
+ 5: 0,
712
+ 6: 0,
713
+ 7: 320,
714
+ 8: 0
715
+ }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
716
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
717
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 328),
718
+ cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
719
+ }
699
720
  }
700
721
 
701
- exports.AVFrameRef = AVFrameRef, function(prototype) {
702
- var map = new Map;
703
- map.set("refCount", {
704
- 0: 16,
705
- 1: 0,
706
- 2: 0,
707
- 3: 0,
708
- 4: 0,
709
- 5: 0,
710
- 6: 0,
711
- 7: 320,
712
- 8: 0
713
- }), cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStruct, !0),
714
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructMaxBaseTypeByteLength, 8),
715
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructLength, 328),
716
- cheap__identifier__0.definedMetaProperty(prototype, cheap__identifier__0.symbolStructKeysMeta, map);
717
- }(AVFrameRef.prototype);
722
+ exports.AVFrameRef = AVFrameRef;
718
723
  //# sourceMappingURL=avframe.js.map