|
|
|
@ -358,10 +358,19 @@ function initWorker(cb) {
|
|
|
|
|
cmd: 'init',
|
|
|
|
|
size: {x: _inputStream.getWidth(), y: _inputStream.getHeight()},
|
|
|
|
|
imageData: workerThread.imageData,
|
|
|
|
|
config: _config
|
|
|
|
|
config: configForWorker(_config)
|
|
|
|
|
}, [workerThread.imageData.buffer]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function configForWorker(config) {
|
|
|
|
|
return {
|
|
|
|
|
...config,
|
|
|
|
|
inputStream: {
|
|
|
|
|
...config.inputStream,
|
|
|
|
|
target: null
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function workerInterface(factory) {
|
|
|
|
|
/* eslint-disable no-undef*/
|
|
|
|
|