node-av 6.0.1-beta.6 → 6.1.0-beta.1
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/dist/api/decoder.d.ts +43 -0
- package/dist/api/decoder.js +7 -0
- package/dist/api/decoder.js.map +1 -1
- package/dist/api/demuxer.d.ts +20 -0
- package/dist/api/demuxer.js +2 -0
- package/dist/api/demuxer.js.map +1 -1
- package/dist/api/encoder.d.ts +92 -0
- package/dist/api/encoder.js +46 -0
- package/dist/api/encoder.js.map +1 -1
- package/dist/api/filter-complex.d.ts +1 -1
- package/dist/api/filter-complex.js +5 -0
- package/dist/api/filter-complex.js.map +1 -1
- package/dist/api/filter.d.ts +46 -0
- package/dist/api/filter.js +5 -0
- package/dist/api/filter.js.map +1 -1
- package/dist/api/muxer.d.ts +44 -0
- package/dist/api/muxer.js +22 -0
- package/dist/api/muxer.js.map +1 -1
- package/dist/api/utilities/context-options.d.ts +25 -0
- package/dist/api/utilities/context-options.js +23 -0
- package/dist/api/utilities/context-options.js.map +1 -0
- package/dist/api/utilities/index.d.ts +1 -0
- package/dist/api/utilities/index.js.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apply a {@link ContextOptions} bag onto a native context wrapper.
|
|
3
|
+
*
|
|
4
|
+
* Assigns each provided (defined) field via the wrapper's setter. No-ops when
|
|
5
|
+
* `options` is undefined.
|
|
6
|
+
*
|
|
7
|
+
* @param target - The native context wrapper to mutate
|
|
8
|
+
*
|
|
9
|
+
* @param options - The field/value bag to apply
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export function applyContextOptions(target, options) {
|
|
14
|
+
if (!options) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
for (const [key, value] of Object.entries(options)) {
|
|
18
|
+
if (value !== undefined) {
|
|
19
|
+
target[key] = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=context-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-options.js","sourceRoot":"","sources":["../../../src/api/utilities/context-options.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,mBAAmB,CAAmB,MAAS,EAAE,OAAsC;IACrG,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO;IACT,CAAC;IAED,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QACnD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACvB,MAAkC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;QACnD,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { AudioSampleUtils, type AudioSampleAllocation, type AudioSampleBufferSize } from './audio-sample.js';
|
|
2
2
|
export { ChannelLayoutUtils } from './channel-layout.js';
|
|
3
3
|
export { pickSupportedLayout, pickSupportedPixelFormat, pickSupportedRate, pickSupportedSampleFormat } from './codec-format.js';
|
|
4
|
+
export type { ContextOptions } from './context-options.js';
|
|
4
5
|
export { ImageUtils, type ImageAllocation } from './image.js';
|
|
5
6
|
export { MediaTypeUtils } from './media-type.js';
|
|
6
7
|
export { PixelFormatUtils } from './pixel-format.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/utilities/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,OAAO,EAAE,gBAAgB,EAA0D,MAAM,mBAAmB,CAAC;AAE7G,kBAAkB;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,2BAA2B;AAC3B,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/utilities/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,OAAO,EAAE,gBAAgB,EAA0D,MAAM,mBAAmB,CAAC;AAE7G,kBAAkB;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,2BAA2B;AAC3B,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAKhI,QAAQ;AACR,OAAO,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AAE9D,QAAQ;AACR,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,eAAe;AACf,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,gBAAgB;AAChB,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,YAAY;AACZ,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,2BAA2B;AAC3B,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,iBAAiB,GAKlB,MAAM,oBAAoB,CAAC;AAE5B,aAAa;AACb,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,YAAY;AACZ,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAA6B,MAAM,gBAAgB,CAAC;AAExF,gBAAgB;AAChB,OAAO,EACL,aAAa,GAOd,MAAM,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-av",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0-beta.1",
|
|
4
4
|
"description": "FFmpeg bindings for Node.js",
|
|
5
5
|
"author": "seydx (https://github.com/seydx/node-av)",
|
|
6
6
|
"type": "module",
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
},
|
|
86
86
|
"optionalDependencies": {
|
|
87
87
|
"werift": "^0.23.0",
|
|
88
|
-
"@seydx/node-av-darwin-arm64": "^6.0
|
|
89
|
-
"@seydx/node-av-darwin-x64": "^6.0
|
|
90
|
-
"@seydx/node-av-linux-arm64": "^6.0
|
|
91
|
-
"@seydx/node-av-linux-x64": "^6.0
|
|
92
|
-
"@seydx/node-av-win32-arm64-mingw": "^6.0
|
|
93
|
-
"@seydx/node-av-win32-arm64-msvc": "^6.0
|
|
94
|
-
"@seydx/node-av-win32-x64-mingw": "^6.0
|
|
95
|
-
"@seydx/node-av-win32-x64-msvc": "^6.0
|
|
88
|
+
"@seydx/node-av-darwin-arm64": "^6.1.0-beta.1",
|
|
89
|
+
"@seydx/node-av-darwin-x64": "^6.1.0-beta.1",
|
|
90
|
+
"@seydx/node-av-linux-arm64": "^6.1.0-beta.1",
|
|
91
|
+
"@seydx/node-av-linux-x64": "^6.1.0-beta.1",
|
|
92
|
+
"@seydx/node-av-win32-arm64-mingw": "^6.1.0-beta.1",
|
|
93
|
+
"@seydx/node-av-win32-arm64-msvc": "^6.1.0-beta.1",
|
|
94
|
+
"@seydx/node-av-win32-x64-mingw": "^6.1.0-beta.1",
|
|
95
|
+
"@seydx/node-av-win32-x64-msvc": "^6.1.0-beta.1"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
98
|
"@stylistic/eslint-plugin": "^5.10.0",
|