Skip to content

Commit

Permalink
OpenBSD uses sys/videoio.h for its V4L2 header (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad0 authored Jan 13, 2025
1 parent 05417ce commit 972c8d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/indibase/webcam/v4l2_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@
#include <map>

#include <dirent.h>
#ifdef __OpenBSD__
#include <sys/videoio.h>
#else
#include <linux/videodev2.h>
#endif

#define VIDEO_COMPRESSION_LEVEL 4

Expand Down
4 changes: 4 additions & 0 deletions libs/indibase/webcam/v4l2_colorspace.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@

#pragma once

#ifdef __OpenBSD__
#include <sys/videoio.h>
#else
#include <linux/videodev2.h>
#endif

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 4 additions & 0 deletions libs/indibase/webcam/v4l2_decode/v4l2_decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
#include <stdio.h>
#include <cstdlib>

#ifdef __OpenBSD__
#include <sys/videoio.h>
#else
#include <linux/videodev2.h>
#endif

class V4L2_Decoder
{
Expand Down

0 comments on commit 972c8d8

Please sign in to comment.