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