@stream-io/video-filters-web 0.1.6 → 0.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.
- package/CHANGELOG.md +22 -19
- package/dist/index.cjs.js +5 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -13
- package/dist/index.es.js.map +1 -1
- package/dist/src/helpers/webglHelper.d.ts +2 -2
- package/package.json +8 -9
- package/src/webgl2/backgroundBlurStage.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,69 +2,72 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.
|
|
5
|
+
## [0.2.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.7...@stream-io/video-filters-web-0.2.0) (2025-05-08)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Expo 53 Swift Config Plugin and React Native 0.79 compatibility ([#1714](https://github.com/GetStream/stream-video-js/issues/1714)) ([380331e](https://github.com/GetStream/stream-video-js/commit/380331e11fd6182c3111413aa25689a669dd3c9c))
|
|
10
|
+
|
|
11
|
+
## [0.1.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.6...@stream-io/video-filters-web-0.1.7) (2025-02-17)
|
|
6
12
|
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
- support static token and token provider at the same time ([#1685](https://github.com/GetStream/stream-video-js/issues/1685)) ([4365a3d](https://github.com/GetStream/stream-video-js/commit/4365a3dd0a14c98041982bde8be21258b8cfd571))
|
|
16
|
+
|
|
17
|
+
## [0.1.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.5...@stream-io/video-filters-web-0.1.6) (2024-11-12)
|
|
7
18
|
|
|
8
19
|
### Bug Fixes
|
|
9
20
|
|
|
10
|
-
|
|
21
|
+
- handle async errors in background filters pipeline ([#1571](https://github.com/GetStream/stream-video-js/issues/1571)) ([53a5ac3](https://github.com/GetStream/stream-video-js/commit/53a5ac3691a6fe71a0b7b6695aa6c0ffaa01d3ec)), closes [#1565](https://github.com/GetStream/stream-video-js/issues/1565)
|
|
11
22
|
|
|
12
23
|
## [0.1.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.4...@stream-io/video-filters-web-0.1.5) (2024-11-08)
|
|
13
24
|
|
|
14
|
-
|
|
15
25
|
### Bug Fixes
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
- guard against null fenceSync ([#1565](https://github.com/GetStream/stream-video-js/issues/1565)) ([9a3ae38](https://github.com/GetStream/stream-video-js/commit/9a3ae385ebed5b7fd44855ed2a7b7fc01ac53792))
|
|
18
28
|
|
|
19
29
|
## [0.1.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.3...@stream-io/video-filters-web-0.1.4) (2024-09-19)
|
|
20
30
|
|
|
21
|
-
|
|
22
31
|
### Features
|
|
23
32
|
|
|
24
|
-
|
|
33
|
+
- React SDK cold-start optimizations ([#1488](https://github.com/GetStream/stream-video-js/issues/1488)) ([972e579](https://github.com/GetStream/stream-video-js/commit/972e5792b5a131a212b1031ade76dcb383897a46))
|
|
25
34
|
|
|
26
35
|
### [0.1.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.2...@stream-io/video-filters-web-0.1.3) (2024-07-02)
|
|
27
36
|
|
|
28
|
-
|
|
29
37
|
### Bug Fixes
|
|
30
38
|
|
|
31
|
-
|
|
39
|
+
- refactor background filters ([#1415](https://github.com/GetStream/stream-video-js/issues/1415)) ([deb6da2](https://github.com/GetStream/stream-video-js/commit/deb6da238f541c733451e84b198434671da8dceb))
|
|
32
40
|
|
|
33
41
|
### [0.1.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.1...@stream-io/video-filters-web-0.1.2) (2024-06-12)
|
|
34
42
|
|
|
35
|
-
|
|
36
43
|
### Bug Fixes
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
- infinitely adjustable blur filter ([#1399](https://github.com/GetStream/stream-video-js/issues/1399)) ([447e73f](https://github.com/GetStream/stream-video-js/commit/447e73f2363142a0c1b43d05f848400950ecf697))
|
|
39
46
|
|
|
40
47
|
### [0.1.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.0...@stream-io/video-filters-web-0.1.1) (2024-06-03)
|
|
41
48
|
|
|
42
|
-
|
|
43
49
|
### Features
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
- video filters on android ([#1382](https://github.com/GetStream/stream-video-js/issues/1382)) ([7ba8b0e](https://github.com/GetStream/stream-video-js/commit/7ba8b0e3b444869d38aae1a045dffb05444643f5))
|
|
46
52
|
|
|
47
53
|
## [0.1.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.0.2...@stream-io/video-filters-web-0.1.0) (2024-04-10)
|
|
48
54
|
|
|
49
|
-
|
|
50
55
|
### ⚠ BREAKING CHANGES
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
- **filters:** fixes off-by-one version conflict (#1313)
|
|
53
58
|
|
|
54
59
|
### Bug Fixes
|
|
55
60
|
|
|
56
|
-
|
|
61
|
+
- **filters:** fixes off-by-one version conflict ([#1313](https://github.com/GetStream/stream-video-js/issues/1313)) ([ed801a4](https://github.com/GetStream/stream-video-js/commit/ed801a4275b12165bfd57fe583d39912a27305ee))
|
|
57
62
|
|
|
58
63
|
### [0.0.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.0.1...@stream-io/video-filters-web-0.0.2) (2024-04-10)
|
|
59
64
|
|
|
60
|
-
|
|
61
65
|
### Bug Fixes
|
|
62
66
|
|
|
63
|
-
|
|
67
|
+
- update repository path ([6d9bbe7](https://github.com/GetStream/stream-video-js/commit/6d9bbe7b3d4bcbf69f3a5faab4543c8ce8d985cd))
|
|
64
68
|
|
|
65
69
|
### 0.0.1 (2024-04-05)
|
|
66
70
|
|
|
67
|
-
|
|
68
71
|
### Features
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
- **react:** Support for Background Filters and Background Blurring ([#1283](https://github.com/GetStream/stream-video-js/issues/1283)) ([f790ee7](https://github.com/GetStream/stream-video-js/commit/f790ee78c20fb0f5266e429a777d8bb7ef158c83)), closes [#1271](https://github.com/GetStream/stream-video-js/issues/1271) [#1276](https://github.com/GetStream/stream-video-js/issues/1276)
|
package/dist/index.cjs.js
CHANGED
|
@@ -146,8 +146,8 @@ function buildBlurPass(gl, vertexShader, positionBuffer, texCoordBuffer, personM
|
|
|
146
146
|
const offset = new Array(windowSize).fill(0).map((v, index) => index);
|
|
147
147
|
const variance = sigma ** 2;
|
|
148
148
|
const weights = offset.map((x) => {
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
const m = sigma * Math.sqrt(2 * Math.PI);
|
|
150
|
+
const e = Math.exp(-(x ** 2) / (2 * variance));
|
|
151
151
|
return e / m;
|
|
152
152
|
});
|
|
153
153
|
const fragmentShaderSource = glsl `#version 300 es
|
|
@@ -698,7 +698,7 @@ function buildWebGL2Pipeline(videoSource, backgroundImage, blurLevel, background
|
|
|
698
698
|
gl.bindVertexArray(vertexArray);
|
|
699
699
|
const positionBuffer = gl.createBuffer();
|
|
700
700
|
gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);
|
|
701
|
-
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1
|
|
701
|
+
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 1.0, -1, -1, 1.0, 1.0, 1.0]), gl.STATIC_DRAW);
|
|
702
702
|
const texCoordBuffer = gl.createBuffer();
|
|
703
703
|
gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);
|
|
704
704
|
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0]), gl.STATIC_DRAW);
|
|
@@ -862,7 +862,7 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
862
862
|
if (Module['quit']) quit_ = Module['quit'];
|
|
863
863
|
var wasmBinary;
|
|
864
864
|
if (Module['wasmBinary']) wasmBinary = Module['wasmBinary'];
|
|
865
|
-
|
|
865
|
+
Module['noExitRuntime'] || true;
|
|
866
866
|
if (typeof WebAssembly != 'object') {
|
|
867
867
|
abort('no native wasm support detected');
|
|
868
868
|
}
|
|
@@ -927,10 +927,6 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
927
927
|
var __ATINIT__ = [];
|
|
928
928
|
var __ATPOSTRUN__ = [];
|
|
929
929
|
|
|
930
|
-
function keepRuntimeAlive() {
|
|
931
|
-
return noExitRuntime;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
930
|
function preRun() {
|
|
935
931
|
if (Module['preRun']) {
|
|
936
932
|
if (typeof Module['preRun'] == 'function')
|
|
@@ -1288,10 +1284,6 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1288
1284
|
}
|
|
1289
1285
|
|
|
1290
1286
|
function _proc_exit(code) {
|
|
1291
|
-
if (!keepRuntimeAlive()) {
|
|
1292
|
-
if (Module['onExit']) Module['onExit'](code);
|
|
1293
|
-
ABORT = true;
|
|
1294
|
-
}
|
|
1295
1287
|
quit_(code, new ExitStatus(code));
|
|
1296
1288
|
}
|
|
1297
1289
|
|
|
@@ -1541,7 +1533,7 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1541
1533
|
return __Module.ready;
|
|
1542
1534
|
};
|
|
1543
1535
|
|
|
1544
|
-
const version = "0.
|
|
1536
|
+
const version = "0.2.0";
|
|
1545
1537
|
const packageName = "@stream-io/video-filters-web";
|
|
1546
1538
|
|
|
1547
1539
|
// @ts-expect-error - module is not declared
|