@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
@@ -6,118 +6,117 @@ export class AVChannelCustom {
6
6
  id;
7
7
  name;
8
8
  opaque;
9
+ static {
10
+ const prototype = this.prototype, map = new Map;
11
+ map.set("id", {
12
+ 0: 15,
13
+ 1: 0,
14
+ 2: 0,
15
+ 3: 0,
16
+ 4: 0,
17
+ 5: 0,
18
+ 6: 0,
19
+ 7: 0,
20
+ 8: 0
21
+ }), map.set("name", {
22
+ 0: 4,
23
+ 1: 0,
24
+ 2: 0,
25
+ 3: 1,
26
+ 4: 16,
27
+ 5: 0,
28
+ 6: 0,
29
+ 7: 4,
30
+ 8: 0
31
+ }), map.set("opaque", {
32
+ 0: 1,
33
+ 1: 1,
34
+ 2: 1,
35
+ 3: 0,
36
+ 4: 0,
37
+ 5: 0,
38
+ 6: 0,
39
+ 7: 20,
40
+ 8: 0
41
+ }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 4),
42
+ cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 24), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map);
43
+ }
9
44
  }
10
45
 
11
- var prototype, map;
12
-
13
- prototype = AVChannelCustom.prototype, (map = new Map).set("id", {
14
- 0: 15,
15
- 1: 0,
16
- 2: 0,
17
- 3: 0,
18
- 4: 0,
19
- 5: 0,
20
- 6: 0,
21
- 7: 0,
22
- 8: 0
23
- }), map.set("name", {
24
- 0: 4,
25
- 1: 0,
26
- 2: 0,
27
- 3: 1,
28
- 4: 16,
29
- 5: 0,
30
- 6: 0,
31
- 7: 4,
32
- 8: 0
33
- }), map.set("opaque", {
34
- 0: 1,
35
- 1: 1,
36
- 2: 1,
37
- 3: 0,
38
- 4: 0,
39
- 5: 0,
40
- 6: 0,
41
- 7: 20,
42
- 8: 0
43
- }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 4),
44
- cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 24), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map);
45
-
46
46
  export class AVChannelLayout {
47
47
  order;
48
48
  nbChannels;
49
49
  u;
50
50
  opaque;
51
+ static {
52
+ const prototype = this.prototype, map = new Map;
53
+ map.set("order", {
54
+ 0: 15,
55
+ 1: 0,
56
+ 2: 0,
57
+ 3: 0,
58
+ 4: 0,
59
+ 5: 0,
60
+ 6: 0,
61
+ 7: 0,
62
+ 8: 0
63
+ }), map.set("nbChannels", {
64
+ 0: 15,
65
+ 1: 0,
66
+ 2: 0,
67
+ 3: 0,
68
+ 4: 0,
69
+ 5: 0,
70
+ 6: 0,
71
+ 7: 4,
72
+ 8: 0
73
+ }), map.set("u", {
74
+ 0: function(prototype) {
75
+ const map = new Map;
76
+ return map.set("mask", {
77
+ 0: 10,
78
+ 1: 0,
79
+ 2: 0,
80
+ 3: 0,
81
+ 4: 0,
82
+ 5: 0,
83
+ 6: 0,
84
+ 7: 0,
85
+ 8: 0
86
+ }), map.set("map", {
87
+ 0: AVChannelCustom,
88
+ 1: 1,
89
+ 2: 1,
90
+ 3: 0,
91
+ 4: 0,
92
+ 5: 0,
93
+ 6: 0,
94
+ 7: 0,
95
+ 8: 0
96
+ }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 8),
97
+ cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 8), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map),
98
+ prototype;
99
+ }({}),
100
+ 1: 0,
101
+ 2: 0,
102
+ 3: 0,
103
+ 4: 0,
104
+ 5: 0,
105
+ 6: 0,
106
+ 7: 8,
107
+ 8: 0
108
+ }), map.set("opaque", {
109
+ 0: 1,
110
+ 1: 1,
111
+ 2: 1,
112
+ 3: 0,
113
+ 4: 0,
114
+ 5: 0,
115
+ 6: 0,
116
+ 7: 16,
117
+ 8: 0
118
+ }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 8),
119
+ cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 24), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map);
120
+ }
51
121
  }
52
-
53
- !function(prototype) {
54
- var map = new Map;
55
- map.set("order", {
56
- 0: 15,
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("nbChannels", {
66
- 0: 15,
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("u", {
76
- 0: function(prototype) {
77
- var map = new Map;
78
- return map.set("mask", {
79
- 0: 10,
80
- 1: 0,
81
- 2: 0,
82
- 3: 0,
83
- 4: 0,
84
- 5: 0,
85
- 6: 0,
86
- 7: 0,
87
- 8: 0
88
- }), map.set("map", {
89
- 0: AVChannelCustom,
90
- 1: 1,
91
- 2: 1,
92
- 3: 0,
93
- 4: 0,
94
- 5: 0,
95
- 6: 0,
96
- 7: 0,
97
- 8: 0
98
- }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 8),
99
- cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 8), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map),
100
- prototype;
101
- }({}),
102
- 1: 0,
103
- 2: 0,
104
- 3: 0,
105
- 4: 0,
106
- 5: 0,
107
- 6: 0,
108
- 7: 8,
109
- 8: 0
110
- }), map.set("opaque", {
111
- 0: 1,
112
- 1: 1,
113
- 2: 1,
114
- 3: 0,
115
- 4: 0,
116
- 5: 0,
117
- 6: 0,
118
- 7: 16,
119
- 8: 0
120
- }), cheap__definedMetaProperty__0(prototype, cheap__symbolStruct__1, !0), cheap__definedMetaProperty__0(prototype, cheap__symbolStructMaxBaseTypeByteLength__2, 8),
121
- cheap__definedMetaProperty__0(prototype, cheap__symbolStructLength__3, 24), cheap__definedMetaProperty__0(prototype, cheap__symbolStructKeysMeta__4, map);
122
- }(AVChannelLayout.prototype);
123
122
  //# sourceMappingURL=audiosample.js.map