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:16:15 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1RGiB5-0002Jf-9i@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12586

--- Comment #12 from Boris Zbarsky <bzbarsky@mit.edu> 2011-10-20 02:16:14 UTC ---
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.

-- 
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:16:20 UTC

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