Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-21 Thread Jussi Kalliokoski
Please see the DSP API [1]. It's currently developed unofficially under the W3C Audio WG [2], so if you have input, please post it to the audiowg public mailing list. This should scratch your itch and more. ;) Cheers, Jussi [1] http://people.opera.com/mage/dspapi/ [2]

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-21 Thread Rik Cabanier
On Mon, Apr 23, 2012 at 11:38 PM, Tyler Larson tallty...@gmail.com wrote: Can we add matrix transformations? Looping over every pixel in JavaScript is slow. Many cool things could be taken care of much faster if the canvas had some form of matrix manipulations built in. All of the pixels

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-21 Thread Tyler Larson
On Sep 21, 2012, at 9:49 AM, Rik Cabanier caban...@gmail.com wrote: Support CSS Filters will satisfy this use case. There are a number of built-in filters (such as sepia and constrast) and even support for vertex and fragment shaders. The current spec doesn't have a shorthand for the generic

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-21 Thread Tab Atkins Jr.
On Fri, Sep 21, 2012 at 8:34 AM, Tyler Larson tallty...@gmail.com wrote: On Sep 21, 2012, at 9:49 AM, Rik Cabanier caban...@gmail.com wrote: Support CSS Filters will satisfy this use case. There are a number of built-in filters (such as sepia and constrast) and even support for vertex and

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-21 Thread Rob Manson
Hi Tyler, really glad you started this discussion otherwise I never would have heard of the DSP API 8) On Sep 21, 2012, at 3:34 AM, Jussi Kalliokoski jussi.kallioko...@gmail.com wrote: Please see the DSP API [1]. It's currently developed unofficially under the W3C Audio WG [2], so if you

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-20 Thread Ian Hickson
On Mon, 23 Apr 2012, Tyler Larson wrote: Looping over every pixel in JavaScript is slow. Many cool things could be taken care of much faster if the canvas had some form of matrix manipulations built in. All of the pixels could have one transformation operation defined and all of the

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-09-20 Thread Rob Manson
+1 Having matrix manipulation functions on ArrayBuffers that were implemented at a lower, more optimised level would be awesome and would open up all sorts of app opportunities. roBman On Thu, 20 Sep 2012 22:45:29 + (UTC) Ian Hickson i...@hixie.ch wrote: On Mon, 23 Apr 2012, Tyler Larson

[whatwg] [canvas] matrix based changes on bitmaps

2012-04-23 Thread Tyler Larson
Can we add matrix transformations? Looping over every pixel in JavaScript is slow. Many cool things could be taken care of much faster if the canvas had some form of matrix manipulations built in. All of the pixels could have one transformation operation defined and all of the pixels could be

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-04-23 Thread Charles Pritchard
On 4/23/2012 2:38 PM, Tyler Larson wrote: Can we add matrix transformations? Looping over every pixel in JavaScript is slow. Many cool things could be taken care of much faster if the canvas had some form of matrix manipulations built in. All of the pixels could have one transformation

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-04-23 Thread Boris Zbarsky
On 4/23/12 5:57 PM, Charles Pritchard wrote: Currently, if you want to do fast operations on a Canvas, you need to load it into WebGL and use GLSL to do your quick vector math. It'd be nice to see a math object for Typed Arrays with similar power.

Re: [whatwg] [canvas] matrix based changes on bitmaps

2012-04-23 Thread Charles Pritchard
On 4/23/2012 6:18 PM, Boris Zbarsky wrote: On 4/23/12 5:57 PM, Charles Pritchard wrote: Currently, if you want to do fast operations on a Canvas, you need to load it into WebGL and use GLSL to do your quick vector math. It'd be nice to see a math object for Typed Arrays with similar power.