@stream-io/video-filters-web 0.1.3 → 0.1.5
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 +14 -0
- package/dist/index.cjs.js +6 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -3
- package/src/helpers/webglHelper.ts +3 -1
package/dist/index.es.js
CHANGED
|
@@ -84,6 +84,8 @@ async function readPixelsAsync(gl, x, y, width, height, format, type, dest) {
|
|
|
84
84
|
async function getBufferSubDataAsync(gl, target, buffer, srcByteOffset, dstBuffer, dstOffset, length) {
|
|
85
85
|
const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);
|
|
86
86
|
gl.flush();
|
|
87
|
+
if (!sync)
|
|
88
|
+
return;
|
|
87
89
|
const res = await clientWaitAsync(gl, sync);
|
|
88
90
|
gl.deleteSync(sync);
|
|
89
91
|
if (res !== gl.WAIT_FAILED) {
|
|
@@ -1029,7 +1031,7 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1029
1031
|
}
|
|
1030
1032
|
|
|
1031
1033
|
function getBinaryPromise() {
|
|
1032
|
-
if (!wasmBinary && (ENVIRONMENT_IS_WEB
|
|
1034
|
+
if (!wasmBinary && (ENVIRONMENT_IS_WEB)) {
|
|
1033
1035
|
if (typeof fetch == 'function') {
|
|
1034
1036
|
return fetch(wasmBinaryFile, { credentials: 'same-origin' })
|
|
1035
1037
|
.then(function (response) {
|
|
@@ -1257,7 +1259,7 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1257
1259
|
for (var i = 0; i < str.length; ++i) {
|
|
1258
1260
|
HEAP8[buffer++ >> 0] = str.charCodeAt(i);
|
|
1259
1261
|
}
|
|
1260
|
-
|
|
1262
|
+
HEAP8[buffer >> 0] = 0;
|
|
1261
1263
|
}
|
|
1262
1264
|
|
|
1263
1265
|
function _environ_get(__environ, environ_buf) {
|
|
@@ -1536,8 +1538,8 @@ const createTFLiteSIMDModule = (__Module) => {
|
|
|
1536
1538
|
return __Module.ready;
|
|
1537
1539
|
};
|
|
1538
1540
|
|
|
1539
|
-
const version = "0.1.
|
|
1540
|
-
const packageName = "@stream-io/video-filters-web"
|
|
1541
|
+
const version = "0.1.5";
|
|
1542
|
+
const packageName = "@stream-io/video-filters-web";
|
|
1541
1543
|
|
|
1542
1544
|
// @ts-expect-error - module is not declared
|
|
1543
1545
|
// This is a WebAssembly module compiled from the TensorFlow Lite C++ library.
|