30
36
#define TV_INPUT_PALNCOMB BT848_IFORM_F_RSVD
39
/* video4linux error codes */
40
#define V4L_GENERAL_ERROR 0x01 /* binary 000001 */
41
#define V4L_BTTVLOST_ERROR 0x05 /* binary 000101 */
42
#define V4L_FATAL_ERROR -1
33
44
#define NORM_DEFAULT 0x00800 // METEOR_FMT_AUTOMODE
34
45
#define NORM_PAL 0x00200 // METEOR_FMT_PAL
35
46
#define NORM_NTSC 0x00100 // METEOR_FMT_NTSC
36
47
#define NORM_SECAM 0x00400 // METEOR_FMT_SECAM
37
48
#define NORM_PAL_NC 0x00200 // METEOR_FMT_PAL /* Greyscale howto ?! FIXME */
50
#define NORM_DEFAULT_NEW BT848_IFORM_F_AUTO
51
#define NORM_PAL_NEW BT848_IFORM_F_PALBDGHI
52
#define NORM_NTSC_NEW BT848_IFORM_F_NTSCM
53
#define NORM_SECAM_NEW BT848_IFORM_F_SECAM
54
#define NORM_PAL_NC_NEW BT848_IFORM_F_AUTO /* FIXME */
61
#define PAL_HEIGHT 576
62
#define SECAM_HEIGHT 576
63
#define NTSC_HEIGHT 480
65
#define BSD_VIDFMT_NONE 0
66
#define BSD_VIDFMT_YV12 1
67
#define BSD_VIDFMT_I420 2
68
#define BSD_VIDFMT_YV16 3
69
#define BSD_VIDFMT_YUY2 4
70
#define BSD_VIDFMT_UYVY 5
71
#define BSD_VIDFMT_RV15 6
72
#define BSD_VIDFMT_RV16 7
73
#define BSD_VIDFMT_LAST 8
39
76
#define IN_DEFAULT 0
40
77
#define IN_COMPOSITE 0
42
79
#define IN_COMPOSITE2 2
43
80
#define IN_SVIDEO 3
82
#define CAPTURE_SINGLE 0
83
#define CAPTURE_CONTINOUS 1
46
85
#define VIDEO_DEVICE "/dev/bktr0"
47
#define TUNER_DEVICE "/dev/turner0"
86
#define TUNER_DEVICE "/dev/tuner0"
91
const char *video_device;
92
const char *tuner_device;
82
121
/* video functions, video_freebsd.c */
83
122
int vid_start(struct context *);
84
int vid_next(struct context *, char *map);
123
int vid_next(struct context *, unsigned char *map);
86
125
#ifndef WITHOUT_V4L
87
void vid_init(struct context *);
88
127
void vid_close(void);
89
128
void vid_cleanup(void);
92
/* Network camera functions, netcam.c */
93
int netcam_start(struct context *);
94
int netcam_next(struct context *, unsigned char *);
96
131
#endif /* _INCLUDE_VIDEO_FREEBSD_H */