W3C home > Mailing lists > Public > public-media-capture@w3.org > July 2016

[mediacapture-depth] Specialize ImageData type for Depth

From: Bryan B via GitHub <sysbot+gh@w3.org>
Date: Tue, 12 Jul 2016 16:53:15 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-165125975-1468342191-sysbot+gh@w3.org>
bbernhar has just created a new issue for 

== Specialize ImageData type for Depth ==
Per discussion in https://github.com/w3c/mediacapture-depth/pull/130, 
this proposal suggests creating a specific `DepthImage` type where 
`DepthImage.data` creates a default `Uint16ClampedArray` view. In 
contrast to the ED 6.7, `ImageData.data` will not have an overloaded 
meaning (color vs depth) with the depth extension and equally (and 
more intuitively) access 16-bit dexels without further reconstruction 
(due to packing of D16 with RG88 for `video+canvas` sink). 
Implementation wise, the `DepthImage` object is exposes "view" of the 
internal `ImageData`. 

Alternatively, the `ImageData` object could be modified (or extended) 
but this approach frees us from handling depth-specific design issues 
with the canvas authors.


Please view or discuss this issue at 
https://github.com/w3c/mediacapture-depth/issues/131 using your GitHub
Received on Tuesday, 12 July 2016 16:53:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:36 UTC