- From: Yoav Weiss <notifications@github.com>
- Date: Wed, 23 Sep 2015 00:15:09 -0700
- To: WICG/img-conversion <img-conversion@noreply.github.com>
Received on Wednesday, 23 September 2015 07:15:44 UTC
> </h2>
> + <pre class="idl">
> +typedef (HTMLImageElement or Blob) ImageSource;
> +
> +partial interface ImageData {
> + [NewObject] Promise<Blob> toBlob (optional DOMString type, optional EncoderOpts options);
> + [NewObject] static Promise<ImageData> create (ImageSource source);
> + static CanPlayTypeResult canDecodeType (DOMString mimeType);
Just to make sure: mimeType here can also include video formats, right?
I think there's a very interesting use case in exposing video IFrame decoding (and encoding, to a lesser extent) using this API, enabling a highly performant [BPG](http://bellard.org/bpg/) decoding, etc
---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/img-conversion/pull/14/files#r40175953
Received on Wednesday, 23 September 2015 07:15:44 UTC