Ian Douglas Scott

Results 545 comments of Ian Douglas Scott

> This doesn't seem to be showing the right thing even when width matches stride. Not sure why. Ah, so this part is due to the alpha channel. https://developer.apple.com/documentation/corevideo/cvpixelformatdescription/1563591-pixel_format_identifiers doesn't...

We'll probably need to expose a `stride` to efficiently implement https://github.com/rust-windowing/softbuffer/issues/44 using https://developer.android.com/ndk/reference/struct/a-native-window-buffer#struct_a_native_window___buffer So I think we'll ultimately want an API change like this.

Is `imgref` currently used in any crates that would likely be used with Softbuffer for rendering? We need the `Buffer` type to provide a `present` method, and on some backends...

> Bonus if you do ImgRefMut instead of ImgRefMut but either way is fine. Yeah, that part gets back to https://github.com/rust-windowing/softbuffer/issues/98. Unfortunately it seems we need to use RGBA on...

Those "parameter `D` is never used" errors are a result of building with no backends. Since neither the X or Wayland backend are being built for "android". It would be...

I think it would be good to support X11/Wayland backends on any platform that can support them. It's a little unclear how best to do that though. We could just...

Handling conversion isn't hard (unless we add more unusual formats), though I'm thinking about how I'd want to integrate it. * A conversion API that is internally used within each...

Technically that doesn't cover every possible format. Wayland for instance [supports](https://wayland.app/protocols/wayland#wl_shm:enum:format) things like YUV, indexed color, etc. But I doubt YUV is useful for softbuffer consumers, and indexed color (hopefully)...

The most obvious way to specify formats would be to provide an `enum` with every format supported by at least one backend. Regardless, backends likely use enums, and need to...

The complication there is format conversion. And whether or not transparency is supported at all. BGRX can be converted to BGRA by setting the last component of each pixel to...