W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] Canvas as an object

From: <nullv@gmx.com>
Date: Fri, 30 Mar 2012 10:38:55 -0400
Message-ID: <20120330143901.155050@gmx.com>
> > My suggestion is, considering that the Canvas element can be used for > > offscreen rendering etc shouldn't it be allowed it create an object of such > > from within Worker like we can do with Image? > > > It's been wanted for a while, but there's a lot of work needed to make it > possible, so it probably won't happen soon. > If you only need to analyze the pixels of video data, however, you can > render the video frame to a canvas, call canvas.getImageData(), and send > the Uint8ClampedArray of the result to the worker. You can't use Canvas > drawing features this way, but if you only need to examine pixels, this > works. This might work. although i was hoping to avoid the bottle neck of the single thread in the main page. Thanks Glen
Received on Friday, 30 March 2012 07:38:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:11 UTC