W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > September 2019

Re: [mediacapture-image] Transferable? (#211)

From: Rijubrata Bhaumik via GitHub <sysbot+gh@w3.org>
Date: Tue, 24 Sep 2019 08:03:47 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-534442345-1569312226-sysbot+gh@w3.org>
@dsanders11 : I have used OpenCV.JS to accomplish similar use cases, like card scanning. Please have a look at our [WebCamera](https://github.com/riju/WebCamera) project.
We did try out getting `canvasContext.getImageData` to a `SharedArrayBuffer` and used `worker.postMessage` and did the computations in the workers. It's not yet on master as the WASM (with SIMD + workers) optimizations improved the user perceived performance to an acceptable level.

@alvestrand : The  [webrtc-nv-use-cases](https://w3c.github.io/webrtc-nv-use-cases/) look good and I am interested mainly in the requirement - 

   N18             The application must be able to obtain raw media
                   from the capture device in desired formats.
and what developers can do with that.
Like @dsanders11 said, it can be sub-optimal to deal with various formats a webcam can stream, maybe the [WebCodecs](https://github.com/WICG/web-codecs/blob/master/explainer.md) proposal can be of help ?

GitHub Notification of comment by riju
Please view or discuss this issue at https://github.com/w3c/mediacapture-image/issues/211#issuecomment-534442345 using your GitHub account
Received on Tuesday, 24 September 2019 08:03:57 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:48 UTC