forked from hyperbolic2346/motion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround to let work with kernel 2.6.38 and above where videodev.h …
…has been removed.
- Loading branch information
1 parent
f817acc
commit 015d497
Showing
8 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
#include <math.h> | ||
#include "motion.h" | ||
|
||
#ifndef WITHOUT_V4L | ||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L)) | ||
#include "pwc-ioctl.h" | ||
#endif | ||
|
||
|
@@ -52,7 +52,7 @@ static unsigned int servo_move(struct context *cnt, struct coord *cent, | |
struct images *imgs, unsigned int manual); | ||
static unsigned int iomojo_move(struct context *cnt, int dev, struct coord *cent, struct images *imgs); | ||
|
||
#ifndef WITHOUT_V4L | ||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L)) | ||
static unsigned int lqos_center(struct context *cnt, int dev, int xoff, int yoff); | ||
static unsigned int lqos_move(struct context *cnt, int dev, struct coord *cent, | ||
struct images *imgs, unsigned int manual); | ||
|
@@ -81,7 +81,7 @@ unsigned int track_center(struct context *cnt, int dev ATTRIBUTE_UNUSED, | |
} else if (cnt->track.type == TRACK_TYPE_SERVO) { | ||
return servo_center(cnt, xoff, yoff); | ||
} | ||
#ifndef WITHOUT_V4L | ||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L)) | ||
else if (cnt->track.type == TRACK_TYPE_PWC) | ||
return lqos_center(cnt, dev, xoff, yoff); | ||
#ifdef MOTION_V4L2 | ||
|
@@ -112,7 +112,7 @@ unsigned int track_move(struct context *cnt, int dev, struct coord *cent, struct | |
return stepper_move(cnt, cent, imgs); | ||
else if (cnt->track.type == TRACK_TYPE_SERVO) | ||
return servo_move(cnt, cent, imgs, manual); | ||
#ifndef WITHOUT_V4L | ||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L)) | ||
else if (cnt->track.type == TRACK_TYPE_PWC) | ||
return lqos_move(cnt, dev, cent, imgs, manual); | ||
#ifdef MOTION_V4L2 | ||
|
@@ -787,7 +787,7 @@ static unsigned int iomojo_move(struct context *cnt, int dev, struct coord *cent | |
Logitech QuickCam Orbit camera tracking code by [email protected] | ||
******************************************************************************/ | ||
#ifndef WITHOUT_V4L | ||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L)) | ||
static unsigned int lqos_center(struct context *cnt, int dev, int x_angle, int y_angle) | ||
{ | ||
int reset = 3; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters