Ingvar Stepanyan

Results 1089 comments of Ingvar Stepanyan

Hmm, I'm not sure if that's better. Most properties were reported as readonly correctly, and those few are rather niche. In general, it's very useful to have readonly status reflected...

> ok,. if we have a list then we can add these as overrides... For now it's just the props from the issue description, I didn't notice more. Exposure Program...

This would be useful also for cases where code wants to get raw decoded image data. Currently constructed `ImageBitmap` is the only way to disable alpha premultiplication (well, aside from...

> I also had this same problem Are you sure it was the same problem? I don't see how your fetch snippet is relevant to or helps with getting image...

@Slender1808 Sorry, but it still looks unrelated. Your snippet doesn't do anything with screen or canvas, let alone ImageData, it just loads an image from a URL. Perhaps you misunderstood...

Ran into yet another project where I'd really want to decode image to raw RGBA data and remembered this issue. It would be really helpful to have getImageData on ImageBitmap...

@Kaiido Thanks, I missed the ability to do this via new APIs (probably because, intuitively, VideoFrame seemed unrelated to just image decoding). But yeah, while performance is one aspect of...

> it's not really required because going through an `ImageBitmap` would return the data as `RGB[A|X]` > And if you want `RGBA` data, you go through an `ImageBitmap`. Not sure...

Ah, I guess you're saying that creating `VideoFrame` from an existing `ImageBitmap` is _supposed to_ convert it to RGBA (except for https://github.com/w3c/webcodecs/issues/92 issue), so then `copyTo` would give a way...

Thanks for the clarification. It's an interesting alternative. It does seem a little worrying in terms of performance implications (will it always copy the image data to GPU and read...