Open
Description
(No urgent requests for this feature. Just relocating an idea from Chrome's bug tracker. Yell if you're interested!)
There may be cases where apps would be more efficient if they copied only the Y plane, only the non-alpha planes, or only the alpha plane.
Potential strategies:
- Add a per-plane discard flag to copyTo().
- Allow the copyTo() layout to be shorter than the number of planes, implying discard (doesn't solve alpha-only).
- Provide a plane-subset configuration flag to copyTo() eg. {planes: "Y"} or a more generic conversion API eg.