W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[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'.

From: <bugzilla@jessica.w3.org>
Date: Fri, 29 Jul 2011 14:13:35 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Qmnol-0002kG-HC@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:14 UTC