Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial session support WIP, pipewire stuck at PAUSED
- Loading branch information
Showing
15 changed files
with
415 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,12 @@ | ||
#ifndef PIPEWIRE_SCREENCAST_H | ||
#define PIPEWIRE_SCREENCAST_H | ||
|
||
#include <stdio.h> | ||
#include <pipewire/pipewire.h> | ||
#include <spa/utils/result.h> | ||
#include <spa/param/props.h> | ||
#include <spa/param/format-utils.h> | ||
#include <spa/param/video/format-utils.h> | ||
|
||
#include "wlr_screencast.h" | ||
#include "screencast_common.h" | ||
#include "xdpw.h" | ||
|
||
#define BUFFERS 1 | ||
#define ALIGN 16 | ||
|
||
void *pwr_start(struct xdpw_state *state); | ||
void *xdpw_pwr_start(struct xdpw_screencast_instance *cast); | ||
void xdpw_pwr_connect(struct xdpw_state *state); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
#ifndef SCREENCAST_H | ||
#define SCREENCAST_H | ||
|
||
#include <errno.h> | ||
#include <stdbool.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
#include <sys/wait.h> | ||
#include <sys/mman.h> | ||
|
||
#include "pipewire_screencast.h" | ||
#include "screencast_common.h" | ||
#include "wlr_screencast.h" | ||
#include "xdpw.h" | ||
|
||
void xdpw_screencast_instance_destroy(struct xdpw_screencast_instance *cast); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,22 @@ | ||
#ifndef WLR_SCREENCAST_H | ||
#define WLR_SCREENCAST_H | ||
|
||
#include "wlr-screencopy-unstable-v1-client-protocol.h" | ||
#include "xdg-output-unstable-v1-client-protocol.h" | ||
#include <fcntl.h> | ||
#include <limits.h> | ||
#include <stdbool.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <sys/mman.h> | ||
#include <sys/param.h> | ||
#include <sys/stat.h> | ||
#include <sys/wait.h> | ||
#include <unistd.h> | ||
#include <wayland-client-protocol.h> | ||
|
||
#include "pipewire_screencast.h" | ||
#include "screencast_common.h" | ||
|
||
#define SC_MANAGER_VERSION 2 | ||
|
||
struct xdpw_state; | ||
|
||
void wlr_frame_free(struct xdpw_state *state); | ||
int wlr_screencopy_init(struct xdpw_state *state); | ||
void wlr_screencopy_uninit(struct screencast_context *ctx); | ||
int xdpw_wlr_screencopy_init(struct xdpw_state *state); | ||
void xdpw_wlr_screencopy_finish(struct xdpw_screencast_context *ctx); | ||
|
||
struct wayland_output *wlr_output_find_by_name(struct wl_list *output_list, | ||
struct xdpw_wlr_output *xdpw_wlr_output_find_by_name(struct wl_list *output_list, | ||
const char *name); | ||
struct wayland_output *wlr_output_find(struct screencast_context *ctx, | ||
struct xdpw_wlr_output *xdpw_wlr_output_first(struct wl_list *output_list); | ||
struct xdpw_wlr_output *xdpw_wlr_output_find(struct xdpw_screencast_context *ctx, | ||
struct wl_output *out, uint32_t id); | ||
struct wayland_output *wlr_output_first(struct wl_list *output_list); | ||
|
||
void wlr_register_cb(struct xdpw_state *state); | ||
void xdpw_wlr_frame_free(struct xdpw_screencast_instance *cast); | ||
void xdpw_wlr_register_cb(struct xdpw_screencast_instance *cast); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.