Skip to content

Commit

Permalink
Add PipeWire camera driver
Browse files Browse the repository at this point in the history
  • Loading branch information
viachaslavic committed Feb 3, 2025
1 parent 9b3b75a commit 186c5d5
Show file tree
Hide file tree
Showing 5 changed files with 475 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,8 @@ endif

ifeq ($(HAVE_PIPEWIRE), 1)
OBJ += audio/drivers/pipewire.o \
audio/common/pipewire.o
audio/common/pipewire.o \
camera/drivers/pipewire.o

ifeq ($(HAVE_MICROPHONE), 1)
OBJ += audio/drivers_microphone/pipewire.o
Expand Down
3 changes: 3 additions & 0 deletions camera/camera_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const camera_driver_t *camera_drivers[] = {
#ifdef HAVE_V4L2
&camera_v4l2,
#endif
#ifdef HAVE_PIPEWIRE
&camera_pipewire,
#endif
#ifdef EMSCRIPTEN
&camera_rwebcam,
#endif
Expand Down
1 change: 1 addition & 0 deletions camera/camera_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ extern const camera_driver_t *camera_drivers[];


extern camera_driver_t camera_v4l2;
extern camera_driver_t camera_pipewire;
extern camera_driver_t camera_android;
extern camera_driver_t camera_rwebcam;
extern camera_driver_t camera_avfoundation;
Expand Down
Loading

0 comments on commit 186c5d5

Please sign in to comment.