Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD uses sys/videoio.h for its V4L2 header #2155

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading