W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > October 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: Thu, 20 Oct 2011 02:33:56 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RGiSC-00038S-Tw@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12586

--- Comment #13 from Kenneth Russell <kbr@google.com> 2011-10-20 02:33:55 UTC ---
(In reply to comment #12)
> Yes, you are.  Consider a computation that in fact always produces values in
> the range 0-255 but is subject to the usual floating point rounding errors.  If
> you truncate, you will never get 255 out of it.
> 
> For many computations the end result of this as the computation is iterated is
> for all the color channels to collapse to 0...
> 
> So you really do want rounding.

Sorry for missing this on first glance.

It looks like this was fixed with the [Clamp] tweaks in the September 27 update
to the Web IDL editors' draft. See
http://dev.w3.org/2006/webapi/WebIDL/#changes .

-- 
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 Thursday, 20 October 2011 02:34:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:02:06 UTC