[Bug 12586] Suggest using Typed Array for ImageData pixels. Add a new 'buffer' attribute that references ArrayBuffer of the pixel data. Convert 'data' (CanvasPixelArray) to Uint8Array view of 'buffer'.

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12586

--- Comment #5 from Joel Martin <w3.org@martintribe.org> 2011-07-29 14:13:34 UTC ---
Actually, I think the gecko approach makes a lot of sense from a spec
consistency and usefulness perspective. Typed arrays are the native data format
for 3D Canvas (WebGL) interaction. It seems consistent that 2D Canvas data
formats would also be typed arrays.

As I noted in comment #1 it would be really useful/efficient in some situations
to be able to address 2D image data as whole pixels (Uint32Array or
Uint32ClampedArray or whatever). Also, being able to move data back and forth
easily between 2D Canvas and WebSockets, File API, etc seems like another plus
from a spec consistency/simplicity perspective.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 29 July 2011 14:13:41 UTC