obs-studio/plugins/linux-pipewire
Georges Basile Stavracas Neto e7815dff66 linux-pipewire: Explicitly enumerate cursor modes
The ScreenCast portal defines 3 cursor modes [1]:

 * Hidden: no visible cursor (value: 1)
 * Embedded: cursor is drawn in the frames (value: 2)
 * Metadata: cursor is sent as stream metadata (value: 4)

The values are power-of-two due to be used as flags.

Explicitly listing these values in an enum improves legibility
of the code, so do that instead of hardcoding 1, 2, and 4.

[1] https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.portal.ScreenCast.xml#L302-L316
2022-04-09 16:45:02 -07:00
..
data project: Migrate PipeWire capture into linux-pipewire 2022-03-20 20:53:39 -03:00
CMakeLists.txt linux-pipewire: Version check call to pw_deinit 2022-04-02 12:45:39 -03:00
linux-pipewire.c linux-pipewire: Version check call to pw_deinit 2022-04-02 12:45:39 -03:00
pipewire-capture.c project: Migrate PipeWire capture into linux-pipewire 2022-03-20 20:53:39 -03:00
pipewire-capture.h project: Migrate PipeWire capture into linux-pipewire 2022-03-20 20:53:39 -03:00
pipewire.c linux-pipewire: Explicitly enumerate cursor modes 2022-04-09 16:45:02 -07:00
pipewire.h project: Migrate PipeWire capture into linux-pipewire 2022-03-20 20:53:39 -03:00
portal.c linux-pipewire: Move fetching cursor mode to portal.c 2022-04-09 16:45:02 -07:00
portal.h linux-pipewire: Explicitly enumerate cursor modes 2022-04-09 16:45:02 -07:00