Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/multimedia/camserv/files/patch-camserv_video_fbsd_bttv.c
16125 views
1
--- camserv/video_fbsd_bttv.c.orig 2002-09-16 07:01:56.000000000 +0900
2
+++ camserv/video_fbsd_bttv.c 2014-01-04 04:56:21.000000000 +0900
3
@@ -27,8 +27,9 @@
4
#include <fcntl.h>
5
#include <errno.h>
6
#include <sys/mman.h>
7
-#include <machine/ioctl_bt848.h>
8
-#include <machine/ioctl_meteor.h>
9
+#include <sys/types.h>
10
+#include <dev/bktr/ioctl_bt848.h>
11
+#include <dev/bktr/ioctl_meteor.h>
12
#include <signal.h>
13
#include <sys/ioctl.h>
14
#include <unistd.h>
15
@@ -642,7 +643,7 @@
16
return 0;
17
18
totmean = camserv_get_pic_mean( width, height, picbuf, 1, 0, 0,
19
- width, height );
20
+ width-1, height-1 );
21
if( totmean < (256 / 2) - 10 || totmean > (256 / 2) + 10 ) {
22
newbright = fbttv_dev->brightness;
23
if( totmean > (256 / 2) + 10 ){
24
25