Pixel format API design
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- backend-api-design, computer-graphics
Hướng nghiên cứu
Bắt đầu bằng việc xem xét các yêu cầu về định dạng pixel trong issue này cùng với các issue 17 và 44 và pull request 95. Kiểm tra việc chuyển đổi BGRX-to-RGBA của backend web và các ràng buộc về định dạng của wl_shm trên Wayland. Được xem là hoàn tất khi đạt được thống nhất về các định dạng được hỗ trợ và tối ưu, cách xử lý alpha, hành vi fallback phổ quát và một API để liệt kê và lựa chọn chúng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
We need an API to list available pixel formats, and select one. Some considerations:
- We want a way to support transparency: https://github.com/rust-windowing/softbuffer/issues/17
- The web backend current converts BGRX to RGBA. It would be better if it could use RGBA directly, if an application can render that way.
- It looks like for https://github.com/rust-windowing/softbuffer/issues/44 we'd have to use RGBX, rather than BGRX.
- For https://github.com/rust-windowing/softbuffer/pull/95, it seems BGRA is supported, but not BGRX. So we need to make sure to set alpha to 255.
- Wayland's
wl_shmcan support many formats, but only two are required to be supported by compositors.
So some questions here:
- What formats should be supported?
- We want to offer a format for each platform that can be used efficiently without conversion, at least, and there doesn't seem to be one that can be assumed everywhere, unfortunately.
- There are many formats that could be supported on at least some platforms.
- Do we want to support formats that are not 4 byte per pixel? This will impact the API, which currently uses u32 values for pixels.
- How to we communicate what formats are supported, and what formats are optimal?
- We still want at least one format to work on all platforms, even if it requires conversion on some, right? What formats should be universally supported, then?
- Ngôn ngữ chính
- Rust
- Star
- 507
- Fork
- 85
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của rust-windowing/softbuffer
-
DS - X11
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
rust-windowing/softbuffer#368 ·
-
`Buffer<'_>` shouldn't be `Send`Có thể đã có người làm @Guflly đã nhận 71 ngày trước. Đang mởbug DS - Android NDK
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rust-windowing/softbuffer#347 · 1 bình luận ·
-
Needs Design Work
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
rust-windowing/softbuffer#342 · 1 bình luận ·
-
enhancement question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
rust-windowing/softbuffer#338 ·
-
Zero-copying on AndroidCó thể đã có người làm @MarijnS95 đã nhận 254 ngày trước. Đang mởDS - Android NDK enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
rust-windowing/softbuffer#318 · 2 bình luận ·
Tất cả issue của rust-windowing/softbuffer
Issue tương tự
-
Add MimirĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
slavakurilyak/awesome-ai-agents#759 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
compiler-explorer/compiler-explorer#9272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Trash, bin or rubbish?Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 63/100
pop-os/cosmic-files#2117 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
L: java:gradle L: java:maven L: ruby:bundler T: bug 🐞
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
dependabot/dependabot-core#16547 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug status:ready-for-test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UniClipboard/UniClipboard#1985 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày