diff options
author | Michael Schimek <mschimek@gmx.at> | 2005-11-09 00:38:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:27 -0500 |
commit | c12097fd9adb07810fb28f70df5462c0603463cc (patch) | |
tree | 59266c11892e2fbb87bb773a1a75d17af5ee6451 | |
parent | f3b512fd42b4ed6ff47a8afb4f42ac3cc325ddad (diff) |
[PATCH] v4l: 876: moved some user defines to be out of kernel define
- Moved some user defines to be out of __KERNEL__ define.
Signed-off-by: Michael Schimek <mschimek@gmx.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | include/linux/videodev2.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index cbe15edbe668..e8a0d22df54f 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -31,6 +31,21 @@ | |||
31 | 31 | ||
32 | #define VIDEO_MAX_FRAME 32 | 32 | #define VIDEO_MAX_FRAME 32 |
33 | 33 | ||
34 | #define VID_TYPE_CAPTURE 1 /* Can capture */ | ||
35 | #define VID_TYPE_TUNER 2 /* Can tune */ | ||
36 | #define VID_TYPE_TELETEXT 4 /* Does teletext */ | ||
37 | #define VID_TYPE_OVERLAY 8 /* Overlay onto frame buffer */ | ||
38 | #define VID_TYPE_CHROMAKEY 16 /* Overlay by chromakey */ | ||
39 | #define VID_TYPE_CLIPPING 32 /* Can clip */ | ||
40 | #define VID_TYPE_FRAMERAM 64 /* Uses the frame buffer memory */ | ||
41 | #define VID_TYPE_SCALES 128 /* Scalable */ | ||
42 | #define VID_TYPE_MONOCHROME 256 /* Monochrome only */ | ||
43 | #define VID_TYPE_SUBCAPTURE 512 /* Can capture subareas of the image */ | ||
44 | #define VID_TYPE_MPEG_DECODER 1024 /* Can decode MPEG streams */ | ||
45 | #define VID_TYPE_MPEG_ENCODER 2048 /* Can encode MPEG streams */ | ||
46 | #define VID_TYPE_MJPEG_DECODER 4096 /* Can decode MJPEG streams */ | ||
47 | #define VID_TYPE_MJPEG_ENCODER 8192 /* Can encode MJPEG streams */ | ||
48 | |||
34 | #ifdef __KERNEL__ | 49 | #ifdef __KERNEL__ |
35 | 50 | ||
36 | #define VFL_TYPE_GRABBER 0 | 51 | #define VFL_TYPE_GRABBER 0 |
@@ -72,21 +87,6 @@ struct video_device | |||
72 | 87 | ||
73 | #define VIDEO_MAJOR 81 | 88 | #define VIDEO_MAJOR 81 |
74 | 89 | ||
75 | #define VID_TYPE_CAPTURE 1 /* Can capture */ | ||
76 | #define VID_TYPE_TUNER 2 /* Can tune */ | ||
77 | #define VID_TYPE_TELETEXT 4 /* Does teletext */ | ||
78 | #define VID_TYPE_OVERLAY 8 /* Overlay onto frame buffer */ | ||
79 | #define VID_TYPE_CHROMAKEY 16 /* Overlay by chromakey */ | ||
80 | #define VID_TYPE_CLIPPING 32 /* Can clip */ | ||
81 | #define VID_TYPE_FRAMERAM 64 /* Uses the frame buffer memory */ | ||
82 | #define VID_TYPE_SCALES 128 /* Scalable */ | ||
83 | #define VID_TYPE_MONOCHROME 256 /* Monochrome only */ | ||
84 | #define VID_TYPE_SUBCAPTURE 512 /* Can capture subareas of the image */ | ||
85 | #define VID_TYPE_MPEG_DECODER 1024 /* Can decode MPEG streams */ | ||
86 | #define VID_TYPE_MPEG_ENCODER 2048 /* Can encode MPEG streams */ | ||
87 | #define VID_TYPE_MJPEG_DECODER 4096 /* Can decode MJPEG streams */ | ||
88 | #define VID_TYPE_MJPEG_ENCODER 8192 /* Can encode MJPEG streams */ | ||
89 | |||
90 | extern int video_register_device(struct video_device *, int type, int nr); | 90 | extern int video_register_device(struct video_device *, int type, int nr); |
91 | extern void video_unregister_device(struct video_device *); | 91 | extern void video_unregister_device(struct video_device *); |
92 | extern int video_usercopy(struct inode *inode, struct file *file, | 92 | extern int video_usercopy(struct inode *inode, struct file *file, |