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