bare-ffmpeg 1.0.0-12 → 1.0.0-13
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.
- package/README.md +0 -12
- package/binding.cc +0 -10
- package/lib/channel-layout.js +0 -9
- package/lib/codec-context.js +4 -3
- package/lib/codec-parameters.js +0 -8
- package/lib/format-context.js +0 -3
- package/lib/frame.js +4 -3
- package/lib/stream.js +0 -9
- package/package.json +1 -1
- package/prebuilds/android-arm/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-ia32/bare-ffmpeg.bare +0 -0
- package/prebuilds/android-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/darwin-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/darwin-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-arm64-simulator/bare-ffmpeg.bare +0 -0
- package/prebuilds/ios-x64-simulator/bare-ffmpeg.bare +0 -0
- package/prebuilds/linux-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/linux-x64/bare-ffmpeg.bare +0 -0
- package/prebuilds/win32-arm64/bare-ffmpeg.bare +0 -0
- package/prebuilds/win32-x64/bare-ffmpeg.bare +0 -0
package/README.md
CHANGED
|
@@ -361,12 +361,6 @@ Parameters:
|
|
|
361
361
|
|
|
362
362
|
**Returns**: `void`
|
|
363
363
|
|
|
364
|
-
##### `CodecParameters.destroy()`
|
|
365
|
-
|
|
366
|
-
Destroys the `CodecParameters` and frees all associated resources. Automatically called when the object is managed by a `using` declaration.
|
|
367
|
-
|
|
368
|
-
**Returns**: `void`
|
|
369
|
-
|
|
370
364
|
### `InputFormat`
|
|
371
365
|
|
|
372
366
|
The `InputFormat` API provides functionality to specify input format for media sources.
|
|
@@ -676,12 +670,6 @@ Creates and opens an encoder for this stream.
|
|
|
676
670
|
|
|
677
671
|
**Returns**: `CodecContext` instance
|
|
678
672
|
|
|
679
|
-
##### `Stream.destroy()`
|
|
680
|
-
|
|
681
|
-
Destroys the `Stream` and frees all associated resources. Automatically called when the object is managed by a `using` declaration.
|
|
682
|
-
|
|
683
|
-
**Returns**: `void`
|
|
684
|
-
|
|
685
673
|
### `Resampler`
|
|
686
674
|
|
|
687
675
|
The `Resampler` API provides functionality to convert audio between different sample rates, channel layouts, and sample formats.
|
package/binding.cc
CHANGED
|
@@ -1538,15 +1538,6 @@ bare_ffmpeg_resampler_destroy(
|
|
|
1538
1538
|
swr_free(&resampler->handle);
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
|
-
static void
|
|
1542
|
-
bare_ffmpeg_channel_layout_destroy(
|
|
1543
|
-
js_env_t *env,
|
|
1544
|
-
js_receiver_t,
|
|
1545
|
-
js_arraybuffer_span_of_t<bare_ffmpeg_channel_layout_t, 1> layout
|
|
1546
|
-
) {
|
|
1547
|
-
av_channel_layout_uninit(&layout->handle);
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
1541
|
static js_arraybuffer_t
|
|
1551
1542
|
bare_ffmpeg_channel_layout_copy(
|
|
1552
1543
|
js_env_t *env,
|
|
@@ -1706,7 +1697,6 @@ bare_ffmpeg_exports(js_env_t *env, js_value_t *exports) {
|
|
|
1706
1697
|
V("getResamplerDelay", bare_ffmpeg_resampler_get_delay)
|
|
1707
1698
|
V("flushResampler", bare_ffmpeg_resampler_flush)
|
|
1708
1699
|
|
|
1709
|
-
V("destroyChannelLayout", bare_ffmpeg_channel_layout_destroy)
|
|
1710
1700
|
V("copyChannelLayout", bare_ffmpeg_channel_layout_copy)
|
|
1711
1701
|
V("getChannelLayoutNbChannels", bare_ffmpeg_channel_layout_get_nb_channels)
|
|
1712
1702
|
V("channelLayoutFromMask", bare_ffmpeg_channel_layout_from_mask)
|
package/lib/channel-layout.js
CHANGED
|
@@ -10,15 +10,6 @@ module.exports = class FFmpegChannelLayout {
|
|
|
10
10
|
return binding.getChannelLayoutNbChannels(this._handle)
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
destroy() {
|
|
14
|
-
binding.destroyChannelLayout(this._handle)
|
|
15
|
-
this._handle = null
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
[Symbol.dispose]() {
|
|
19
|
-
this.destroy()
|
|
20
|
-
}
|
|
21
|
-
|
|
22
13
|
static from(value) {
|
|
23
14
|
if (typeof value === 'string') value = constants.toChannelLayout(value)
|
|
24
15
|
|
package/lib/codec-context.js
CHANGED
|
@@ -72,9 +72,10 @@ module.exports = class FFmpegCodecContext {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
set channelLayout(value) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
binding.setCodecContextChannelLayout(
|
|
76
|
+
this._handle,
|
|
77
|
+
ChannelLayout.from(value)._handle
|
|
78
|
+
)
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
open(options) {
|
package/lib/codec-parameters.js
CHANGED
|
@@ -6,10 +6,6 @@ module.exports = class FFmpegCodecParameters {
|
|
|
6
6
|
this._handle = handle
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
destroy() {
|
|
10
|
-
this._handle = null
|
|
11
|
-
}
|
|
12
|
-
|
|
13
9
|
get bitRate() {
|
|
14
10
|
return binding.getCodecParametersBitRate(this._handle)
|
|
15
11
|
}
|
|
@@ -51,8 +47,4 @@ module.exports = class FFmpegCodecParameters {
|
|
|
51
47
|
toContext(context) {
|
|
52
48
|
binding.codecParametersToContext(context._handle, this._handle)
|
|
53
49
|
}
|
|
54
|
-
|
|
55
|
-
[Symbol.dispose]() {
|
|
56
|
-
this.destroy()
|
|
57
|
-
}
|
|
58
50
|
}
|
package/lib/format-context.js
CHANGED
package/lib/frame.js
CHANGED
|
@@ -48,9 +48,10 @@ module.exports = class FFmpegFrame {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
set channelLayout(value) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
binding.setFrameChannelLayout(
|
|
52
|
+
this._handle,
|
|
53
|
+
ChannelLayout.from(value)._handle
|
|
54
|
+
)
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
get nbSamples() {
|
package/lib/stream.js
CHANGED
|
@@ -14,11 +14,6 @@ module.exports = class FFmpegStream {
|
|
|
14
14
|
)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
destroy() {
|
|
18
|
-
this._codecParameters.destroy()
|
|
19
|
-
this._codecParameters = null
|
|
20
|
-
}
|
|
21
|
-
|
|
22
17
|
get codec() {
|
|
23
18
|
return this._codec
|
|
24
19
|
}
|
|
@@ -38,8 +33,4 @@ module.exports = class FFmpegStream {
|
|
|
38
33
|
this._codecParameters.toContext(context)
|
|
39
34
|
return context.open()
|
|
40
35
|
}
|
|
41
|
-
|
|
42
|
-
[Symbol.dispose]() {
|
|
43
|
-
this.destroy()
|
|
44
|
-
}
|
|
45
36
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|