mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-29 09:25:57 +01:00
3ee4c5cca2
This tells pipewire, we prefere to use 4 pw_buffers in the pipe. This should remove most "out of buffer" occourences.
19 lines
746 B
C
19 lines
746 B
C
#ifndef PIPEWIRE_SCREENCAST_H
|
|
#define PIPEWIRE_SCREENCAST_H
|
|
|
|
#include "screencast_common.h"
|
|
|
|
#define XDPW_PWR_BUFFERS 4
|
|
#define XDPW_PWR_ALIGN 16
|
|
|
|
void xdpw_pwr_trigger_process(struct xdpw_screencast_instance *cast);
|
|
bool xdpw_pwr_is_driving(struct xdpw_screencast_instance *cast);
|
|
void xdpw_pwr_dequeue_buffer(struct xdpw_screencast_instance *cast);
|
|
void xdpw_pwr_enqueue_buffer(struct xdpw_screencast_instance *cast);
|
|
void pwr_update_stream_param(struct xdpw_screencast_instance *cast);
|
|
void xdpw_pwr_stream_create(struct xdpw_screencast_instance *cast);
|
|
void xdpw_pwr_stream_destroy(struct xdpw_screencast_instance *cast);
|
|
int xdpw_pwr_context_create(struct xdpw_state *state);
|
|
void xdpw_pwr_context_destroy(struct xdpw_state *state);
|
|
|
|
#endif
|