Skip to content

Commit

Permalink
Add screencopy dmabuf backend (#122)
Browse files Browse the repository at this point in the history
* [feat] rough MVP for screencpy+dmabuf

* [feat] refactor MVP into libwayshot - create new constructor

* [refactor] first draft of dmabuf API

* [refactor]
- Add error handling
- Add example/demo for wayshot dmabuf API

* [feat] import wayland-egl-ctx for use as MVP for dmabuf import functionality

* [fix] correct modifier_lo parameter in waymirror-egl MVP

* [feat] get waymirror-egl dmabuf MVP demo working

* [feat] refactored dmabuf->eglImage API into libwayshot

* [feat] - Implemented clean dropping of EGLImage
-  Improved API docs for dmabuf functions

* [fix]  libwayshot build error fixed

* [fix] remove hardcoded GPU path from libwayshot constructor

* [fix]] remove reduntant dmabuf_to_texture call from waymirror-egl

* [docs] document WayshotConnection dmabuf constructor

* [feat] Added helper/wrapper function to convert screencapture EGLImages into GL textures

* [fix] improved logging in dmabuf API code

* [doc] update waymirror-egl Readme

* [fix] change logging level in waymirror-egl to Debug

* [fix] remove unnecessary .gitignore in waymirror-egl

* [ci/cd] attempting to fix the build

* [ci\cd] add libegl system deps to fix github CI

* [fix] remove unused egl_image struct field in Waymirror demo
  • Loading branch information
CheerfulPianissimo authored Aug 28, 2024
1 parent 5c3e220 commit 5d69000
Show file tree
Hide file tree
Showing 19 changed files with 2,121 additions and 72 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install wayland dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libwayland-dev \
libegl-dev \
- name: Build
run: |
Expand Down
205 changes: 202 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["wayshot", "libwayshot"]
members = ["wayshot", "libwayshot","libwayshot/examples/waymirror-egl"]

[workspace.package]
authors = ["Shinyzenith <https://aakash.is-a.dev>"]
Expand Down
7 changes: 7 additions & 0 deletions libwayshot/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ thiserror = "1"
wayland-client = "0.31.1"
wayland-protocols = { version = "0.31.0", features = ["client", "unstable"] }
wayland-protocols-wlr = { version = "0.2.0", features = ["client"] }
wayland-backend = { version = "0.3.3", features = ["client_system"] }

gbm = "0.15.0"
drm = "0.12.0"

gl = "0.14.0"
khronos-egl = { version = "6.0.0",features = ["static"] }
Loading

0 comments on commit 5d69000

Please sign in to comment.